IT. Expert System.

Android Reference

RecognitionListener


android.speech

Interface RecognitionListener



  • public interface RecognitionListener
    Used for receiving notifications from the SpeechRecognizer when the recognition related events occur. All the callbacks are executed on the Application main thread.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void onBeginningOfSpeech()
      The user has started to speak.
      void onBufferReceived(byte[] buffer)
      More sound has been received.
      void onEndOfSpeech()
      Called after the user stops speaking.
      void onError(int error)
      A network or recognition error occurred.
      void onEvent(int eventType, Bundle params)
      Reserved for adding future events.
      void onPartialResults(Bundle partialResults)
      Called when partial recognition results are available.
      void onReadyForSpeech(Bundle params)
      Called when the endpointer is ready for the user to start speaking.
      void onResults(Bundle results)
      Called when recognition results are ready.
      void onRmsChanged(float rmsdB)
      The sound level in the audio stream has changed.
    • Method Detail

      • onReadyForSpeech

        void onReadyForSpeech(Bundle params)
        Called when the endpointer is ready for the user to start speaking.
        Parameters:
        params - parameters set by the recognition service. Reserved for future use.
      • onBeginningOfSpeech

        void onBeginningOfSpeech()
        The user has started to speak.
      • onRmsChanged

        void onRmsChanged(float rmsdB)
        The sound level in the audio stream has changed. There is no guarantee that this method will be called.
        Parameters:
        rmsdB - the new RMS dB value
      • onBufferReceived

        void onBufferReceived(byte[] buffer)
        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.
        Parameters:
        buffer - a buffer containing a sequence of big-endian 16-bit integers representing a single channel audio stream. The sample rate is implementation dependent.
      • onEndOfSpeech

        void onEndOfSpeech()
        Called after the user stops speaking.
      • onError

        void onError(int error)
        A network or recognition error occurred.
        Parameters:
        error - code is defined in SpeechRecognizer
      • onEvent

        void onEvent(int eventType,
                   Bundle params)
        Reserved for adding future events.
        Parameters:
        eventType - the type of the occurred event
        params - a Bundle containing the passed parameters


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 10837 / . Delta: 0.05913 с