|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.speech.recognition.VoicetagItem
android.speech.recognition.impl.VoicetagItemImpl
public class VoicetagItemImpl
| Constructor Summary | |
|---|---|
VoicetagItemImpl(long nativeObject,
boolean fromfile)
Creates a new VoicetagItemImpl. |
|
| Method Summary | |
|---|---|
static VoicetagItem |
create(String filename,
VoicetagItemListener listener)
Creates a VoicetagItem from a file |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
byte[] |
getAudio()
Returns the audio used to construct the VoicetagItem. |
long |
getNativeObject()
|
void |
load()
Load a Voicetag. |
void |
run()
Begin doing the active part of the class' code. |
void |
save(String path)
Save the Voicetag. |
void |
setAudio(byte[] waveform)
Sets the audio used to construct the Voicetag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VoicetagItemImpl(long nativeObject,
boolean fromfile)
nativeObject - the pointer to the native object| Method Detail |
|---|
public void run()
Runnable
run in interface Runnable
public static VoicetagItem create(String filename,
VoicetagItemListener listener)
throws IllegalArgumentException,
FileNotFoundException,
IOException
filename - filename for Voicetaglistener - listens for Voicetag events
IllegalArgumentException - if filename is null or an empty string.
FileNotFoundException - if the specified filename could not be found
IOException - if the specified filename could not be opened
public byte[] getAudio()
throws IllegalStateException
getAudio in class VoicetagItemIllegalStateException - if the recognition parameter 'enableGetWaveform' is not set
public void setAudio(byte[] waveform)
throws IllegalArgumentException,
IllegalStateException
setAudio in class VoicetagItemwaveform - the endpointed waveform
IllegalArgumentException - if waveform is null or empty.
IllegalStateException - if the recognition parameter 'enableGetWaveform' is not set
public void save(String path)
throws IllegalArgumentException
save in class VoicetagItempath - where the Voicetag will be saved. We strongly recommend to set the filename with the same value of the VoicetagId.
IllegalArgumentException - if path is null or an empty string.
public void load()
throws IllegalStateException
load in class VoicetagItemIllegalStateException - if voicetag has not been created from a file.public long getNativeObject()
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||