目录

com.huawei.hms.mlsdk.tts.MLTtsConstants

TTS SDK 常量定义类。

Constant Summary

TypeNameDesc
intEVENT_PLAY_START播放开始的事件Id。
intEVENT_PLAY_PAUSE播放暂停的事件Id。
intEVENT_PLAY_RESUME播放恢复的事件Id。
intEVENT_PLAY_STOP播放停止的事件Id。
intEVENT_SYNTHESIS_START语音合成开始的事件Id。
intEVENT_SYNTHESIS_END语音合成结束的事件Id。
intEVENT_SYNTHESIS_COMPLETE语音合成任务处理完成(即合成的音频数据全部处理完毕)的事件Id。
StringEVENT_SYNTHESIS_INTERRUPTED语音合成完成事件的Bundle参数中对应“是否异常中断”的Key值。
StringEVENT_PLAY_STOP_INTERRUPTED播放停止事件的Bundle参数中对应“是否异常中断”的Key值。
StringTTS_EN_US美标英语。

String

TTS_LAN_ES_ES

西班牙语(西班牙)

String

TTS_LAN_FR_FR

法语(法国)。

StringTTS_SPEAKER_FEMALE_EN英文女声。
StringTTS_SPEAKER_FEMALE_ZH中文女声。
StringTTS_SPEAKER_MALE_EN英文男声。
StringTTS_SPEAKER_MALE_ZH中文男声。
StringTTS_ZH_HANS简体汉字。
String

TTS_SPEAKER_FEMALE_ES

西班牙标准女声。

String

TTS_SPEAKER_FEMALE_FR

法语标准女声。

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

public static final String EVENT_SYNTHESIS_INTERRUPTED

语音合成完成事件的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”