com.baidu.tts.client
Enum TtsMode
java.lang.Object
java.lang.Enum<TtsMode>
com.baidu.tts.client.TtsMode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TtsMode>
public enum TtsMode
- extends java.lang.Enum<TtsMode>
- Author:
- liweigao 2015年10月10日
Enum Constant Summary |
MIX
离在线混合引擎(优先使用在线引擎,如果在线合成失败自动转为离线引擎合成) |
ONLINE
纯在线合成引擎 |
Method Summary |
java.lang.String |
getDescription()
|
int |
getMode()
|
TtsEnum |
getTtsEnum()
|
static TtsMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TtsMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ONLINE
public static final TtsMode ONLINE
- 纯在线合成引擎
MIX
public static final TtsMode MIX
- 离在线混合引擎(优先使用在线引擎,如果在线合成失败自动转为离线引擎合成)
values
public static TtsMode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TtsMode c : TtsMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TtsMode valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getTtsEnum
public TtsEnum getTtsEnum()
- Returns:
- the ttsEnum
getMode
public int getMode()
- Returns:
getDescription
public java.lang.String getDescription()
- Returns: