1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
media / mojo / mojom / speech_recognition_audio_forwarder.mojom [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module media.mojom;
import "media/mojo/mojom/audio_data.mojom";
// Interface used by the renderer to pass raw audio from the renderer to either
// the browser or the speech recognition service. The remote lives in the
// renderer and the receiver lives in the speech recognition process if
// on-device speech recognition is used or the browser process if web-based
// speech recognition is used.
[Stable]
interface SpeechRecognitionAudioForwarder {
// Pass audio to the browser.
[MinVersion=6]
AddAudioFromRenderer@1(AudioDataS16 buffer);
};