android speech android speech Interfaces Recognition Listener Used



































- Slides: 35

android. speech

android. speech • Interfaces – Recognition. Listener • Used for receiving notifications from the Speech. Recognizer when the recognition related events occur • Classes – recognition. Service • This class provides a base class for recognition service implementations – Recognition. Service. Callback • This class receives callbacks from the speech recognition service and forwards tem to the user – Recognizer. Intent • Constants for supporting speech recognition through starting an Intent – Recognizer. Result. Intent • Constants for intents related to showing speech recognition results – Speech. Recognizer • This class provides access to the speech recognition service

Recognition. Listener • Overview – Used for receiving notifications from the Speech. Recognizer when the recognition related events occur.

Recognition. Service • Overview – provides a base class for recognition service implementations. – should be extended only in case you wish to implement a new speech recognizer.

Recognition. Service

Recognition. Service. Callback • Overview – receives callbacks from the speech recognition service and forwards them to the user. – An instance of this class is passed to the on. Start. Listening(Intent, Callback) method.

Recognition. Service. Callback

Recognizer. Intent • Overview – Constants for supporting speech recognition through starting an Intent

Recognizer. Intent • Overview – Constants for supporting speech recognition through starting an Intent

Recognizer. Intent • Overview – Constants for supporting speech recognition through starting an Intent

Recognizer. Intent • Overview – Constants for supporting speech recognition through starting an Intent

Recognizer. Intent • Overview – Constants for supporting speech recognition through starting an Intent

Recognizer. Results. Intent • Overview – Constants for intents related to showing speech recognition results. – should not be needed for normal utilization of speech recognition. • • only be called if you wanted to trigger a view of voice search results in your application implemented if you wanted to offer a different view for voice search results with your application. – The standard behavior here for someone receiving an ACTION_VOICE_SEARCH_RESULTS is to first retrieve the list of EXTRA_VOICE_SEARCH_RESULT_STRINGS, and use any provided HTML for that result in EXTRA_VOICE_SEARCH_RESULT_HTML, if available, to display the search results. If that is not available, then the corresponding url for that result in EXTRA_VOICE_SEARCH_RESULT_URLS should be used. And if even that is not available, then a search url should be constructed from the actual recognition result string

Recognizer. Results. Intent

Speech. Recognizer • Overview – provides access to the speech recognition service. – This service allows access to the speech recognizer. – Do not instantiate this class directly • call create. Speech. Recognizer(Context). – the application must have RECORD_AUDIO permission to use this class

Speech. Recognizer • Overview • This class provides access to the speech recognition service. This service allows access to the speech recognizer. Do not instantiate this class directly, instead, call create. Speech. Recognizer(Context). This class's methods must be invoked only from the main application thread. • The implementation of this API is likely to stream audio to remote servers to perform speech recognition. As such this API is not intended to be used for continuous recognition, which would consume a significant amount of battery and bandwidth. • Please note that the application must have RECORD_AUDIO permission to use this class.








결과화면 main Activity Recognition. Intent Recognition. Listener + Speech. Recognizer Result

프로젝트 구성 및 화면 설계 Main Activity Custom. UIActivity



Recognizer. Intent 예제




Recognizer. Listener 예제


