Note:HTML 5は音声関連のリソースを識別します。
speechRecognition API
Speech APIはChromeだけをサポートします。http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API
簡単なページを書いてテストしましたが、確かにHTTPSのページは更新権限が残っています。
getsUserMedia API びAudioContect
の は
StockOverflowで つけた の え:http://stackoverflow.com/questions/11979528/record-audio-stream-from-getusermedia/19238153#19238153
インターネットでいつでもオーディオを み、グラフを く を つけました。http://www.webaudiodemos.appspot.com/AudioRecorder/index.htmlhttps://github.com/cwilso/AudioRecorder
このコードの は、
Audio のモデル
ですので、 を えられません。
まだいいです。 の はここを てもいいです。http://html5online.com.cn/articles/2013030901.html
Speech APIはChromeだけをサポートします。http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API
speech = new webkitSpeechRecognition
speech.onresult = (event) ->
console.log event.results[0][0]
speech.lang = 'cmn-Hans-CN'
speech.continous = yes
speech.start()
Chromeが音声認識を有効にするインターフェースは、毎回ユーザーがHTTPSのページだけがユーザー設定を保存できると推測し、毎回手動でChromiumのIssueによる書き込みを繰り返さないようにする必要があります。設計上はこのようなものです。https://code.google.com/p/chromium/issues/detail?id=248987 簡単なページを書いてテストしましたが、確かにHTTPSのページは更新権限が残っています。
Speech
Entry
entry = document.querySelector '#entry'
entry.onclick = ->
speech = new webkitSpeechRecognition
speech.start()
HTTPSの については、 の にも しています。http://shapeshed.com/html5-speech-recognition-api/ getsUserMedia API びAudioContect
の は
navigator.getUserMedia()
を してW 3 Cの がありますが、 めません。http://dev.w3.org/2011/webrtc/editor/getusermedia.html StockOverflowで つけた の え:http://stackoverflow.com/questions/11979528/record-audio-stream-from-getusermedia/19238153#19238153
インターネットでいつでもオーディオを み、グラフを く を つけました。http://www.webaudiodemos.appspot.com/AudioRecorder/index.htmlhttps://github.com/cwilso/AudioRecorder
このコードの は、
audioplayer.js
を いてオーディオ に している。index.html
main.js
audioplayer.js
recorderjs/
recorder.js
recorderWorker.js
recorder.js
は、 に のウェブワーカーファイルのカプセル されたワーカーファイルをバックグラウンドで コーデックの を い、recorder.js
にメッセージを してデータをmain.js
から び しgetUserMedia
を り し、new AudioContext()
を て する。Audio のモデル
ですので、 を えられません。
まだいいです。 の はここを てもいいです。http://html5online.com.cn/articles/2013030901.html