IT. Expert System.

Android Reference

RecognitionService


android.speech

Class RecognitionService

  • All Implemented Interfaces:
    ComponentCallbacks, ComponentCallbacks2


    public abstract class RecognitionService
    extends Service
    This class provides a base class for recognition service implementations. This class should be extended only in case you wish to implement a new speech recognizer. Please note that the implementation of this service is stateless.
    • Field Detail

      • SERVICE_META_DATA

        public static final String SERVICE_META_DATA
        Name under which a RecognitionService component publishes information about itself. This meta-data should reference an XML resource containing a <recognition-service> tag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RecognitionService

        public RecognitionService()
    • Method Detail

      • onStartListening

        protected abstract void onStartListening(Intent recognizerIntent,
                            RecognitionService.Callback listener)
        Notifies the service that it should start listening for speech.
        Parameters:
        recognizerIntent - contains parameters for the recognition to be performed. The intent may also contain optional extras, see RecognizerIntent. If these values are not set explicitly, default values should be used by the recognizer.
        listener - that will receive the service's callbacks
      • onCancel

        protected abstract void onCancel(RecognitionService.Callback listener)
        Notifies the service that it should cancel the speech recognition.
      • onStopListening

        protected abstract void onStopListening(RecognitionService.Callback listener)
        Notifies the service that it should stop listening for speech. Speech captured so far should be recognized as if the user had stopped speaking at this point. This method is only called if the application calls it explicitly.
      • onBind

        public final IBinder onBind(Intent intent)
        Description copied from class: Service
        Return the communication channel to the service. May return null if clients can not bind to the service. The returned IBinder is usually for a complex interface that has been described using aidl.

        Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about the main thread can be found in Processes and Threads.

        Specified by:
        onBind in class Service
        Parameters:
        intent - The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.
        Returns:
        Return an IBinder through which clients can call on to the service.
      • onDestroy

        public void onDestroy()
        Description copied from class: Service
        Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead. Do not call this method directly.
        Overrides:
        onDestroy in class Service


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: 2097 / . Delta: 0.02898 с