OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // To run: mojo/tools/mojo_shell.py --sky \ | 5 // To run: mojo/devtools/common/mojo_shell --sky \ |
6 // examples/dart/speech_input/speech_input.dart --android | 6 // examples/dart/speech_input/speech_input.dart --android |
7 // | 7 // |
8 // The speech_recognizer service is only available for Android targets. | 8 // The speech_recognizer service is only available for Android targets. |
9 | 9 |
10 import 'package:mojom/speech_recognizer/speech_recognizer.mojom.dart'; | 10 import 'package:mojom/speech_recognizer/speech_recognizer.mojom.dart'; |
11 import 'package:sky/mojo/embedder.dart'; | 11 import 'package:sky/mojo/embedder.dart'; |
12 | 12 |
13 import 'package:sky/widgets/raised_button.dart'; | 13 import 'package:sky/widgets/raised_button.dart'; |
14 import 'package:sky/widgets/basic.dart'; | 14 import 'package:sky/widgets/basic.dart'; |
15 | 15 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 new SpeechRecognizerServiceProxy.unbound(); | 64 new SpeechRecognizerServiceProxy.unbound(); |
65 | 65 |
66 var _result = null; | 66 var _result = null; |
67 | 67 |
68 bool _listening = false; | 68 bool _listening = false; |
69 } | 69 } |
70 | 70 |
71 void main() { | 71 void main() { |
72 runApp(new ListenApp()); | 72 runApp(new ListenApp()); |
73 } | 73 } |
OLD | NEW |