Search Results for

    Show / Hide Table of Contents

    Interface ISpeechToTextRecorder

    Interface for recording audio input and converting it to text via speech recognition.

    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface ISpeechToTextRecorder

    Methods

    | Edit this page View Source

    Configure(AudioRecorderSettings)

    Configures the recorder with the specified settings.

    Declaration
    void Configure(AudioRecorderSettings settings)
    Parameters
    Type Name Description
    AudioRecorderSettings settings
    | Edit this page View Source

    RegisterInputAudioBufferListener(Action<float[]>)

    Registers a listener for raw audio buffer data during recording.

    Declaration
    void RegisterInputAudioBufferListener(Action<float[]> listener)
    Parameters
    Type Name Description
    Action<float[]> listener
    | Edit this page View Source

    RegisterRecordingStoppedListener(Action<AudioClip>)

    Registers a listener that will be called when recording stops.

    Declaration
    void RegisterRecordingStoppedListener(Action<AudioClip> listener)
    Parameters
    Type Name Description
    Action<AudioClip> listener
    | Edit this page View Source

    StartRecording()

    Starts recording audio from the microphone.

    Declaration
    void StartRecording()
    | Edit this page View Source

    StopRecordingAsync()

    Stops recording and returns the recorded audio as an AudioClip.

    Declaration
    UniTask<AudioClip> StopRecordingAsync()
    Returns
    Type Description
    UniTask<AudioClip>
    | Edit this page View Source

    UnregisterInputAudioBufferListener(Action<float[]>)

    Unregisters a previously registered audio buffer listener.

    Declaration
    void UnregisterInputAudioBufferListener(Action<float[]> listener)
    Parameters
    Type Name Description
    Action<float[]> listener
    | Edit this page View Source

    UnregisterRecordingStoppedListener(Action<AudioClip>)

    Unregisters a previously registered recording stopped listener.

    Declaration
    void UnregisterRecordingStoppedListener(Action<AudioClip> listener)
    Parameters
    Type Name Description
    Action<AudioClip> listener

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation