Search Results for

    Show / Hide Table of Contents

    Class DefaultOutputAudioPlayer

    Inheritance
    object
    DefaultOutputAudioPlayer
    Implements
    ITextToSpeechPlayer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class DefaultOutputAudioPlayer : ITextToSpeechPlayer

    Properties

    | Edit this page View Source

    Channels

    Gets the number of audio channels (1 for mono, 2 for stereo).

    Declaration
    public int Channels { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    SampleRate

    Gets the sample rate of the audio player in Hz.

    Declaration
    public int SampleRate { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Dispose()

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

    PlayCompletedAudio(AudioClip, float)

    Plays a completed audio clip at the specified volume.

    Declaration
    public void PlayCompletedAudio(AudioClip audioClip, float volume = 1)
    Parameters
    Type Name Description
    AudioClip audioClip
    float volume
    | Edit this page View Source

    PlayDelta(Delta<IAudioChunk>, float)

    Plays a streaming audio delta chunk received from the TTS service.

    Declaration
    public void PlayDelta(Delta<IAudioChunk> delta, float volume = 1)
    Parameters
    Type Name Description
    Delta<IAudioChunk> delta
    float volume

    Implements

    ITextToSpeechPlayer

    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