API reference

ITextToSpeechTask Interface

Provider-agnostic Text-to-Speech. Implementations configure voice/model on the asset.

Methods

SynthesizeStreamCoroutine ( text , voice , onReady )
Signature
IEnumerator SynthesizeStreamCoroutine(string text, string voice=null, Action< AudioClip > onReady=null)
Parameters
text: string
voice: string  Optional voice name/id. Implementations may map/ignore.
onReady: Action< AudioClip >  Invoked with a decoded AudioClip when audio is ready.
Returns
IEnumerator