Search Results for

    Show / Hide Table of Contents

    Class AwsTranscriptionService

    Inheritance
    object
    AwsTranscriptionService
    Implements
    IWebSocketSpeechToTextService
    ISpeechToText
    IWebSocketGenerativeService<AudioClip, TranscriptDelta, Transcript, ISpeechToTextOptions>
    IDisposable
    IAgentDependency
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class AwsTranscriptionService : IWebSocketSpeechToTextService, ISpeechToText, IWebSocketGenerativeService<AudioClip, TranscriptDelta, Transcript, ISpeechToTextOptions>, IDisposable, IAgentDependency

    Constructors

    | Edit this page View Source

    AwsTranscriptionService()

    Declaration
    public AwsTranscriptionService()

    Methods

    | Edit this page View Source

    CancelAsync()

    Cancels any ongoing operations and cleans up resources.

    Declaration
    public UniTask CancelAsync()
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    ConnectAsync(ISpeechToTextOptions, CancellationToken)

    Establishes a WebSocket connection. Events/deltas are received through implementation-specific listeners or callbacks.

    Declaration
    public UniTask ConnectAsync(ISpeechToTextOptions settings, CancellationToken ct = default)
    Parameters
    Type Name Description
    ISpeechToTextOptions settings

    The generation settings.

    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask
    | Edit this page View Source

    DisconnectAsync(CancellationToken)

    Closes the WebSocket connection gracefully.

    Declaration
    public UniTask DisconnectAsync(CancellationToken ct = default)
    Parameters
    Type Name Description
    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask
    | Edit this page View Source

    Dispose()

    Declaration
    public void Dispose()
    | Edit this page View Source

    InitWithAgentAsync(Agent, CancellationToken)

    Initializes this dependency with the given agent.

    Declaration
    public UniTask InitWithAgentAsync(Agent agent, CancellationToken ct = default)
    Parameters
    Type Name Description
    Agent agent
    CancellationToken ct
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    PushInputAudioBuffer(float[])

    Pushes a raw audio buffer to the WebSocket service. This method is intended for real-time microphone input streaming.

    Declaration
    public void PushInputAudioBuffer(float[] audioBuffer)
    Parameters
    Type Name Description
    float[] audioBuffer

    The raw audio buffer (float[] PCM data).

    | Edit this page View Source

    PushInputBuffer(AudioClip)

    Pushes input data through the active WebSocket connection. The connection must be established via ConnectAsync(TSettings, CancellationToken) before calling this method. Data is queued and sent asynchronously in the background.

    Declaration
    public void PushInputBuffer(AudioClip input)
    Parameters
    Type Name Description
    AudioClip input

    The input data to push.

    Implements

    IWebSocketSpeechToTextService
    ISpeechToText
    IWebSocketGenerativeService<TInputBuffer, TDelta, TOutput, TSettings>
    IDisposable
    IAgentDependency

    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.TryDispose(IDisposable)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation