Метод | Описание | |
---|---|---|
SpeakSsml ( string ssml ) : void |
Speaks the specified SSML markup using text-to-speech.
|
|
SpeakText ( string text ) : void |
Speaks the specified text using text-to-speech.
|
Метод | Описание | |
---|---|---|
BytesToFloat ( byte firstByte, byte secondByte ) : float |
Converts two bytes to one float in the range -1 to 1
|
|
BytesToInt ( byte bytes, int offset ) : int |
Converts an array of bytes to an integer.
|
|
LogSpeech ( string text ) : void |
Logs speech text that normally would have been played.
|
|
PlaySpeech ( string text, Func |
Executes a function that generates a speech stream and then converts and plays it in Unity.
|
|
Start ( ) : void | ||
ToClip ( string name, float audioData, int sampleCount, int frequency ) : |
Dynamically creates an AudioClip that represents raw Unity audio data.
|
|
ToUnityAudio ( byte wavAudio, int &sampleCount, int &frequency ) : float[] |
Converts raw WAV data into Unity formatted audio data.
|
public SpeakSsml ( string ssml ) : void | ||
ssml | string | /// The SSML markup to speak. /// |
Результат | void |
public SpeakText ( string text ) : void | ||
text | string | /// The text to speak. /// |
Результат | void |