| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 attribute SpeechGrammarList grammars; | 36 attribute SpeechGrammarList grammars; |
| 37 attribute DOMString lang; | 37 attribute DOMString lang; |
| 38 attribute boolean continuous; | 38 attribute boolean continuous; |
| 39 attribute boolean interimResults; | 39 attribute boolean interimResults; |
| 40 attribute unsigned long maxAlternatives; | 40 attribute unsigned long maxAlternatives; |
| 41 | 41 |
| 42 // Speech Recognition with WebRTC. https://crbug.com/408940 | 42 // Speech Recognition with WebRTC. https://crbug.com/408940 |
| 43 [RuntimeEnabled=MediaStreamSpeech] attribute MediaStreamTrack? audioTrack; | 43 [RuntimeEnabled=MediaStreamSpeech] attribute MediaStreamTrack? audioTrack; |
| 44 | 44 |
| 45 // methods to drive the speech interaction | 45 // methods to drive the speech interaction |
| 46 [RaisesException] void start(); | 46 [RaisesException, Measure] void start(); |
| 47 [ImplementedAs=stopFunction] void stop(); | 47 [ImplementedAs=stopFunction] void stop(); |
| 48 void abort(); | 48 void abort(); |
| 49 | 49 |
| 50 // event methods | 50 // event methods |
| 51 attribute EventHandler onaudiostart; | 51 attribute EventHandler onaudiostart; |
| 52 attribute EventHandler onsoundstart; | 52 attribute EventHandler onsoundstart; |
| 53 attribute EventHandler onspeechstart; | 53 attribute EventHandler onspeechstart; |
| 54 attribute EventHandler onspeechend; | 54 attribute EventHandler onspeechend; |
| 55 attribute EventHandler onsoundend; | 55 attribute EventHandler onsoundend; |
| 56 attribute EventHandler onaudioend; | 56 attribute EventHandler onaudioend; |
| 57 attribute EventHandler onresult; | 57 attribute EventHandler onresult; |
| 58 attribute EventHandler onnomatch; | 58 attribute EventHandler onnomatch; |
| 59 attribute EventHandler onerror; | 59 attribute EventHandler onerror; |
| 60 attribute EventHandler onstart; | 60 attribute EventHandler onstart; |
| 61 attribute EventHandler onend; | 61 attribute EventHandler onend; |
| 62 }; | 62 }; |
| OLD | NEW |