Class SpeechGenerator
- Namespace
- Glitch9.AIDevKit.Components
public class SpeechGenerator : AIGenerative<TextToSpeechOptions, TextToSpeechProfile, string, AudioClip>
- Inheritance
-
objectSpeechGenerator
- Inherited Members
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.
public override UniTask<AudioClip> GenerateAsync(string promptText)
Parameters
promptTextstring
Returns
- UniTask<AudioClip>