| android.speech.RecognitionListener | 
Used for receiving notifications from the SpeechRecognizer when the recognition related events occur. All the callbacks are executed on the Application main thread.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          
          The user has started to speak.
          
         | 
       ||||||||||
| 
          | 
        
          
          More sound has been received.
          
         | 
       ||||||||||
| 
          | 
        
          
          Called after the user stops speaking.
          
         | 
       ||||||||||
| 
          | 
        
          
          A network or recognition error occurred.
          
         | 
       ||||||||||
| 
          | 
        
          
          Reserved for adding future events.
          
         | 
       ||||||||||
| 
          | 
        
          
          Called when partial recognition results are available.
          
         | 
       ||||||||||
| 
          | 
        
          
          Called when the endpointer is ready for the user to start speaking.
          
         | 
       ||||||||||
| 
          | 
        
          
          Called when recognition results are ready.
          
         | 
       ||||||||||
| 
          | 
        
          
          The sound level in the audio stream has changed.
          
         | 
       ||||||||||
More sound has been received. The purpose of this function is to allow giving feedback to the user regarding the captured audio. There is no guarantee that this method will be called.
| buffer | a buffer containing a sequence of big-endian 16-bit integers representing a single channel audio stream. The sample rate is implementation dependent. | 
|---|
A network or recognition error occurred.
| error | 
           code is defined in
           
            
             SpeechRecognizer
            
           
           | 
         
|---|
Reserved for adding future events.
| eventType | the type of the occurred event | 
|---|---|
| params | a Bundle containing the passed parameters | 
         Called when partial recognition results are available. The callback might be called at any
 time between
         
          
           onBeginningOfSpeech()
          
         
         and
         
          
           onResults(Bundle)
          
         
         when partial
 results are ready. This method may be called zero, one or multiple times for each call to
         
          
           startListening(Intent)
          
         
         , depending on the speech recognition
 service implementation.  To request partial results, use
         
          
           EXTRA_PARTIAL_RESULTS
          
         
        
| partialResults | 
           the returned results. To retrieve the results in
        ArrayList<String> format use
           
            
             getStringArrayList(String)
            
           
           with
           
            
             RESULTS_RECOGNITION
            
           
           as a parameter
           | 
         
|---|
Called when the endpointer is ready for the user to start speaking.
| params | parameters set by the recognition service. Reserved for future use. | 
|---|
Called when recognition results are ready.
| results | 
           the recognition results. To retrieve the results in
           
            ArrayList<String>
           
           format use
           
            
             getStringArrayList(String)
            
           
           with
           
            
             RESULTS_RECOGNITION
            
           
           as a parameter. A float array of
        confidence values might also be given in
           
            
             CONFIDENCE_SCORES
            
           
           .
           | 
         
|---|
The sound level in the audio stream has changed. There is no guarantee that this method will be called.
| rmsdB | the new RMS dB value | 
|---|