Search Results for

    Show / Hide Table of Contents

    Class DefaultSpeechToTextService

    Inheritance
    object
    GenerativeServiceBase
    DefaultSpeechToTextService
    Implements
    ISpeechToTextService
    IGenerativeService<AudioClip, Transcript, ISpeechToTextOptions>
    IStreamingSpeechToTextService
    ISpeechToText
    IStreamingGenerativeService<AudioClip, TranscriptDelta, Transcript, ISpeechToTextOptions>
    IDisposable
    Inherited Members
    GenerativeServiceBase.CancelAsync()
    GenerativeServiceBase.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class DefaultSpeechToTextService : GenerativeServiceBase, ISpeechToTextService, IGenerativeService<AudioClip, Transcript, ISpeechToTextOptions>, IStreamingSpeechToTextService, ISpeechToText, IStreamingGenerativeService<AudioClip, TranscriptDelta, Transcript, ISpeechToTextOptions>, IDisposable

    Methods

    | Edit this page View Source

    GenerateAsync(AudioClip, ISpeechToTextOptions, CancellationToken)

    Generates a final output asynchronously.

    Declaration
    public UniTask<Generated<Transcript>> GenerateAsync(AudioClip input, ISpeechToTextOptions @params, CancellationToken ct = default)
    Parameters
    Type Name Description
    AudioClip input

    The input data.

    ISpeechToTextOptions params
    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask<Generated<Transcript>>

    The generated result.

    | Edit this page View Source

    StreamAsync(AudioClip, ISpeechToTextOptions, CancellationToken)

    Starts a streaming generation request asynchronously.

    Declaration
    public UniTask<IGenerativeStream<TranscriptDelta, Transcript>> StreamAsync(AudioClip input, ISpeechToTextOptions @params, CancellationToken ct = default)
    Parameters
    Type Name Description
    AudioClip input

    The input data.

    ISpeechToTextOptions params
    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask<IGenerativeStream<TranscriptDelta, Transcript>>

    A stream handle that emits deltas and eventually provides the final output.

    Implements

    ISpeechToTextService
    IGenerativeService<TInput, TOutput, TSettings>
    IStreamingSpeechToTextService
    ISpeechToText
    IStreamingGenerativeService<TInput, TDelta, TOutput, TSettings>
    IDisposable

    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