speech_recognition.mojom 838 B

12345678910111213141516171819202122
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. import "media/mojo/mojom/speech_recognition.mojom";
  6. // Allows LaCrOS to access speech recognition provided by Ash, to power features
  7. // such as Live Caption.
  8. [Stable, Uuid="c881b018-a0a5-4d2e-9bfe-1f0cc9bd78bd"]
  9. interface SpeechRecognition {
  10. // Binds a speech recognition engine.
  11. BindSpeechRecognitionContext@0(
  12. pending_receiver<media.mojom.SpeechRecognitionContext> receiver);
  13. // Binds a browser interface for renderers to use to react to changing
  14. // availability of speech recognition.
  15. BindSpeechRecognitionClientBrowserInterface@1(
  16. pending_receiver<media.mojom.SpeechRecognitionClientBrowserInterface>
  17. receiver);
  18. };