Windows

MEADOWSPhone

//Показываем

TextToSpeech classes

Synthesizing Speech


Parameters

speechText - text to be spoken.

Description

If the synthesizer is not currently speaking, the speechText is spoken immediately.


Controlling Speech Synthesis


Description

Paused after finishing the word currently being spoken.


Return value

bool if speech has continued, or false otherwise.

Description

This method only has any effect if the synthesizer is paused.


Description

Stops all speech immediately.


Parameters

rate - the rate at which the text will be spoken.

Description

Speech rates are values in the range between AVSpeechUtteranceMinimumSpeechRate (0.0f) and AVSpeechUtteranceMaximumSpeechRate (1.0f). Lower values correspond to slower speech, and vice versa. The default value is AVSpeechUtteranceDefaultSpeechRate (0.5f).


Return value

AVSpeechUtteranceMinimumSpeechRate - the minimum allowed speech rate.


Return value

AVSpeechUtteranceMaximumSpeechRate - the maximum allowed speech rate.


Parameters

pitch - the pitch at which the text will be spoken.

Description

The default pitch is 1.0. Allowed values are in the range from 0.5 (for lower pitch) to 2.0 (for higher pitch).


Parameters

volume - the volume used when speaking the text.

Description

Allowed values are in the range from 0.0 (silent) to 1.0 (loudest). The default volume is 1.0.


Controlling Languages


Return value

Returns list of all supported languages: "English (Unated States)", "French (France)" etc.


Return value

Returns list of all supported BCP-47 language codes: "en-US", "fr-FR" etc.


Return value

Returns special class TTS_Languages , which contains list of all supported languages and list of all supported BCP-47 language codes:

{

{"English (Unated States)", "French (France)" etc.},

{"en-US", "fr-FR" etc.}

}


Return value

Returns the current device's language: e.g. "English (Unated States)".


Return value

Returns the current device's BCP-47 language code: e.g. "en-US".


Parameters

language - to be set.

Description

If the language is not supported, will set the current language.


Parameters

languageCode - BCP-47 language code to be set.

Description

If the code is not supported, will set the current language code.


Controlling Callback Functions


Parameters

unityObjectName - the name of the Unity GameObject, who will receive messages from iOS TTS plugin.

Description

The default value is "GameControl".


Parameters

unityMethodName - the name of the the script method to call on that object.

Description

The default value is "DidFinishSpeak".


Parameters

unityParameterName - the message string to pass to the called method about the end of a word pronunciation.

Description

The default value is "Word".


Parameters

unityParameterName - the message string to pass to the called method about the end of a utterance pronunciation.

Description

The default value is "Utterance".


Parameters

unityParameterName - the message string to pass to the called method about the end of the all text pronunciation.

Description

The default value is "Text".


More details about UnitySendMessage can be found on the official website of Unity3D