kernelbase: Use the same HLOCAL flags / lock layout as native.
[wine.git] / include / windows.media.speechrecognition.idl
blob79107aab1bfed7ba71e20f1d9de2414175d217bd
1 /*
2 * Copyright 2022 Bernhard Kölbl
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "eventtoken.idl";
26 import "windowscontracts.idl";
27 import "windows.foundation.idl";
28 import "windows.globalization.idl";
29 /*import "windows.phone.idl";*/
30 /*import "windows.storage.idl";*/
32 namespace Windows {
33 namespace Media {
34 namespace SpeechRecognition {
35 typedef enum SpeechContinuousRecognitionMode SpeechContinuousRecognitionMode;
36 typedef enum SpeechRecognitionAudioProblem SpeechRecognitionAudioProblem;
37 typedef enum SpeechRecognitionConfidence SpeechRecognitionConfidence;
38 typedef enum SpeechRecognitionConstraintProbability SpeechRecognitionConstraintProbability;
39 typedef enum SpeechRecognitionConstraintType SpeechRecognitionConstraintType;
40 typedef enum SpeechRecognitionResultStatus SpeechRecognitionResultStatus;
41 typedef enum SpeechRecognizerState SpeechRecognizerState;
42 interface ISpeechContinuousRecognitionCompletedEventArgs;
43 interface ISpeechContinuousRecognitionResultGeneratedEventArgs;
44 interface ISpeechContinuousRecognitionSession;
45 interface ISpeechRecognitionCompilationResult;
46 interface ISpeechRecognitionConstraint;
47 interface ISpeechRecognitionHypothesis;
48 interface ISpeechRecognitionHypothesisGeneratedEventArgs;
49 interface ISpeechRecognitionListConstraint;
50 interface ISpeechRecognitionListConstraintFactory;
51 interface ISpeechRecognitionQualityDegradingEventArgs;
52 interface ISpeechRecognitionResult;
53 interface ISpeechRecognitionResult2;
54 interface ISpeechRecognitionSemanticInterpretation;
55 interface ISpeechRecognizer;
56 interface ISpeechRecognizer2;
57 interface ISpeechRecognizerFactory;
58 interface ISpeechRecognizerStateChangedEventArgs;
59 interface ISpeechRecognizerStatics;
60 interface ISpeechRecognizerStatics2;
61 interface ISpeechRecognizerTimeouts;
62 interface ISpeechRecognizerUIOptions;
63 runtimeclass SpeechContinuousRecognitionCompletedEventArgs;
64 runtimeclass SpeechContinuousRecognitionResultGeneratedEventArgs;
65 runtimeclass SpeechContinuousRecognitionSession;
66 runtimeclass SpeechRecognitionCompilationResult;
67 runtimeclass SpeechRecognitionHypothesis;
68 runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs;
69 runtimeclass SpeechRecognitionListConstraint;
70 runtimeclass SpeechRecognitionQualityDegradingEventArgs;
71 runtimeclass SpeechRecognitionResult;
72 runtimeclass SpeechRecognitionSemanticInterpretation;
73 runtimeclass SpeechRecognizer;
74 runtimeclass SpeechRecognizerStateChangedEventArgs;
75 runtimeclass SpeechRecognizerTimeouts;
76 runtimeclass SpeechRecognizerUIOptions;
81 namespace Windows {
82 namespace Media {
83 namespace SpeechRecognition {
84 declare {
85 interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint*>;
86 interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint*>;
87 interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint*>;
88 interface Windows.Foundation.Collections.IVector<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint*>;
89 interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechRecognition.SpeechRecognitionResult*>;
90 interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechRecognition.SpeechRecognitionResult*>;
91 interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechRecognition.SpeechRecognitionResult*>;
92 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult*>;
93 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Media.SpeechRecognition.SpeechRecognitionResult*>;
94 interface Windows.Foundation.IAsyncOperation<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult*>;
95 interface Windows.Foundation.IAsyncOperation<Windows.Media.SpeechRecognition.SpeechRecognitionResult*>;
96 interface Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs*>;
97 interface Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs*>;
98 interface Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs*>;
99 interface Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs*>;
100 interface Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs*>;
106 namespace Windows {
107 namespace Media {
108 namespace SpeechRecognition {
110 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
111 enum SpeechContinuousRecognitionMode
113 Default = 0,
114 PauseOnRecognition = 1,
117 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
118 enum SpeechRecognitionAudioProblem
120 None = 0,
121 TooNoisy = 1,
122 NoSignal = 2,
123 TooLoud = 3,
124 TooQuiet = 4,
125 TooFast = 5,
126 TooSlow = 6,
129 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
130 enum SpeechRecognitionConfidence
132 High = 0,
133 Medium = 1,
134 Low = 2,
135 Rejected = 3,
138 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
139 enum SpeechRecognitionConstraintProbability
141 Default = 0,
142 Min = 1,
143 Max = 2,
146 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
147 enum SpeechRecognitionConstraintType
149 Topic = 0,
150 List = 1,
151 Grammar = 2,
152 VoiceCommandDefinition = 3,
155 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
156 enum SpeechRecognitionResultStatus
158 Success = 0,
159 TopicLanguageNotSupported = 1,
160 GrammarLanguageMismatch = 2,
161 GrammarCompilationFailure = 3,
162 AudioQualityFailure = 4,
163 UserCanceled = 5,
164 Unknown = 6,
165 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
166 TimeoutExceeded = 7,
167 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
168 PauseLimitExceeded = 8,
169 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
170 NetworkFailure = 9,
171 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
172 MicrophoneUnavailable = 10,
175 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
176 enum SpeechRecognizerState
178 Idle = 0,
179 Capturing = 1,
180 Processing = 2,
181 SoundStarted = 3,
182 SoundEnded = 4,
183 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
184 SpeechDetected = 5,
185 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
186 Paused = 6,
190 contract(Windows.Foundation.UniversalApiContract, 1.0),
191 exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs),
192 uuid(e3d069bb-e30c-5e18-424b-7fbe81f8fbd0)
194 interface ISpeechContinuousRecognitionCompletedEventArgs : IInspectable
196 [propget] HRESULT Status([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus *value);
200 contract(Windows.Foundation.UniversalApiContract, 1.0),
201 exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs),
202 uuid(19091e1e-6e7e-5a46-40fb-76594f786504)
204 interface ISpeechContinuousRecognitionResultGeneratedEventArgs : IInspectable
206 [propget] HRESULT Result([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResult **value);
210 contract(Windows.Foundation.UniversalApiContract, 1.0),
211 exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession),
212 uuid(6a213c04-6614-49f8-99a2-b5e9b3a085c8)
214 interface ISpeechContinuousRecognitionSession : IInspectable
216 [propget] HRESULT AutoStopSilenceTimeout([out, retval] Windows.Foundation.TimeSpan *value);
217 [propput] HRESULT AutoStopSilenceTimeout([in] Windows.Foundation.TimeSpan value);
218 [overload("StartAsync")] HRESULT StartAsync([out, retval] Windows.Foundation.IAsyncAction **action);
219 [overload("StartAsync")] HRESULT StartWithModeAsync([in] Windows.Media.SpeechRecognition.SpeechContinuousRecognitionMode mode, [out, retval] Windows.Foundation.IAsyncAction **action);
220 HRESULT StopAsync([out, retval] Windows.Foundation.IAsyncAction **action);
221 HRESULT CancelAsync([out, retval] Windows.Foundation.IAsyncAction **action);
222 HRESULT PauseAsync([out, retval] Windows.Foundation.IAsyncAction **action);
223 HRESULT Resume();
224 [eventadd] HRESULT Completed(
225 [in] Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs*> *value,
226 [out, retval] EventRegistrationToken *token);
227 [eventremove] HRESULT Completed([in] EventRegistrationToken token);
228 [eventadd] HRESULT ResultGenerated(
229 [in] Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs*> *value,
230 [out, retval] EventRegistrationToken *token);
231 [eventremove] HRESULT ResultGenerated([in] EventRegistrationToken token);
235 contract(Windows.Foundation.UniversalApiContract, 1.0),
236 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult),
237 uuid(407e6c5d-6ac7-4da4-9cc1-2fce32cf7489)
239 interface ISpeechRecognitionCompilationResult : IInspectable
241 [propget] HRESULT Status([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus *value);
245 contract(Windows.Foundation.UniversalApiContract, 1.0),
246 uuid(79ac1628-4d68-43c4-8911-40dc4101b55b)
248 interface ISpeechRecognitionConstraint : IInspectable
250 [propget] HRESULT IsEnabled([out, retval] boolean *value);
251 [propput] HRESULT IsEnabled([in] boolean value);
252 [propget] HRESULT Tag([out, retval] HSTRING *value);
253 [propput] HRESULT Tag([in] HSTRING value);
254 [propget] HRESULT Type([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintType *value);
255 [propget] HRESULT Probability([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintProbability *value);
256 [propput] HRESULT Probability([in] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintProbability value);
260 contract(Windows.Foundation.UniversalApiContract, 1.0),
261 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis),
262 uuid(7a7b25b0-99c5-4f7d-bf84-10aa1302b634)
264 interface ISpeechRecognitionHypothesis : IInspectable
266 [propget] HRESULT Text([out, retval] HSTRING *value);
270 contract(Windows.Foundation.UniversalApiContract, 1.0),
271 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs),
272 uuid(55161a7a-8023-5866-411d-1213bb271476)
274 interface ISpeechRecognitionHypothesisGeneratedEventArgs : IInspectable
276 [propget] HRESULT Hypothesis([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis **value);
280 contract(Windows.Foundation.UniversalApiContract, 1.0),
281 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint),
282 uuid(09c487e9-e4ad-4526-81f2-4946fb481d98)
284 interface ISpeechRecognitionListConstraint : IInspectable
285 requires
286 Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
288 [propget] HRESULT Commands([out, retval] Windows.Foundation.Collections.IVector<HSTRING> **value);
292 contract(Windows.Foundation.UniversalApiContract, 1.0),
293 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint),
294 uuid(40f3cdc7-562a-426a-9f3b-3b4e282be1d5)
296 interface ISpeechRecognitionListConstraintFactory : IInspectable
298 HRESULT Create(
299 [in] Windows.Foundation.Collections.IIterable<HSTRING> *commands,
300 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint);
302 HRESULT CreateWithTag(
303 [in] Windows.Foundation.Collections.IIterable<HSTRING> *commands,
304 [in] HSTRING tag,
305 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint);
309 contract(Windows.Foundation.UniversalApiContract, 1.0),
310 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs),
311 uuid(4fe24105-8c3a-4c7e-8d0a-5bd4f5b14ad8)
313 interface ISpeechRecognitionQualityDegradingEventArgs : IInspectable
315 [propget] HRESULT Problem([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionAudioProblem *value);
319 contract(Windows.Foundation.UniversalApiContract, 1.0),
320 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionResult),
321 uuid(4e303157-034e-4652-857e-d0454cc4beec)
323 interface ISpeechRecognitionResult : IInspectable
325 [propget] HRESULT Status([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus *value);
326 [propget] HRESULT Text([out, retval] HSTRING *value);
327 [propget] HRESULT Confidence([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConfidence *value);
328 [propget] HRESULT SemanticInterpretation([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation **value);
329 HRESULT GetAlternates([in] UINT32 max_amount, [out, retval] Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechRecognition.SpeechRecognitionResult*> **results);
330 [propget] HRESULT Constraint([out, retval] Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint **value);
331 [propget] HRESULT RulePath([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value);
332 [propget] HRESULT RawConfidence([out, retval] DOUBLE *value);
336 contract(Windows.Foundation.UniversalApiContract, 1.0),
337 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionResult),
338 uuid(af7ed1ba-451b-4166-a0c1-1ffe84032d03)
340 interface ISpeechRecognitionResult2 : IInspectable
342 [propget] HRESULT PhraseStartTime([out, retval] Windows.Foundation.DateTime *value);
343 [propget] HRESULT PhraseDuration([out, retval] Windows.Foundation.TimeSpan *value);
347 contract(Windows.Foundation.UniversalApiContract, 1.0),
348 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation),
349 uuid(aae1da9b-7e32-4c1f-89fe-0c65f486f52e)
351 interface ISpeechRecognitionSemanticInterpretation : IInspectable
353 [propget] HRESULT Properties([out, retval] Windows.Foundation.Collections.IMapView<HSTRING, Windows.Foundation.Collections.IVectorView<HSTRING>*> **value);
357 contract(Windows.Foundation.UniversalApiContract, 1.0),
358 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer),
359 uuid(0bc3c9cb-c26a-40f2-aeb5-8096b2e48073)
361 interface ISpeechRecognizer : IInspectable
362 requires
363 Windows.Foundation.IClosable
365 [propget] HRESULT CurrentLanguage([out, retval] Windows.Globalization.Language **value);
366 [propget] HRESULT Constraints([out, retval] Windows.Foundation.Collections.IVector<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint*> **value);
367 [propget] HRESULT Timeouts([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts **value);
368 [propget] HRESULT UIOptions([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions **value);
369 HRESULT CompileConstraintsAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult*> **operation);
370 HRESULT RecognizeAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechRecognition.SpeechRecognitionResult*> **operation);
371 HRESULT RecognizeWithUIAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechRecognition.SpeechRecognitionResult*> **operation);
372 [eventadd] HRESULT RecognitionQualityDegrading(
373 [in] Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs*> *handler,
374 [out, retval] EventRegistrationToken *token);
375 [eventremove] HRESULT RecognitionQualityDegrading([in] EventRegistrationToken token);
376 [eventadd] HRESULT StateChanged(
377 [in] Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs*> *handler,
378 [out, retval] EventRegistrationToken *token);
379 [eventremove] HRESULT StateChanged([in] EventRegistrationToken token);
383 contract(Windows.Foundation.UniversalApiContract, 1.0),
384 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer),
385 uuid(63c9baf1-91e3-4ea4-86a1-7c3867d084a6)
387 interface ISpeechRecognizer2 : IInspectable
389 [propget] HRESULT ContinuousRecognitionSession([out, retval] Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession **value);
390 [propget] HRESULT State([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerState *value);
391 HRESULT StopRecognitionAsync([out, retval] Windows.Foundation.IAsyncAction **action);
392 [eventadd] HRESULT HypothesisGenerated(
393 [in] Windows.Foundation.TypedEventHandler<Windows.Media.SpeechRecognition.SpeechRecognizer*, Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs*> *handler,
394 [out, retval] EventRegistrationToken *token);
395 [eventremove] HRESULT HypothesisGenerated([in] EventRegistrationToken token);
399 contract(Windows.Foundation.UniversalApiContract, 1.0),
400 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer),
401 uuid(60c488dd-7fb8-4033-ac70-d046f64818e1)
403 interface ISpeechRecognizerFactory : IInspectable
405 HRESULT Create(
406 [in] Windows.Globalization.Language *language,
407 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognizer **speechrecognizer);
411 contract(Windows.Foundation.UniversalApiContract, 1.0),
412 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs),
413 uuid(563d4f09-ba03-4bad-ad81-ddc6c4dab0c3)
415 interface ISpeechRecognizerStateChangedEventArgs : IInspectable
417 [propget] HRESULT State([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerState *value);
421 contract(Windows.Foundation.UniversalApiContract, 1.0),
422 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer),
423 uuid(87a35eac-a7dc-4b0b-bcc9-24f47c0b7ebf)
425 interface ISpeechRecognizerStatics : IInspectable
427 [propget] HRESULT SystemSpeechLanguage([out, retval] Windows.Globalization.Language **language);
428 [propget] HRESULT SupportedTopicLanguages([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Globalization.Language*> **languages);
429 [propget] HRESULT SupportedGrammarLanguages([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Globalization.Language*> **languages);
433 contract(Windows.Foundation.UniversalApiContract, 5.0),
434 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer),
435 uuid(1d1b0d95-7565-4ef9-a2f3-ba15162a96cf)
437 interface ISpeechRecognizerStatics2 : IInspectable
439 HRESULT TrySetSystemSpeechLanguageAsync([in] Windows.Globalization.Language *language, [out, retval] Windows.Foundation.IAsyncOperation<boolean> **operation);
443 contract(Windows.Foundation.UniversalApiContract, 1.0),
444 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts),
445 uuid(2ef76fca-6a3c-4dca-a153-df1bc88a79af)
447 interface ISpeechRecognizerTimeouts : IInspectable
449 [propget] HRESULT InitialSilenceTimeout([out, retval] Windows.Foundation.TimeSpan *value);
450 [propput] HRESULT InitialSilenceTimeout([in] Windows.Foundation.TimeSpan value);
451 [propget] HRESULT EndSilenceTimeout([out, retval] Windows.Foundation.TimeSpan *value);
452 [propput] HRESULT EndSilenceTimeout([in] Windows.Foundation.TimeSpan value);
453 [propget] HRESULT BabbleTimeout([out, retval] Windows.Foundation.TimeSpan *value);
454 [propput] HRESULT BabbleTimeout([in] Windows.Foundation.TimeSpan value);
458 contract(Windows.Foundation.UniversalApiContract, 1.0),
459 exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions),
460 uuid(7888d641-b92b-44ba-a25f-d1864630641f)
462 interface ISpeechRecognizerUIOptions : IInspectable
464 [propget] HRESULT ExampleText([out, retval] HSTRING *value);
465 [propput] HRESULT ExampleText([in] HSTRING value);
466 [propget] HRESULT AudiblePrompt([out, retval] HSTRING *value);
467 [propput] HRESULT AudiblePrompt([in] HSTRING value);
468 [propget] HRESULT IsReadBackEnabled([out, retval] boolean *value);
469 [propput] HRESULT IsReadBackEnabled([in] boolean value);
470 [propget] HRESULT ShowConfirmation([out, retval] boolean *value);
471 [propput] HRESULT ShowConfirmation([in] boolean value);
475 contract(Windows.Foundation.UniversalApiContract, 1.0),
476 marshaling_behavior(agile),
477 threading(both)
479 runtimeclass SpeechContinuousRecognitionCompletedEventArgs
481 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionCompletedEventArgs;
485 contract(Windows.Foundation.UniversalApiContract, 1.0),
486 marshaling_behavior(agile),
487 threading(both)
489 runtimeclass SpeechContinuousRecognitionResultGeneratedEventArgs
491 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionResultGeneratedEventArgs;
495 contract(Windows.Foundation.UniversalApiContract, 1.0),
496 marshaling_behavior(agile),
497 threading(both)
499 runtimeclass SpeechContinuousRecognitionSession
501 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionSession;
505 contract(Windows.Foundation.UniversalApiContract, 1.0),
506 marshaling_behavior(agile)
508 runtimeclass SpeechRecognitionCompilationResult
510 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionCompilationResult;
514 contract(Windows.Foundation.UniversalApiContract, 1.0),
515 marshaling_behavior(agile),
516 threading(both)
518 runtimeclass SpeechRecognitionHypothesis
520 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesis;
524 contract(Windows.Foundation.UniversalApiContract, 1.0),
525 marshaling_behavior(agile),
526 threading(both)
528 runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs
530 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesisGeneratedEventArgs;
534 activatable(Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraintFactory, Windows.Foundation.UniversalApiContract, 1.0),
535 contract(Windows.Foundation.UniversalApiContract, 1.0),
536 marshaling_behavior(agile)
538 runtimeclass SpeechRecognitionListConstraint
540 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraint;
541 interface Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint;
545 contract(Windows.Foundation.UniversalApiContract, 1.0),
546 marshaling_behavior(agile)
548 runtimeclass SpeechRecognitionQualityDegradingEventArgs
550 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionQualityDegradingEventArgs;
554 contract(Windows.Foundation.UniversalApiContract, 1.0),
555 marshaling_behavior(agile)
557 runtimeclass SpeechRecognitionResult
559 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult;
560 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult2;
564 contract(Windows.Foundation.UniversalApiContract, 1.0),
565 marshaling_behavior(agile)
567 runtimeclass SpeechRecognitionSemanticInterpretation
569 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionSemanticInterpretation;
573 activatable(Windows.Foundation.UniversalApiContract, 1.0),
574 activatable(Windows.Media.SpeechRecognition.ISpeechRecognizerFactory, Windows.Foundation.UniversalApiContract, 1.0),
575 contract(Windows.Foundation.UniversalApiContract, 1.0),
576 marshaling_behavior(agile),
577 static(Windows.Media.SpeechRecognition.ISpeechRecognizerStatics, Windows.Foundation.UniversalApiContract, 1.0),
578 static(Windows.Media.SpeechRecognition.ISpeechRecognizerStatics2, Windows.Foundation.UniversalApiContract, 5.0)
580 runtimeclass SpeechRecognizer
582 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizer;
583 interface Windows.Foundation.IClosable;
584 [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognizer2;
588 contract(Windows.Foundation.UniversalApiContract, 1.0),
589 marshaling_behavior(agile)
591 runtimeclass SpeechRecognizerStateChangedEventArgs
593 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerStateChangedEventArgs;
597 contract(Windows.Foundation.UniversalApiContract, 1.0),
598 marshaling_behavior(agile)
600 runtimeclass SpeechRecognizerTimeouts
602 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerTimeouts;
606 contract(Windows.Foundation.UniversalApiContract, 1.0),
607 marshaling_behavior(agile)
609 runtimeclass SpeechRecognizerUIOptions
611 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerUIOptions;