java.lang.Object | |
↳ | android.speech.tts.TextToSpeech.Engine |
Internal constants for the TTS functionality
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_CHECK_TTS_DATA | Activity Action: Starts the activity from the platform Text-To-Speech engine to verify the proper installation and availability of the resource files on the system. | |||||||||
String | ACTION_INSTALL_TTS_DATA | Activity Action: Triggers the platform Text-To-Speech engine to start the activity that installs the resource files on the device that are required for TTS to be operational. | |||||||||
String | ACTION_TTS_DATA_INSTALLED | Broadcast Action: broadcast to signal the completion of the installation of the data files used by the synthesis engine. | |||||||||
int | CHECK_VOICE_DATA_BAD_DATA | Indicates erroneous data when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent. | |||||||||
int | CHECK_VOICE_DATA_FAIL | Indicates failure when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent. | |||||||||
int | CHECK_VOICE_DATA_MISSING_DATA | Indicates missing resources when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent. | |||||||||
int | CHECK_VOICE_DATA_MISSING_VOLUME | Indicates missing storage volume when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent. | |||||||||
int | CHECK_VOICE_DATA_PASS | Indicates success when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent. | |||||||||
int | DEFAULT_STREAM | ||||||||||
String | EXTRA_TTS_DATA_INSTALLED | Extra information received with the ACTION_TTS_DATA_INSTALLED intent. | |||||||||
String | EXTRA_VOICE_DATA_FILES | Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the file names of its resources under the resource path. | |||||||||
String | EXTRA_VOICE_DATA_FILES_INFO | Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the locale associated with each resource file. | |||||||||
String | EXTRA_VOICE_DATA_ROOT_DIRECTORY | Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the path to its resources. | |||||||||
String | KEY_PARAM_STREAM | Parameter key to specify the audio stream type to be used when speaking text or playing back a file. | |||||||||
String | KEY_PARAM_UTTERANCE_ID | Parameter key to identify an utterance in the completion listener after text has been spoken, a file has been played back or a silence duration has elapsed. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Activity Action: Starts the activity from the platform Text-To-Speech engine to verify the proper installation and availability of the resource files on the system. Upon completion, the activity will return one of the following codes: CHECK_VOICE_DATA_PASS, CHECK_VOICE_DATA_FAIL, CHECK_VOICE_DATA_BAD_DATA, CHECK_VOICE_DATA_MISSING_DATA, or CHECK_VOICE_DATA_MISSING_VOLUME.
Moreover, the data received in the activity result will contain the following fields:
Activity Action: Triggers the platform Text-To-Speech engine to start the activity that installs the resource files on the device that are required for TTS to be operational. Since the installation of the data can be interrupted or declined by the user, the application shouldn't expect successful installation upon return from that intent, and if need be, should check installation status with ACTION_CHECK_TTS_DATA.
Broadcast Action: broadcast to signal the completion of the installation of the data files used by the synthesis engine. Success or failure is indicated in the EXTRA_TTS_DATA_INSTALLED extra.
Indicates erroneous data when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent.
Indicates failure when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent.
Indicates missing resources when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent.
Indicates missing storage volume when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent.
Indicates success when checking the installation status of the resources used by the text-to-speech engine with the ACTION_CHECK_TTS_DATA intent.
Extra information received with the ACTION_TTS_DATA_INSTALLED intent. It indicates whether the data files for the synthesis engine were successfully installed. The installation was initiated with the ACTION_INSTALL_TTS_DATA intent. The possible values for this extra are SUCCESS and ERROR.
Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the file names of its resources under the resource path.
Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the locale associated with each resource file.
Extra information received with the ACTION_CHECK_TTS_DATA intent where the text-to-speech engine specifies the path to its resources.
Parameter key to specify the audio stream type to be used when speaking text or playing back a file.
Parameter key to identify an utterance in the completion listener after text has been spoken, a file has been played back or a silence duration has elapsed.