Modules | Files | Inheritance Tree | Inheritance Graph | Name Index
module GNOME::Speech::Recognition
interface RecognizerAudioEvent
Files: GNOME_Speech.idl
GNOME-Speech-Recognition-RecognizerAudioEvent-inheritance GNOME-Speech-AudioEvent.html GNOME-Speech-SpeechEvent.html GNOME-Speech-SpeechObject.html Bonobo-Unknown.html
Operations Summary:
 voidinitWithRecognizerAndId(in Recognizer source, in long id)
 voidinitWithLevel(in Recognizer source, in long id, in float audioLevel)
 floatgetAudioLevel()

Operations Inherited from AudioEvent
initWithEngineAndId

Operations Inherited from SpeechEvent
init, initWithId, getId, getSource, paramString, toString

Operations Inherited from Bonobo::Unknown
ref, unref, queryInterface

Operation Details:
 void initWithRecognizerAndId(in Recognizer source, in long id)

Initializes an RecognizerAudioEvent with a specified event identifier. The audioLevel is set to 0.0.

Parameters:
source - the Recognizer that issued the event.
id - the identifier for the event type.


 void initWithLevel(in Recognizer source, in long id, in float audioLevel)

Initializes an RecognizerAudioEvent with a specified event identifier and audio level. The audioLevel should be 0.0 for SPEECH_STARTED and SPEECH_STOPPED events.

Parameters:
source - the Recognizer that issued the event.
id - the identifier for the event type.
audioLevel - the audio level for this event.


 float getAudioLevel()

Get the audio input level in the range 0 to 1. A value below 0.25 indicates quiet input with 0.0 being silence. A value above 0.75 indicates loud input with 1.0 indicating the maximum level.

The level is provided only for the AUDIO_LEVEL event type. The level should be ignored for SPEECH_STARTED and SPEECH_STOPPED events.

Return:
the audio input level in the range 0 to 1.
See Also:
AUDIO_LEVEL