2013-12-17 5 views
6

행운을 빌어 iPad에서 Chrome에 음성 인식을 구현하려고합니다. Glitz Shire의 excellent sample code이 iOS 5.1.1을 실행하는 iPad 1 또는 iOS 7.0.4를 실행하는 iPad3에서 Chrome v31에서 Chrome v27을 실행하지 못하게하려면 webkitSpeechRecognition API 구현에 대한 의존성을 제거하기 만하면됩니다. 내가 말할 수있는 한. 내가 해결 방법을 알아낼 수 없습니다Chrome iOS 웹킷 음성 인식

if (!('webkitSpeechRecognition' in window)) { 
    r.onState('upgrade'); 
    return; 
} 

, 나는 음성 인식 크롬의 iOS 버전에서 작동하지 않습니다에 대해 아무 말도 모든 온라인 게시물을 본 적이 없다 : 그것은이 라인에 실패합니다. 다른 사람 누구나이 문제에 빠지니?

+0

가능한에게 참조 [크로스 브라우저 음성 인식] (http://stackoverflow.com/questions/25789249/cross-browser-speech-recognition) –

답변

9

iOS 용 Chrome은 현재 음성 인식을 지원하지 않습니다.

Google은 Safari에서 지원되지 않는 특별한 웹 해석 기능이 없다는 것을 의미하는 iOS UIWebView를 사용해야합니다.

this link을 (를)보실 수 있습니다. 경우

+0

고맙습니다. Sébastien – Gnarlito

1

당신이 Pocketsphinx.js

음성을 인식하는 코드를 볼 수 몇 가지 간단한 명령을 인식 할 간단하다 : 자세한 내용은

var id = 0; 
recognizer.postMessage({command: 'initialize', callbackId: id}); 
var keyphrase = "HELLO WORLD"; 
recognizer.postMessage({command: 'addKeyword', data: keyphrase, callbackId: id}); 
recognizer.postMessage({command: 'start', data: id}); 
recognizer.postMessage({command: 'process', data: array}); 
recognizer.postMessage({command: 'stop'}); 

recognizer.onmessage = function(e) { 
    if (e.data.hasOwnProperty('hyp')) { 
      alert(e.data.hyp); 
    } 
}; 

전체 예를 here

+1

이것은 이론적으로는 ans 일 수 있지만 질문에 대답 해 주시면 (여기서는 대답의 핵심 부분을 포함 시키십시오) (// meta.stackoverflow.com/q/8259), 참조 용 링크를 제공하십시오. – Tunaki