안드로이드 기반 음성인식 - Android speech API
Document URL : http://thoth.kr/1976791안드로이드에서 스피치 API를 제공합니다.
이를 활용하여 TTS/ 음성인식/ 통역등 여러가지 어플을
개발중이거나 출시한것으로 알고 있습니다. [저도 제작 중이긴 하나... 언제 될지 ㅠ]
Intent에서 파생되어 나왔으며 API3레벨을 지원하므로 1.5 버전부터 사용이 가능하지만
API 4레벨이나 2.0부터 사용하길 권합니다.
(실제 사용은 2.0부터라고 생각 하시는게 좋습니다 ^^)
안드로이드 개발 센터에서 필요한 부분만 발취했습니다.
아래 내용 출처는 - http://developer.android.com
public class RecognizerIntent
| java.lang.Object | |
| ↳ | android.speech.RecognizerIntent |
Constants
public static final String ACTION_RECOGNIZE_SPEECH
Since: API Level 3
Starts an activity that will prompt the user for speech and sends it through a speech recognizer. The results will be returned via activity results, or forwarded via a PendingIntent if one is provided.
Required extras:
Optional extras:
EXTRA_PROMPT
EXTRA_LANGUAGE
EXTRA_MAX_RESULTS
EXTRA_RESULTS_PENDINGINTENT
EXTRA_RESULTS_PENDINGINTENT_BUNDLE
Result extras:
NOTE: There may not be any applications installed to handle this action, so you should make sure to catch ActivityNotFoundException.
Constant Value: "android.speech.action.RECOGNIZE_SPEECH"
Constants
public static final String ACTION_RECOGNIZE_SPEECH
Starts an activity that will prompt the user for speech and sends it through a speech recognizer. The results will be returned via activity results, or forwarded via a PendingIntent if one is provided.
Required extras:
Optional extras:
EXTRA_PROMPTEXTRA_LANGUAGEEXTRA_MAX_RESULTSEXTRA_RESULTS_PENDINGINTENTEXTRA_RESULTS_PENDINGINTENT_BUNDLE
Result extras:
NOTE: There may not be any applications installed to handle this action, so you should make sure to catch ActivityNotFoundException.
public static final String EXTRA_LANGUAGE
Since: API Level 3
Optional language override to inform the recognizer that it should expect speech in a language different than the one set in the getDefault().
Constant Value: "android.speech.extra.LANGUAGE"
public static final String EXTRA_LANGUAGE_MODEL
Since: API Level 3
Informs the recognizer which speech model to prefer when performing ACTION_RECOGNIZE_SPEECH. The recognizer uses this information to fine tune the results. This extra is required. Activities implementing ACTION_RECOGNIZE_SPEECH may interpret the values as they see fit.
Constant Value: "android.speech.extra.LANGUAGE_MODEL"
public static final String EXTRA_LANGUAGE
Since: API Level 3
Optional language override to inform the recognizer that it should expect speech in a language different than the one set in the getDefault().
Constant Value: "android.speech.extra.LANGUAGE"
public static final String EXTRA_LANGUAGE_MODEL
Since: API Level 3
Informs the recognizer which speech model to prefer when performing ACTION_RECOGNIZE_SPEECH. The recognizer uses this information to fine tune the results. This extra is required. Activities implementing ACTION_RECOGNIZE_SPEECH may interpret the values as they see fit.
Constant Value: "android.speech.extra.LANGUAGE_MODEL"
public static final String EXTRA_LANGUAGE
Optional language override to inform the recognizer that it should expect speech in a language different than the one set in the getDefault().
public static final String EXTRA_LANGUAGE_MODEL
Informs the recognizer which speech model to prefer when performing ACTION_RECOGNIZE_SPEECH. The recognizer uses this information to fine tune the results. This extra is required. Activities implementing ACTION_RECOGNIZE_SPEECH may interpret the values as they see fit.
- [2012/02/01] 안드로이드 3.2 이상에서 OpenGL ES 참고사항 (134)
- [2012/01/15] 아이폰의 시리? 안드로이드도 나온다 '드래곤 고(Dragon Go)' (206)
- [2011/07/23] Viber 바이버 안드로이드 버젼 (2) *4
- [2011/12/08] 안드로이드 비행모드 확인 코드 (331)
- [2011/12/07] [안드로이드] 페이퍼 카메라 (1695)
- Tagged :
- Android android apeech android API jl Speech 안드로이드 음성인식 제이엘


