AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class SpeechGenerator

    Inheritance
    object
    AIComponent
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>
    SpeechGenerator
    Inherited Members
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.saveOutput
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.outputPath
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.onSendRequest
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.onReceiveGeneratedContent
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.Api
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.SaveFolderPath
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.SaveGeneratedContents
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.Options
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.Awake()
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.InitializeSubcomponent(TextToSpeechOptions)
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.Generate(string)
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.GenerateAsync(string)
    AIComponent.streaming
    AIComponent.onReceiveUsage
    AIComponent.onErrorOccured
    AIComponent.Api
    AIComponent.DebugMode
    AIComponent.Logger
    AIComponent.IsProcessing
    AIComponent.IsSubcomponent
    AIComponent.Awake()
    AIComponent.SetParentComponent(AIComponent)
    AIComponent.Enqueue(Func<UniTask>)
    AIComponent.CancelAllRequests()
    AIComponent.CancelLastRequest()
    AIComponent.OnReceiveUsageData(Usage)
    AIComponent.LogInfo(string)
    AIComponent.LogWarning(string)
    AIComponent.LogError(string)
    AIComponent.IsInvalidPrompt(string)
    AIComponent.IsInvalidFile(IFile)
    AIComponent.IsInvalidFiles(IList<IFile>)
    AIComponent.NoRequiredComponent(MonoBehaviour)
    AIComponent.IsInvalidPrompt<T>(T)
    AIComponent.IsInvalidPrompt(TextPrompt, List<ChatMessage>)
    Namespace: Glitch9.AIDevKit.Components
    Assembly: .dll
    Syntax
    public class SpeechGenerator : AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>

    Methods

    GenerateAsync(string)

    Asynchronously generates output based on the provided input prompt. This method should be overridden in derived classes to implement the actual generation logic. It returns a UniTask that resolves to the generated output. The onReceiveGeneratedContent event is triggered with the generated output once the task completes.

    Declaration
    public override UniTask<AudioClip> GenerateAsync(string promptText)
    Parameters
    Type Name Description
    string promptText
    Returns
    Type Description
    UniTask<AudioClip>
    Overrides
    AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>.GenerateAsync(string)
    In this article
    Back to top Generated by DocFX