|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.file.VoiceBxFile
public final class VoiceBxFile
语音文件。
Nested Class Summary | |
---|---|
static class |
VoiceBxFile.CharsetType
语音数据编码格式。 |
Nested classes/interfaces inherited from interface onbon.bx06.file.BxFile |
---|
BxFile.Binary |
Constructor Summary | |
---|---|
VoiceBxFile(int no)
建构子。 |
|
VoiceBxFile(String fileName)
建构子。 |
Method Summary | |
---|---|
BxFile.Binary |
generate()
产生文件的位元组资讯。 |
String |
getContent()
取得语音数据。 |
VoiceBxFile.CharsetType |
getContentCharset()
取得语音数据编码格式。 |
String |
getFileName()
取得文件名称。 |
onbon.bx06.message.common.FileType |
getFileType()
取得文件类型。 |
int |
getNumDeal()
取得保留参数:数字处理方式。 |
int |
getPerson()
取得发音人。 |
int |
getReplayDelay()
取得两次播放语音的时间间隔,单位为 10ms。 |
int |
getReplayTimes()
取得重播次数,-1 表示播放无限次。 |
int |
getSpeed()
取得语速。 |
int |
getSymbolStyle()
取得保留参数:阿拉伯数字、度量单位、特殊符号等合成方式。 |
int |
getVolume()
取得音量。 |
int |
getWordStyle()
取得保留参数:字詞发音方式。 |
boolean |
isExtraInfo()
取得是否有保留参数。 |
boolean |
isStoreInFlash()
设定是否需要存储到FLASH。 |
void |
setContent(String content)
设定语音数据。 |
void |
setContentCharset(VoiceBxFile.CharsetType contentCharset)
设定语音数据编码格式。 |
void |
setExtraInfo(boolean extraInfo)
设定保留参数。 |
void |
setNumDeal(int numDeal)
设定保留参数:数字处理方式。 0:自动判断。 1:数字作号码处理。 2:数字作数值处理。。 |
void |
setPerson(int person)
设定发音人。 |
void |
setReplayDelay(int replayDelay)
设定两次播放语音的时间间隔,单位为 10ms。 |
void |
setReplayTimes(int replayTimes)
设定重播次数, -1 表示播放无限次。 |
void |
setSpeed(int speed)
设定语速。 |
void |
setStoreInFlash(boolean storeInFlash)
设定是否需要存储到FLASH。 |
void |
setSymbolStyle(int symbolStyle)
设定保留参数:阿拉伯数字、度量单位、特殊符号等合成方式。 0:自动判断语种。 1:阿拉伯数字、度量单位、特殊符号等合成为中文。 2:阿拉伯数字、度量单位、特殊符号等合成为英文。 |
void |
setVolume(int volume)
设定音量。 |
void |
setWordStyle(int wordStyle)
设定保留参数:字詞发音方式。 0:自动判断发音方式。 1:字母发音方式。 2:单词发音方式。。 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VoiceBxFile(int no)
no
- 语音编号组,0-999。public VoiceBxFile(String fileName)
fileName
- 语音名称。长度为四,第一码为 V,后三码为数字,例如 V042。Method Detail |
---|
public boolean isStoreInFlash()
public void setStoreInFlash(boolean storeInFlash)
storeInFlash
- public int getPerson()
public void setPerson(int person)
person
- 发音人,0 ~ 5。public int getVolume()
public void setVolume(int volume)
volume
- 音量,0 ~ 10。public int getSpeed()
public void setSpeed(int speed)
speed
- 语速,0 ~ 10。public int getReplayTimes()
public void setReplayTimes(int replayTimes)
replayTimes
- 重播时间间隔。public int getReplayDelay()
public void setReplayDelay(int replayDelay)
replayDelay
- 重播时间间隔。public boolean isExtraInfo()
public void setExtraInfo(boolean extraInfo)
extraInfo
- 保留参数。public int getNumDeal()
public void setNumDeal(int numDeal)
numDeal
- public int getSymbolStyle()
public void setSymbolStyle(int symbolStyle)
symbolStyle
- public int getWordStyle()
public void setWordStyle(int wordStyle)
wordStyle
- 字詞发音方式。public VoiceBxFile.CharsetType getContentCharset()
public void setContentCharset(VoiceBxFile.CharsetType contentCharset)
contentCharset
- 语音数据编码格式。public String getContent()
public void setContent(String content)
content
- 语音数据。public String getFileName()
BxFile
getFileName
in interface BxFile
public onbon.bx06.message.common.FileType getFileType()
BxFile
getFileType
in interface BxFile
public BxFile.Binary generate() throws Bx6GException
BxFile
generate
in interface BxFile
Bx6GException
- 产生位元组资讯时发生错误。
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |