Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1624)

Unified Diff: mojo/services/speech_recognizer/public/interfaces/speech_recognizer.mojom

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/speech_recognizer/public/interfaces/BUILD.gn ('k') | mojo/services/surfaces/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/speech_recognizer/public/interfaces/speech_recognizer.mojom
diff --git a/mojo/services/speech_recognizer/public/interfaces/speech_recognizer.mojom b/mojo/services/speech_recognizer/public/interfaces/speech_recognizer.mojom
deleted file mode 100644
index 526b3a6af42e8b5c514bc27b0141bd60babf99d4..0000000000000000000000000000000000000000
--- a/mojo/services/speech_recognizer/public/interfaces/speech_recognizer.mojom
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[DartPackage="mojo_services", JavaPackage="org.chromium.mojo.speech_recognizer"]
-module speech_recognizer;
-
-enum Error {
- NETWORK_TIMEOUT = 1,
- NETWORK = 2,
- AUDIO = 3,
- SERVER = 4,
- CLIENT = 5,
- SPEECH_TIMEOUT = 6,
- NO_MATCH = 7,
- RECOGNIZER_BUSY = 8,
- INSUFFICIENT_PERMISSIONS = 9
-};
-
-struct UtteranceCandidate {
- // Utterance text candidate returned by speech recognition service.
- string text;
-
- // Confidence score in [0,1].
- float confidence_score;
-};
-
-union ResultOrError {
- Error error_code;
- array<UtteranceCandidate> results;
-};
-
-// |SpeechRecognizerService| provides access to a speech recognition service.
-// It is responsible for reading microphone input, deciding when the user is
-// done speaking, and performing speech recognition on the result.
-interface SpeechRecognizerService {
- // Starts listening to the user. When listening has finished or an error
- // occurs, returns |result_or_error|. Any call to Listen() made while another
- // is in progress will immediately return an error.
- Listen() => (ResultOrError result_or_error);
-
- // Stops the SpeechRecognizer from listening and finishes any previous call
- // to Listen() causing it to return.
- StopListening();
-};
« no previous file with comments | « mojo/services/speech_recognizer/public/interfaces/BUILD.gn ('k') | mojo/services/surfaces/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698