0

사용자가 음성 명령을 수행하려고하지만 어떤 해결책도 찾을 수 없을 때 Google의 음성 인식 UI 대화 상자 제거와 관련하여 문제의 해결책을 찾았습니다. 나는 사용자에게 메뉴를 표시하는 응용 프로그램을 구현하려고하는데 사용자는 옵션을 클릭하거나 새 페이지를 열 수있는 옵션을 크게 말할 수 있습니다. 지금까지 Google 리더 인식 기능을 사용하지 않으면 구현할 수 없었지만 대화 상자가 나타나지 않게했습니다. 누구든지 아이디어가 있습니까? 아니면 누구든지이 문제를 해결했거나 해결 방법을 찾았습니까? 감사합니다음성 인식 명령 Android

편집 : 타협으로 어쩌면 내 메뉴를 볼 수있는 동안 대화 상자를 화면 하단으로 이동하는 방법이 있습니까?

답변

1

How can I use speech recognition without the annoying dialog in android phones이 도움이됩니까?

Nuance/Dragon은 서비스를 사용하는 프로덕션 또는 상용 응용 프로그램에 대해 요금이 부과됩니다. 데모 일 뿐이라면 개발자 계정으로 문제가 없을 수도 있습니다. Android 음성 서비스는 모든 Android 애플리케이션에서 무료입니다.

+0

아픈이 봐주고 .... 나는 이것은 IS이 스레드 –

+0

을 본 적이 : 여기

는 여기 RecognitionListener에 대한 문서가의 당신에게

public class SpeechRecognizerExample extends Activity implements RecognitionListener{ //This would go down in your onCreate SpeechRecognizer recognizer = SpeechRecognizer.createSpeechRecognizer(this); recognizer.setRecognitionListener(this); //Then you'd need to start it when the user clicks or selects a text field or something Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); //intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "zh"); intent.putExtra("calling_package", "yourcallingpackage"); recognizer.startListening(intent); //Then you'd need to implement the RecognitionListener functions - basically works just like a click listener 

을하는 데 도움이되는 몇 가지 코드입니다 마지막으로 해결책을 제시하십시오! –