android.speech.recognition.VoicetagItem Class Reference

Inheritance diagram for android.speech.recognition.VoicetagItem:

Inheritance graph
[legend]
Collaboration diagram for android.speech.recognition.VoicetagItem:

Collaboration graph
[legend]

List of all members.


Detailed Description

Voicetag that may be inserted into an embedded grammar slot.

Author:
Gili Tzabari, Marc Robitaille

Public Member Functions

virtual void getAudio (const INT16 **waveform, ARRAY_LIMIT *size, ReturnCode::Type &returnCode) const =0
virtual void setAudio (const INT16 *waveform, ARRAY_LIMIT size, ReturnCode::Type &returnCode)=0
virtual bool isWord () const
virtual bool isVoicetag () const

Protected Member Functions

 VoicetagItem ()
virtual ~VoicetagItem ()

Friends

class VoicetagItemProxy
class android::speech::recognition::srec::SrecGrammarImpl
class SlotItemProxy

Constructor & Destructor Documentation

android.speech.recognition.VoicetagItem.VoicetagItem (  )  [protected]

Prevent construction.

virtual android.speech.recognition.VoicetagItem.~VoicetagItem (  )  [protected, virtual]

Prevent destruction.


Member Function Documentation

virtual void android.speech.recognition.VoicetagItem.getAudio ( const INT16 **  waveform,
ARRAY_LIMIT *  size,
ReturnCode::Type returnCode 
) const [pure virtual]

(Optional operation) Returns the audio used to construct the Voicetag. The audio is in PCM format and is start-pointed and end-pointed. The audio is only generated if the enableGetWaveform recognition parameter is set prior to recognition.

Parameters:
waveform the read-only endpointed waveform
size the size of the waveform in bytes
returnCode the return code
See also:
RecognizerParameters.enableGetWaveform

virtual void android.speech.recognition.VoicetagItem.setAudio ( const INT16 *  waveform,
ARRAY_LIMIT  size,
ReturnCode::Type returnCode 
) [pure virtual]

(Optional operation) Sets the audio used to construct the Voicetag. The audio is in PCM format and is start-pointed and end-pointed. The audio is only generated if the enableGetWaveform recognition parameter is set prior to recognition.

Parameters:
waveform the endpointed waveform
size the size of the waveform in bytes
returnCode the return code
See also:
RecognizerParameters.enableGetWaveform

virtual bool android.speech.recognition.VoicetagItem.isWord (  )  const [virtual]

Returns true if the item is a word.

Implements android.speech.recognition.SlotItem.

virtual bool android.speech.recognition.VoicetagItem.isVoicetag (  )  const [virtual]

Returns true if the item is a voicetag.

Implements android.speech.recognition.SlotItem.


Generated on Thu May 1 17:16:53 2008 for UAPI by  doxygen 1.5.3