안드로이드 기반 음성인식 - Android speech API

Document URL : http://thoth.kr/1976791
Programing | Posted on April 20th, 2010 at 02:23 by 제이엘 | Modify

안드로이드에서 스피치 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:

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"



 

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"



Share
이 글과 관련된 글
  1. [2012/02/01] 안드로이드 3.2 이상에서 OpenGL ES 참고사항 by 운학귀신 (134)
  2. [2012/01/15] 아이폰의 시리? 안드로이드도 나온다 '드래곤 고(Dragon Go)' by 영:)비바 (206)
  3. [2011/07/23] Viber 바이버 안드로이드 버젼 by 벼리 (2) *4
  4. [2011/12/08] 안드로이드 비행모드 확인 코드 by 운학귀신 (331)
  5. [2011/12/07] [안드로이드] 페이퍼 카메라 by 지대팬돌 (1695)
Tagged :
               

Trackbacks : 0

Trackback URL : http://jlee.thoth.kr/1976791/890/trackback

Comments : 0

T-NAVI