public static enum AsrConstant.VoiceFormat extends java.lang.Enum<AsrConstant.VoiceFormat>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getFormatId() |
int |
getFormatIdByName(java.lang.String formatName) |
java.lang.String |
getFormatName() |
java.lang.String |
getFormatNameById(int formatId) |
static AsrConstant.VoiceFormat |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static AsrConstant.VoiceFormat[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AsrConstant.VoiceFormat wav
public static final AsrConstant.VoiceFormat sp
public static final AsrConstant.VoiceFormat silk
public static final AsrConstant.VoiceFormat mp3
public static AsrConstant.VoiceFormat[] values()
for (AsrConstant.VoiceFormat c : AsrConstant.VoiceFormat.values()) System.out.println(c);
public static AsrConstant.VoiceFormat valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getFormatId()
public java.lang.String getFormatName()
public int getFormatIdByName(java.lang.String formatName)
public java.lang.String getFormatNameById(int formatId)
Copyright © 2023. All rights reserved.