|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.speech4j.speech.NativeObject | +--com.speech4j.speech.Audio
Represents IAudio interface. See IAudio documentation for more details.
Methods PassNotify()
and ToFileTime()
are not
implemened.
Constructor Summary | |
Audio()
|
Method Summary | |
void |
claim()
See IAudio::Claim(). |
void |
flush()
See IAudio::Flush() |
int |
getLevel()
See IAudio::LevelGet() |
long |
getPosn()
See IAudio::PosnGet() |
long |
getTotal()
See IAudio::TotalGet() |
byte[] |
getWaveFormat()
See IAudio::WaveFormatGet() |
void |
setLevel(int level)
See IAudio::LevelSet() |
void |
setWaveFormat(byte[] format)
See IAudio::WaveFormatSet() |
void |
start()
See IAudio::Start() |
void |
Stop()
See IAudio::Stop() |
void |
unClaim()
See IAudio::UnClaim() |
Methods inherited from class com.speech4j.speech.NativeObject |
bytes2String, cleanup, getObjID, processMessages, stopProcessingMessages, string2Bytes, testSpeech |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Audio()
Method Detail |
public void claim() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Claim() returns nonzero error code.public void flush() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Flush() returns nonzero error code.public int getLevel() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or LevelGet() returns nonzero error code.public void setLevel(int level) throws SpeechException
level
- Volume level
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or LevelSet() returns nonzero error code.public long getPosn() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or PosnGet() returns nonzero error code.public void start() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Start() returns nonzero error code.public void Stop() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Stop() returns nonzero error code.public long getTotal() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or TotalGet() returns nonzero error code.public void unClaim() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or UnClaim() returns nonzero error code.public byte[] getWaveFormat() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or WaveFormatGet() returns nonzero error code.public void setWaveFormat(byte[] format) throws SpeechException
format
- Wave format
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or WaveFormatSet() returns nonzero error code.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |