|
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.MediaFileReader
android.speech.recognition.impl.MediaFileReaderImpl
public class MediaFileReaderImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.speech.recognition.MediaFileReader |
|---|
MediaFileReader.Mode |
| Constructor Summary | |
|---|---|
MediaFileReaderImpl(String filename,
AudioSourceListener listener)
Creates a new MediaFileReaderImpl. |
|
| Method Summary | |
|---|---|
AudioStream |
createAudio()
Creates an audioStream source |
void |
dispose()
Releases the native resources associated with the object. |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
void |
run()
Begin doing the active part of the class' code. |
void |
setMode(MediaFileReader.Mode mode)
Set the reading mode |
void |
start()
Tells the audio source to start collecting audio samples. |
void |
stop()
Stops this source from collecting audio samples. |
| Methods inherited from class android.speech.recognition.MediaFileReader |
|---|
create |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaFileReaderImpl(String filename,
AudioSourceListener listener)
filename - the name of the file to read fromlistener - listens for MediaFileReader events| Method Detail |
|---|
public void run()
Runnable
run in interface Runnablepublic void setMode(MediaFileReader.Mode mode)
setMode in class MediaFileReadermode - the reading modepublic AudioStream createAudio()
createAudio in interface AudioSourcecreateAudio in class MediaFileReaderpublic void start()
start in interface AudioSourcestart in class MediaFileReaderpublic void stop()
stop in interface AudioSourcestop in class MediaFileReaderpublic void dispose()
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 | |||||||||