Class TextToSpeech
Inheritance
object
TextToSpeech
Assembly: .dll
Syntax
public class TextToSpeech : AIModuleComponent
Properties
Voice
Declaration
public Voice Voice { get; set; }
Property Value
Methods
GenerateSpeechAsync(string)
Declaration
public UniTask<GeneratedAudio> GenerateSpeechAsync(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
GenerateSpeechAsync(string, Voice)
Declaration
public UniTask<GeneratedAudio> GenerateSpeechAsync(string text, Voice voice)
Parameters
Type |
Name |
Description |
string |
text |
|
Voice |
voice |
|
Returns