|
|||||||||||
| 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.MMDevice
MCI functions wrapper. Partially exports MCI API.
| Constructor Summary | |
MMDevice(java.lang.String devName)
Creates new MCI device. |
|
| Method Summary | |
void |
close()
Closes MCI device. |
void |
destroy()
Destroys corresponding native object (MCI device). |
protected void |
finalize()
Invokes destroy() to destroy native object. |
java.lang.String |
getAlias()
Returns MCI device alias. |
int |
getDeviceNumber()
Returns MCI device number. |
void |
record()
Starts recording. |
void |
save(java.lang.String fileName)
Saves data to file |
static java.lang.String |
sendString(java.lang.String command)
Sends a command to MCI device. |
void |
setPCM(byte bits,
byte channels,
int samples)
Sets PCM (Pulse Code Modulation) parameters |
void |
stop()
Stops recording. |
| Methods inherited from class com.speech4j.speech.NativeObject |
bytes2String, cleanup, getObjID, processMessages, stopProcessingMessages, string2Bytes, testSpeech |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MMDevice(java.lang.String devName)
throws SpeechException
devName - Device name.
SpeechException| Method Detail |
protected void finalize()
finalize in class java.lang.Objectpublic int getDeviceNumber()
public java.lang.String getAlias()
public void destroy()
public void save(java.lang.String fileName)
throws SpeechException
fileName - File name
SpeechException
public void setPCM(byte bits,
byte channels,
int samples)
throws SpeechException
bits - Bits per sample.channels - Number of channels.samples - Number of samples per second.
SpeechException
public void record()
throws SpeechException
SpeechExceptionpublic void close()
public void stop()
throws SpeechException
SpeechException
public static java.lang.String sendString(java.lang.String command)
throws SpeechException
command - MCI command.
SpeechException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||