| Index: content/browser/speech/speech_recognition_dispatcher_host.cc
|
| diff --git a/content/browser/speech/speech_recognition_dispatcher_host.cc b/content/browser/speech/speech_recognition_dispatcher_host.cc
|
| index 1942a50c7150e8f22058e249e2b8233e32dcef25..9c9c94c1a81057d004c0f5c55dd2060496de8854 100644
|
| --- a/content/browser/speech/speech_recognition_dispatcher_host.cc
|
| +++ b/content/browser/speech/speech_recognition_dispatcher_host.cc
|
| @@ -157,6 +157,9 @@ void SpeechRecognitionDispatcherHost::OnStartRequestOnIO(
|
| config.continuous = params.continuous;
|
| config.interim_results = params.interim_results;
|
| config.event_listener = AsWeakPtr();
|
| + config.using_audio_track = params.using_audio_track;
|
| + // TODO(burnik): This needs to be tested on Windows.
|
| + config.peer_process_handle = PeerHandle();
|
|
|
| int session_id = SpeechRecognitionManager::GetInstance()->CreateSession(
|
| config);
|
| @@ -267,4 +270,18 @@ void SpeechRecognitionDispatcherHost::OnEnvironmentEstimationComplete(
|
| int session_id) {
|
| }
|
|
|
| +void SpeechRecognitionDispatcherHost::OnSharedAudioBusReady(
|
| + int session_id,
|
| + const media::AudioParameters& params,
|
| + base::SharedMemoryHandle memory,
|
| + base::SyncSocket::TransitDescriptor socket) {
|
| + const SpeechRecognitionSessionContext& context =
|
| + SpeechRecognitionManager::GetInstance()->GetSessionContext(session_id);
|
| + Send(new SpeechRecognitionMsg_SharedAudioBusReady(context.render_view_id,
|
| + context.request_id,
|
| + params,
|
| + memory,
|
| + socket));
|
| +}
|
| +
|
| } // namespace content
|
|
|