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
20 #pragma winrt ns_prefix
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";*/
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 interface IVoiceCommandSet
;
64 runtimeclass SpeechContinuousRecognitionCompletedEventArgs
;
65 runtimeclass SpeechContinuousRecognitionResultGeneratedEventArgs
;
66 runtimeclass SpeechContinuousRecognitionSession
;
67 runtimeclass SpeechRecognitionCompilationResult
;
68 runtimeclass SpeechRecognitionHypothesis
;
69 runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs
;
70 runtimeclass SpeechRecognitionListConstraint
;
71 runtimeclass SpeechRecognitionQualityDegradingEventArgs
;
72 runtimeclass SpeechRecognitionResult
;
73 runtimeclass SpeechRecognitionSemanticInterpretation
;
74 runtimeclass SpeechRecognizer
;
75 runtimeclass SpeechRecognizerStateChangedEventArgs
;
76 runtimeclass SpeechRecognizerTimeouts
;
77 runtimeclass SpeechRecognizerUIOptions
;
78 runtimeclass VoiceCommandSet
;
85 namespace SpeechRecognition
{
87 interface Windows.Foundation.Collections.IIterable
<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
*>;
88 interface Windows.Foundation.Collections.IIterator
<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
*>;
89 interface Windows.Foundation.Collections.IVectorView
<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
*>;
90 interface Windows.Foundation.Collections.IVector
<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
*>;
91 interface Windows.Foundation.Collections.IIterable
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*>;
92 interface Windows.Foundation.Collections.IIterator
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*>;
93 interface Windows.Foundation.Collections.IVectorView
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*>;
94 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult
*>;
95 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*>;
96 interface Windows.Foundation.IAsyncOperation
<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult
*>;
97 interface Windows.Foundation.IAsyncOperation
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*>;
98 interface Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs
*>;
99 interface Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs
*>;
100 interface Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs
*>;
101 interface Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs
*>;
102 interface Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs
*>;
110 namespace SpeechRecognition
{
112 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
113 enum SpeechContinuousRecognitionMode
116 PauseOnRecognition
= 1,
119 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
120 enum SpeechRecognitionAudioProblem
131 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
132 enum SpeechRecognitionConfidence
140 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
141 enum SpeechRecognitionConstraintProbability
148 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
149 enum SpeechRecognitionConstraintType
154 VoiceCommandDefinition
= 3,
157 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
158 enum SpeechRecognitionResultStatus
161 TopicLanguageNotSupported
= 1,
162 GrammarLanguageMismatch
= 2,
163 GrammarCompilationFailure
= 3,
164 AudioQualityFailure
= 4,
167 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
169 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
170 PauseLimitExceeded
= 8,
171 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
173 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
174 MicrophoneUnavailable
= 10,
177 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
178 enum SpeechRecognizerState
185 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
187 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
192 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
193 exclusiveto
(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs
),
194 uuid(e3d069bb
-e30c
-5e18
-424b
-7fbe81f8fbd0
)
196 interface ISpeechContinuousRecognitionCompletedEventArgs
: IInspectable
198 [propget] HRESULT Status
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus
*value
);
202 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
203 exclusiveto
(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs
),
204 uuid(19091e1e
-6e7e
-5a46
-40fb
-76594f786504
)
206 interface ISpeechContinuousRecognitionResultGeneratedEventArgs
: IInspectable
208 [propget] HRESULT Result
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResult
**value
);
212 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
213 exclusiveto
(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
),
214 uuid(6a213c04
-6614-49f8
-99a2
-b5e9b3a085c8
)
216 interface ISpeechContinuousRecognitionSession
: IInspectable
218 [propget] HRESULT AutoStopSilenceTimeout
([out, retval] Windows.Foundation.TimeSpan
*value
);
219 [propput] HRESULT AutoStopSilenceTimeout
([in] Windows.Foundation.TimeSpan value
);
220 [overload
("StartAsync")] HRESULT StartAsync
([out, retval] Windows.Foundation.IAsyncAction
**action
);
221 [overload
("StartAsync")] HRESULT StartWithModeAsync
([in] Windows.Media.SpeechRecognition.SpeechContinuousRecognitionMode mode
, [out, retval] Windows.Foundation.IAsyncAction
**action
);
222 HRESULT StopAsync
([out, retval] Windows.Foundation.IAsyncAction
**action
);
223 HRESULT CancelAsync
([out, retval] Windows.Foundation.IAsyncAction
**action
);
224 HRESULT PauseAsync
([out, retval] Windows.Foundation.IAsyncAction
**action
);
226 [eventadd
] HRESULT Completed
(
227 [in] Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs
*> *value
,
228 [out, retval] EventRegistrationToken
*token
);
229 [eventremove
] HRESULT Completed
([in] EventRegistrationToken token
);
230 [eventadd
] HRESULT ResultGenerated
(
231 [in] Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
*, Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs
*> *value
,
232 [out, retval] EventRegistrationToken
*token
);
233 [eventremove
] HRESULT ResultGenerated
([in] EventRegistrationToken token
);
237 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
238 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult
),
239 uuid(407e6c5d
-6ac7
-4da4
-9cc1
-2fce32cf7489
)
241 interface ISpeechRecognitionCompilationResult
: IInspectable
243 [propget] HRESULT Status
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus
*value
);
247 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
248 uuid(79ac1628
-4d68
-43c4
-8911-40dc4101b55b
)
250 interface ISpeechRecognitionConstraint
: IInspectable
252 [propget] HRESULT IsEnabled
([out, retval] boolean *value
);
253 [propput] HRESULT IsEnabled
([in] boolean value
);
254 [propget] HRESULT Tag
([out, retval] HSTRING
*value
);
255 [propput] HRESULT Tag
([in] HSTRING value
);
256 [propget] HRESULT Type
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintType
*value
);
257 [propget] HRESULT Probability
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintProbability
*value
);
258 [propput] HRESULT Probability
([in] Windows.Media.SpeechRecognition.SpeechRecognitionConstraintProbability value
);
262 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
263 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis
),
264 uuid(7a7b25b0
-99c5
-4f7d
-bf84
-10aa1302b634
)
266 interface ISpeechRecognitionHypothesis
: IInspectable
268 [propget] HRESULT Text
([out, retval] HSTRING
*value
);
272 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
273 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs
),
274 uuid(55161a7a
-8023-5866-411d
-1213bb271476
)
276 interface ISpeechRecognitionHypothesisGeneratedEventArgs
: IInspectable
278 [propget] HRESULT Hypothesis
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis
**value
);
282 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
283 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint
),
284 uuid(09c487e9
-e4ad
-4526-81f2
-4946fb481d98
)
286 interface ISpeechRecognitionListConstraint
: IInspectable
288 Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
290 [propget] HRESULT Commands
([out, retval] Windows.Foundation.Collections.IVector
<HSTRING
> **value
);
294 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
295 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint
),
296 uuid(40f3cdc7
-562a
-426a
-9f3b
-3b4e282be1d5
)
298 interface ISpeechRecognitionListConstraintFactory
: IInspectable
301 [in] Windows.Foundation.Collections.IIterable
<HSTRING
> *commands
,
302 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint
**listconstraint
);
304 HRESULT CreateWithTag
(
305 [in] Windows.Foundation.Collections.IIterable
<HSTRING
> *commands
,
307 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint
**listconstraint
);
311 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
312 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs
),
313 uuid(4fe24105
-8c3a
-4c7e
-8d0a
-5bd4f5b14ad8
)
315 interface ISpeechRecognitionQualityDegradingEventArgs
: IInspectable
317 [propget] HRESULT Problem
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionAudioProblem
*value
);
321 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
322 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionResult
),
323 uuid(4e303157
-034e-4652-857e
-d0454cc4beec
)
325 interface ISpeechRecognitionResult
: IInspectable
327 [propget] HRESULT Status
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus
*value
);
328 [propget] HRESULT Text
([out, retval] HSTRING
*value
);
329 [propget] HRESULT Confidence
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionConfidence
*value
);
330 [propget] HRESULT SemanticInterpretation
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation
**value
);
331 HRESULT GetAlternates
([in] UINT32 max_amount
, [out, retval] Windows.Foundation.Collections.IVectorView
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*> **results
);
332 [propget] HRESULT Constraint
([out, retval] Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
**value
);
333 [propget] HRESULT RulePath
([out, retval] Windows.Foundation.Collections.IVectorView
<HSTRING
> **value
);
334 [propget] HRESULT RawConfidence
([out, retval] DOUBLE *value
);
338 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
339 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionResult
),
340 uuid(af7ed1ba
-451b
-4166-a0c1
-1ffe84032d03
)
342 interface ISpeechRecognitionResult2
: IInspectable
344 [propget] HRESULT PhraseStartTime
([out, retval] Windows.Foundation.DateTime
*value
);
345 [propget] HRESULT PhraseDuration
([out, retval] Windows.Foundation.TimeSpan
*value
);
349 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
350 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation
),
351 uuid(aae1da9b
-7e32
-4c1f
-89fe
-0c65f486f52e
)
353 interface ISpeechRecognitionSemanticInterpretation
: IInspectable
355 [propget] HRESULT Properties
([out, retval] Windows.Foundation.Collections.IMapView
<HSTRING
, Windows.Foundation.Collections.IVectorView
<HSTRING
>*> **value
);
359 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
360 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizer
),
361 uuid(0bc3c9cb
-c26a
-40f2
-aeb5
-8096b2e48073
)
363 interface ISpeechRecognizer
: IInspectable
365 Windows.Foundation.IClosable
367 [propget] HRESULT CurrentLanguage
([out, retval] Windows.Globalization.Language
**value
);
368 [propget] HRESULT Constraints
([out, retval] Windows.Foundation.Collections.IVector
<Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
*> **value
);
369 [propget] HRESULT Timeouts
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts
**value
);
370 [propget] HRESULT UIOptions
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions
**value
);
371 HRESULT CompileConstraintsAsync
([out, retval] Windows.Foundation.IAsyncOperation
<Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult
*> **operation
);
372 HRESULT RecognizeAsync
([out, retval] Windows.Foundation.IAsyncOperation
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*> **operation
);
373 HRESULT RecognizeWithUIAsync
([out, retval] Windows.Foundation.IAsyncOperation
<Windows.Media.SpeechRecognition.SpeechRecognitionResult
*> **operation
);
374 [eventadd
] HRESULT RecognitionQualityDegrading
(
375 [in] Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs
*> *handler
,
376 [out, retval] EventRegistrationToken
*token
);
377 [eventremove
] HRESULT RecognitionQualityDegrading
([in] EventRegistrationToken token
);
378 [eventadd
] HRESULT StateChanged
(
379 [in] Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs
*> *handler
,
380 [out, retval] EventRegistrationToken
*token
);
381 [eventremove
] HRESULT StateChanged
([in] EventRegistrationToken token
);
385 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
386 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizer
),
387 uuid(63c9baf1
-91e3
-4ea4
-86a1
-7c3867d084a6
)
389 interface ISpeechRecognizer2
: IInspectable
391 [propget] HRESULT ContinuousRecognitionSession
([out, retval] Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession
**value
);
392 [propget] HRESULT State
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerState
*value
);
393 HRESULT StopRecognitionAsync
([out, retval] Windows.Foundation.IAsyncAction
**action
);
394 [eventadd
] HRESULT HypothesisGenerated
(
395 [in] Windows.Foundation.TypedEventHandler
<Windows.Media.SpeechRecognition.SpeechRecognizer
*, Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs
*> *handler
,
396 [out, retval] EventRegistrationToken
*token
);
397 [eventremove
] HRESULT HypothesisGenerated
([in] EventRegistrationToken token
);
401 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
402 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizer
),
403 uuid(60c488dd
-7fb8
-4033-ac70
-d046f64818e1
)
405 interface ISpeechRecognizerFactory
: IInspectable
408 [in] Windows.Globalization.Language
*language
,
409 [out, retval] Windows.Media.SpeechRecognition.SpeechRecognizer
**speechrecognizer
);
413 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
414 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs
),
415 uuid(563d4f09
-ba03
-4bad
-ad81
-ddc6c4dab0c3
)
417 interface ISpeechRecognizerStateChangedEventArgs
: IInspectable
419 [propget] HRESULT State
([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerState
*value
);
423 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
424 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizer
),
425 uuid(87a35eac
-a7dc
-4b0b
-bcc9
-24f47c0b7ebf
)
427 interface ISpeechRecognizerStatics
: IInspectable
429 [propget] HRESULT SystemSpeechLanguage
([out, retval] Windows.Globalization.Language
**language
);
430 [propget] HRESULT SupportedTopicLanguages
([out, retval] Windows.Foundation.Collections.IVectorView
<Windows.Globalization.Language
*> **languages
);
431 [propget] HRESULT SupportedGrammarLanguages
([out, retval] Windows.Foundation.Collections.IVectorView
<Windows.Globalization.Language
*> **languages
);
435 contract
(Windows.Foundation.UniversalApiContract
, 5.0),
436 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizer
),
437 uuid(1d1b0d95
-7565-4ef9
-a2f3
-ba15162a96cf
)
439 interface ISpeechRecognizerStatics2
: IInspectable
441 HRESULT TrySetSystemSpeechLanguageAsync
([in] Windows.Globalization.Language
*language
, [out, retval] Windows.Foundation.IAsyncOperation
<boolean> **operation
);
445 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
446 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts
),
447 uuid(2ef76fca
-6a3c
-4dca
-a153
-df1bc88a79af
)
449 interface ISpeechRecognizerTimeouts
: IInspectable
451 [propget] HRESULT InitialSilenceTimeout
([out, retval] Windows.Foundation.TimeSpan
*value
);
452 [propput] HRESULT InitialSilenceTimeout
([in] Windows.Foundation.TimeSpan value
);
453 [propget] HRESULT EndSilenceTimeout
([out, retval] Windows.Foundation.TimeSpan
*value
);
454 [propput] HRESULT EndSilenceTimeout
([in] Windows.Foundation.TimeSpan value
);
455 [propget] HRESULT BabbleTimeout
([out, retval] Windows.Foundation.TimeSpan
*value
);
456 [propput] HRESULT BabbleTimeout
([in] Windows.Foundation.TimeSpan value
);
460 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
461 exclusiveto
(Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions
),
462 uuid(7888d641
-b92b
-44ba
-a25f
-d1864630641f
)
464 interface ISpeechRecognizerUIOptions
: IInspectable
466 [propget] HRESULT ExampleText
([out, retval] HSTRING
*value
);
467 [propput] HRESULT ExampleText
([in] HSTRING value
);
468 [propget] HRESULT AudiblePrompt
([out, retval] HSTRING
*value
);
469 [propput] HRESULT AudiblePrompt
([in] HSTRING value
);
470 [propget] HRESULT IsReadBackEnabled
([out, retval] boolean *value
);
471 [propput] HRESULT IsReadBackEnabled
([in] boolean value
);
472 [propget] HRESULT ShowConfirmation
([out, retval] boolean *value
);
473 [propput] HRESULT ShowConfirmation
([in] boolean value
);
477 contract
(Windows.Phone.PhoneContract
, 1.0),
478 deprecated
("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate
, Windows.Phone.PhoneContract
, 1.0),
479 exclusiveto
(Windows.Media.SpeechRecognition.VoiceCommandSet
),
480 uuid(0bedda75
-46e6
-4b11
-a088
-5c68632899b5
)
482 interface IVoiceCommandSet
: IInspectable
484 [deprecated
("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate
, Windows.Phone.PhoneContract
, 1.0)]
485 [propget] HRESULT Language
([out, retval] HSTRING
*value
);
486 [deprecated
("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate
, Windows.Phone.PhoneContract
, 1.0)]
487 [propget] HRESULT Name
([out, retval] HSTRING
*value
);
488 [deprecated
("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate
, Windows.Phone.PhoneContract
, 1.0)]
489 HRESULT SetPhraseListAsync
([in] HSTRING phrase_list_name
, [in] Windows.Foundation.Collections.IIterable
<HSTRING
> *phrase_list
, [out, retval] Windows.Foundation.IAsyncAction
**update_action
);
493 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
494 marshaling_behavior
(agile
),
497 runtimeclass SpeechContinuousRecognitionCompletedEventArgs
499 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionCompletedEventArgs
;
503 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
504 marshaling_behavior
(agile
),
507 runtimeclass SpeechContinuousRecognitionResultGeneratedEventArgs
509 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionResultGeneratedEventArgs
;
513 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
514 marshaling_behavior
(agile
),
517 runtimeclass SpeechContinuousRecognitionSession
519 [default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionSession
;
523 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
524 marshaling_behavior
(agile
)
526 runtimeclass SpeechRecognitionCompilationResult
528 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionCompilationResult
;
532 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
533 marshaling_behavior
(agile
),
536 runtimeclass SpeechRecognitionHypothesis
538 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesis
;
542 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
543 marshaling_behavior
(agile
),
546 runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs
548 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesisGeneratedEventArgs
;
552 activatable
(Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraintFactory
, Windows.Foundation.UniversalApiContract
, 1.0),
553 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
554 marshaling_behavior
(agile
)
556 runtimeclass SpeechRecognitionListConstraint
558 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraint
;
559 interface Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint
;
563 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
564 marshaling_behavior
(agile
)
566 runtimeclass SpeechRecognitionQualityDegradingEventArgs
568 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionQualityDegradingEventArgs
;
572 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
573 marshaling_behavior
(agile
)
575 runtimeclass SpeechRecognitionResult
577 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult
;
578 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult2
;
582 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
583 marshaling_behavior
(agile
)
585 runtimeclass SpeechRecognitionSemanticInterpretation
587 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionSemanticInterpretation
;
591 activatable
(Windows.Foundation.UniversalApiContract
, 1.0),
592 activatable
(Windows.Media.SpeechRecognition.ISpeechRecognizerFactory
, Windows.Foundation.UniversalApiContract
, 1.0),
593 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
594 marshaling_behavior
(agile
),
595 static
(Windows.Media.SpeechRecognition.ISpeechRecognizerStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
596 static
(Windows.Media.SpeechRecognition.ISpeechRecognizerStatics2
, Windows.Foundation.UniversalApiContract
, 5.0)
598 runtimeclass SpeechRecognizer
600 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizer
;
601 interface Windows.Foundation.IClosable
;
602 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognizer2
;
606 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
607 marshaling_behavior
(agile
)
609 runtimeclass SpeechRecognizerStateChangedEventArgs
611 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerStateChangedEventArgs
;
615 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
616 marshaling_behavior
(agile
)
618 runtimeclass SpeechRecognizerTimeouts
620 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerTimeouts
;
624 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
625 marshaling_behavior
(agile
)
627 runtimeclass SpeechRecognizerUIOptions
629 [default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerUIOptions
;
633 contract
(Windows.Phone.PhoneContract
, 1.0),
634 deprecated
("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate
, Windows.Phone.PhoneContract
, 1.0),
635 marshaling_behavior
(agile
)
637 runtimeclass VoiceCommandSet
639 [default] interface Windows.Media.SpeechRecognition.IVoiceCommandSet
;