TTS SDK 常量定义类。
| Type | Name | Desc |
| int | EVENT_PLAY_START | 播放开始的事件Id。 |
| int | EVENT_PLAY_PAUSE | 播放暂停的事件Id。 |
| int | EVENT_PLAY_RESUME | 播放恢复的事件Id。 |
| int | EVENT_PLAY_STOP | 播放停止的事件Id。 |
| int | EVENT_SYNTHESIS_START | 语音合成开始的事件Id。 |
| int | EVENT_SYNTHESIS_END | 语音合成结束的事件Id。 |
| int | EVENT_SYNTHESIS_COMPLETE | 语音合成任务处理完成(即合成的音频数据全部处理完毕)的事件Id。 |
| String | EVENT_SYNTHESIS_INTERRUPTED | 语音合成完成事件的Bundle参数中对应“是否异常中断”的Key值。 |
| String | EVENT_PLAY_STOP_INTERRUPTED | 播放停止事件的Bundle参数中对应“是否异常中断”的Key值。 |
| String | TTS_EN_US | 美标英语。 |
String | 西班牙语(西班牙) | |
String | TTS_LAN_FR_FR | 法语(法国)。 |
| String | TTS_SPEAKER_FEMALE_EN | 英文女声。 |
| String | TTS_SPEAKER_FEMALE_ZH | 中文女声。 |
| String | TTS_SPEAKER_MALE_EN | 英文男声。 |
| String | TTS_SPEAKER_MALE_ZH | 中文男声。 |
| String | TTS_ZH_HANS | 简体汉字。 |
| String | 西班牙标准女声。 | |
String | 法语标准女声。 |
Constants
| Constant |
| public static final int EVENT_PLAY_START |
播放开始的事件Id。 Constant Value:1 |
| Constant |
| public static final int EVENT_PLAY_PAUSE |
播放暂停的事件Id。 Constant Value:3 |
| Constant |
| public static final int EVENT_PLAY_RESUME |
播放恢复的事件Id。 Constant Value:2 |
| Constant |
| public static final int EVENT_PLAY_STOP |
播放停止的事件Id。 Constant Value:4 |
| Constant |
| public static final int EVENT_SYNTHESIS_START |
语音合成开始的事件Id。 Constant Value:5 |
| Constant |
| public static final int EVENT_SYNTHESIS_END |
语音合成结束事件Id。 Constant Value:6 |
| Constant |
| public static final int EVENT_SYNTHESIS_COMPLETE |
语音合成任务处理结束(即合成的音频数据全部处理完毕)的事件Id。 Constant Value:7 |
| Constant |
语音合成完成事件的Bundle参数中对应“是否异常中断”的Key值。 Constant Value:“interrupted” |
| Constant |
| public static final String EVENT_PLAY_STOP_INTERRUPTED |
播放停止事件的Bundle参数中对应“是否异常中断”的Key值。 Constant Value:“interrupted” |
| Constant |
| public static final String TTS_EN_US |
美标英语。 Constant Value:“en-US” |
| Constant |
| public static final String TTS_LAN_ES_ES |
西班牙语(西班牙)。 Constant Value:“es-ES” |
| Constant |
| public static final String TTS_LAN_FR_FR |
法语(法国)。 Constant Value:“fr-FR” |
| Constant |
| public static final String TTS_SPEAKER_FEMALE_EN |
英文女声。 Constant Value:“Female-en” |
| Constant |
| public static final String TTS_SPEAKER_FEMALE_ZH |
中文女声。 Constant Value:“Female-zh” |
| Constant |
| public static final String TTS_SPEAKER_MALE_EN |
英文男声。 Constant Value:“Male-en” |
| Constant |
| public static final String TTS_SPEAKER_MALE_ZH |
中文男声。 Constant Value:“Male-zh” |
| Constant |
| public static final String TTS_ZH_HANS |
简体汉字。 Constant Value:“zh-Hans” |
| Constant |
| public static final String TTS_SPEAKER_FEMALE_ES |
西班牙标准女声。 Constant Value:“es-ES-st-1” |
| Constant |
| public static final String TTS_SPEAKER_FEMALE_FR |
法语标准女声。 Constant Value:“fr-FR-st-1” |