Public Types | |
enum | ReadingMode { REAL_TIME, ALL_AT_ONCE } |
Public Member Functions | |
virtual void | setReadingMode (ReadingMode mode, ReturnCode::Type &returnCode)=0 |
virtual AudioStreamProxy | createAudio (ReturnCode::Type &returnCode)=0 |
virtual void | start (ReturnCode::Type &returnCode)=0 |
virtual void | stop (ReturnCode::Type &returnCode)=0 |
Static Public Member Functions | |
static UAPI_EXPORT MediaFileReaderProxy | create (const char *pszFileName, AudioSourceListenerProxy &listener, ReturnCode::Type &returnCode) |
Protected Member Functions | |
MediaFileReader () | |
virtual | ~MediaFileReader () |
Friends | |
class | MediaFileReaderProxy |
android.speech.recognition.MediaFileReader.MediaFileReader | ( | ) | [protected] |
Prevent destruction.
virtual android.speech.recognition.MediaFileReader.~MediaFileReader | ( | ) | [protected, virtual] |
Prevent destruction.
static UAPI_EXPORT MediaFileReaderProxy android.speech.recognition.MediaFileReader.create | ( | const char * | pszFileName, | |
AudioSourceListenerProxy & | listener, | |||
ReturnCode::Type & | returnCode | |||
) | [static] |
Creates an instance of this class.
pszFileName | the name of the file in which we will read the audio samples. Note: The file MUST be of type Microsoft WAVE RIFF format (PCM 16 bits 8000 Hz or PCM 16 bits 11025 Hz). | |
listener | listens for MediaFileReader events | |
logger | the logger | |
returnCode | the return code |
virtual void android.speech.recognition.MediaFileReader.setReadingMode | ( | ReadingMode | mode, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Set the reading mode
mode | the reading mode | |
returnCode | the return code |
virtual AudioStreamProxy android.speech.recognition.AudioSource.createAudio | ( | ReturnCode::Type & | returnCode | ) | [pure virtual, inherited] |
Returns an object that contains audio samples.
returnCode | the return code |
virtual void android.speech.recognition.AudioSource.start | ( | ReturnCode::Type & | returnCode | ) | [pure virtual, inherited] |
Starts collecting audio samples.
returnCode | the return code |
virtual void android.speech.recognition.AudioSource.stop | ( | ReturnCode::Type & | returnCode | ) | [pure virtual, inherited] |
Stops collecting audio samples.
returnCode | the return code |