| 1 |
/* |
| 2 |
* Copyright 2022 Bernhard Kölbl |
| 3 |
* |
| 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. |
| 8 |
* |
| 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. |
| 13 |
* |
| 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 |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 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";*/ |
| 31 |
|
| 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 |
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; |
| 79 |
} |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
namespace Windows { |
| 84 |
namespace Media { |
| 85 |
namespace SpeechRecognition { |
| 86 |
declare { |
| 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*>; |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
namespace Windows { |
| 109 |
namespace Media { |
| 110 |
namespace SpeechRecognition { |
| 111 |
|
| 112 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 113 |
enum SpeechContinuousRecognitionMode |
| 114 |
{ |
| 115 |
Default = 0, |
| 116 |
PauseOnRecognition = 1, |
| 117 |
}; |
| 118 |
|
| 119 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 120 |
enum SpeechRecognitionAudioProblem |
| 121 |
{ |
| 122 |
None = 0, |
| 123 |
TooNoisy = 1, |
| 124 |
NoSignal = 2, |
| 125 |
TooLoud = 3, |
| 126 |
TooQuiet = 4, |
| 127 |
TooFast = 5, |
| 128 |
TooSlow = 6, |
| 129 |
}; |
| 130 |
|
| 131 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 132 |
enum SpeechRecognitionConfidence |
| 133 |
{ |
| 134 |
High = 0, |
| 135 |
Medium = 1, |
| 136 |
Low = 2, |
| 137 |
Rejected = 3, |
| 138 |
}; |
| 139 |
|
| 140 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 141 |
enum SpeechRecognitionConstraintProbability |
| 142 |
{ |
| 143 |
Default = 0, |
| 144 |
Min = 1, |
| 145 |
Max = 2, |
| 146 |
}; |
| 147 |
|
| 148 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 149 |
enum SpeechRecognitionConstraintType |
| 150 |
{ |
| 151 |
Topic = 0, |
| 152 |
List = 1, |
| 153 |
Grammar = 2, |
| 154 |
VoiceCommandDefinition = 3, |
| 155 |
}; |
| 156 |
|
| 157 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 158 |
enum SpeechRecognitionResultStatus |
| 159 |
{ |
| 160 |
Success = 0, |
| 161 |
TopicLanguageNotSupported = 1, |
| 162 |
GrammarLanguageMismatch = 2, |
| 163 |
GrammarCompilationFailure = 3, |
| 164 |
AudioQualityFailure = 4, |
| 165 |
UserCanceled = 5, |
| 166 |
Unknown = 6, |
| 167 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 168 |
TimeoutExceeded = 7, |
| 169 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 170 |
PauseLimitExceeded = 8, |
| 171 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 172 |
NetworkFailure = 9, |
| 173 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 174 |
MicrophoneUnavailable = 10, |
| 175 |
}; |
| 176 |
|
| 177 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 178 |
enum SpeechRecognizerState |
| 179 |
{ |
| 180 |
Idle = 0, |
| 181 |
Capturing = 1, |
| 182 |
Processing = 2, |
| 183 |
SoundStarted = 3, |
| 184 |
SoundEnded = 4, |
| 185 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 186 |
SpeechDetected = 5, |
| 187 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] |
| 188 |
Paused = 6, |
| 189 |
}; |
| 190 |
|
| 191 |
[ |
| 192 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 193 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionCompletedEventArgs), |
| 194 |
uuid(e3d069bb-e30c-5e18-424b-7fbe81f8fbd0) |
| 195 |
] |
| 196 |
interface ISpeechContinuousRecognitionCompletedEventArgs : IInspectable |
| 197 |
{ |
| 198 |
[propget] HRESULT Status([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus *value); |
| 199 |
} |
| 200 |
|
| 201 |
[ |
| 202 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 203 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionResultGeneratedEventArgs), |
| 204 |
uuid(19091e1e-6e7e-5a46-40fb-76594f786504) |
| 205 |
] |
| 206 |
interface ISpeechContinuousRecognitionResultGeneratedEventArgs : IInspectable |
| 207 |
{ |
| 208 |
[propget] HRESULT Result([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResult **value); |
| 209 |
} |
| 210 |
|
| 211 |
[ |
| 212 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 213 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession), |
| 214 |
uuid(6a213c04-6614-49f8-99a2-b5e9b3a085c8) |
| 215 |
] |
| 216 |
interface ISpeechContinuousRecognitionSession : IInspectable |
| 217 |
{ |
| 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); |
| 225 |
HRESULT Resume(); |
| 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); |
| 234 |
} |
| 235 |
|
| 236 |
[ |
| 237 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 238 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionCompilationResult), |
| 239 |
uuid(407e6c5d-6ac7-4da4-9cc1-2fce32cf7489) |
| 240 |
] |
| 241 |
interface ISpeechRecognitionCompilationResult : IInspectable |
| 242 |
{ |
| 243 |
[propget] HRESULT Status([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionResultStatus *value); |
| 244 |
} |
| 245 |
|
| 246 |
[ |
| 247 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 248 |
uuid(79ac1628-4d68-43c4-8911-40dc4101b55b) |
| 249 |
] |
| 250 |
interface ISpeechRecognitionConstraint : IInspectable |
| 251 |
{ |
| 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); |
| 259 |
} |
| 260 |
|
| 261 |
[ |
| 262 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 263 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis), |
| 264 |
uuid(7a7b25b0-99c5-4f7d-bf84-10aa1302b634) |
| 265 |
] |
| 266 |
interface ISpeechRecognitionHypothesis : IInspectable |
| 267 |
{ |
| 268 |
[propget] HRESULT Text([out, retval] HSTRING *value); |
| 269 |
} |
| 270 |
|
| 271 |
[ |
| 272 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 273 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionHypothesisGeneratedEventArgs), |
| 274 |
uuid(55161a7a-8023-5866-411d-1213bb271476) |
| 275 |
] |
| 276 |
interface ISpeechRecognitionHypothesisGeneratedEventArgs : IInspectable |
| 277 |
{ |
| 278 |
[propget] HRESULT Hypothesis([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionHypothesis **value); |
| 279 |
} |
| 280 |
|
| 281 |
[ |
| 282 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 283 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint), |
| 284 |
uuid(09c487e9-e4ad-4526-81f2-4946fb481d98) |
| 285 |
] |
| 286 |
interface ISpeechRecognitionListConstraint : IInspectable |
| 287 |
requires |
| 288 |
Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint |
| 289 |
{ |
| 290 |
[propget] HRESULT Commands([out, retval] Windows.Foundation.Collections.IVector<HSTRING> **value); |
| 291 |
} |
| 292 |
|
| 293 |
[ |
| 294 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 295 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint), |
| 296 |
uuid(40f3cdc7-562a-426a-9f3b-3b4e282be1d5) |
| 297 |
] |
| 298 |
interface ISpeechRecognitionListConstraintFactory : IInspectable |
| 299 |
{ |
| 300 |
HRESULT Create( |
| 301 |
[in] Windows.Foundation.Collections.IIterable<HSTRING> *commands, |
| 302 |
[out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint); |
| 303 |
|
| 304 |
HRESULT CreateWithTag( |
| 305 |
[in] Windows.Foundation.Collections.IIterable<HSTRING> *commands, |
| 306 |
[in] HSTRING tag, |
| 307 |
[out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint **listconstraint); |
| 308 |
} |
| 309 |
|
| 310 |
[ |
| 311 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 312 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs), |
| 313 |
uuid(4fe24105-8c3a-4c7e-8d0a-5bd4f5b14ad8) |
| 314 |
] |
| 315 |
interface ISpeechRecognitionQualityDegradingEventArgs : IInspectable |
| 316 |
{ |
| 317 |
[propget] HRESULT Problem([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionAudioProblem *value); |
| 318 |
} |
| 319 |
|
| 320 |
[ |
| 321 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 322 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionResult), |
| 323 |
uuid(4e303157-034e-4652-857e-d0454cc4beec) |
| 324 |
] |
| 325 |
interface ISpeechRecognitionResult : IInspectable |
| 326 |
{ |
| 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); |
| 335 |
} |
| 336 |
|
| 337 |
[ |
| 338 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 339 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionResult), |
| 340 |
uuid(af7ed1ba-451b-4166-a0c1-1ffe84032d03) |
| 341 |
] |
| 342 |
interface ISpeechRecognitionResult2 : IInspectable |
| 343 |
{ |
| 344 |
[propget] HRESULT PhraseStartTime([out, retval] Windows.Foundation.DateTime *value); |
| 345 |
[propget] HRESULT PhraseDuration([out, retval] Windows.Foundation.TimeSpan *value); |
| 346 |
} |
| 347 |
|
| 348 |
[ |
| 349 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 350 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionSemanticInterpretation), |
| 351 |
uuid(aae1da9b-7e32-4c1f-89fe-0c65f486f52e) |
| 352 |
] |
| 353 |
interface ISpeechRecognitionSemanticInterpretation : IInspectable |
| 354 |
{ |
| 355 |
[propget] HRESULT Properties([out, retval] Windows.Foundation.Collections.IMapView<HSTRING, Windows.Foundation.Collections.IVectorView<HSTRING>*> **value); |
| 356 |
} |
| 357 |
|
| 358 |
[ |
| 359 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 360 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer), |
| 361 |
uuid(0bc3c9cb-c26a-40f2-aeb5-8096b2e48073) |
| 362 |
] |
| 363 |
interface ISpeechRecognizer : IInspectable |
| 364 |
requires |
| 365 |
Windows.Foundation.IClosable |
| 366 |
{ |
| 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); |
| 382 |
} |
| 383 |
|
| 384 |
[ |
| 385 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 386 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer), |
| 387 |
uuid(63c9baf1-91e3-4ea4-86a1-7c3867d084a6) |
| 388 |
] |
| 389 |
interface ISpeechRecognizer2 : IInspectable |
| 390 |
{ |
| 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); |
| 398 |
} |
| 399 |
|
| 400 |
[ |
| 401 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 402 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer), |
| 403 |
uuid(60c488dd-7fb8-4033-ac70-d046f64818e1) |
| 404 |
] |
| 405 |
interface ISpeechRecognizerFactory : IInspectable |
| 406 |
{ |
| 407 |
HRESULT Create( |
| 408 |
[in] Windows.Globalization.Language *language, |
| 409 |
[out, retval] Windows.Media.SpeechRecognition.SpeechRecognizer **speechrecognizer); |
| 410 |
} |
| 411 |
|
| 412 |
[ |
| 413 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 414 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerStateChangedEventArgs), |
| 415 |
uuid(563d4f09-ba03-4bad-ad81-ddc6c4dab0c3) |
| 416 |
] |
| 417 |
interface ISpeechRecognizerStateChangedEventArgs : IInspectable |
| 418 |
{ |
| 419 |
[propget] HRESULT State([out, retval] Windows.Media.SpeechRecognition.SpeechRecognizerState *value); |
| 420 |
} |
| 421 |
|
| 422 |
[ |
| 423 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 424 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer), |
| 425 |
uuid(87a35eac-a7dc-4b0b-bcc9-24f47c0b7ebf) |
| 426 |
] |
| 427 |
interface ISpeechRecognizerStatics : IInspectable |
| 428 |
{ |
| 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); |
| 432 |
} |
| 433 |
|
| 434 |
[ |
| 435 |
contract(Windows.Foundation.UniversalApiContract, 5.0), |
| 436 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizer), |
| 437 |
uuid(1d1b0d95-7565-4ef9-a2f3-ba15162a96cf) |
| 438 |
] |
| 439 |
interface ISpeechRecognizerStatics2 : IInspectable |
| 440 |
{ |
| 441 |
HRESULT TrySetSystemSpeechLanguageAsync([in] Windows.Globalization.Language *language, [out, retval] Windows.Foundation.IAsyncOperation<boolean> **operation); |
| 442 |
} |
| 443 |
|
| 444 |
[ |
| 445 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 446 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerTimeouts), |
| 447 |
uuid(2ef76fca-6a3c-4dca-a153-df1bc88a79af) |
| 448 |
] |
| 449 |
interface ISpeechRecognizerTimeouts : IInspectable |
| 450 |
{ |
| 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); |
| 457 |
} |
| 458 |
|
| 459 |
[ |
| 460 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 461 |
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognizerUIOptions), |
| 462 |
uuid(7888d641-b92b-44ba-a25f-d1864630641f) |
| 463 |
] |
| 464 |
interface ISpeechRecognizerUIOptions : IInspectable |
| 465 |
{ |
| 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); |
| 474 |
} |
| 475 |
|
| 476 |
[ |
| 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) |
| 481 |
] |
| 482 |
interface IVoiceCommandSet : IInspectable |
| 483 |
{ |
| 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); |
| 490 |
} |
| 491 |
|
| 492 |
[ |
| 493 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 494 |
marshaling_behavior(agile), |
| 495 |
threading(both) |
| 496 |
] |
| 497 |
runtimeclass SpeechContinuousRecognitionCompletedEventArgs |
| 498 |
{ |
| 499 |
[default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionCompletedEventArgs; |
| 500 |
} |
| 501 |
|
| 502 |
[ |
| 503 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 504 |
marshaling_behavior(agile), |
| 505 |
threading(both) |
| 506 |
] |
| 507 |
runtimeclass SpeechContinuousRecognitionResultGeneratedEventArgs |
| 508 |
{ |
| 509 |
[default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionResultGeneratedEventArgs; |
| 510 |
} |
| 511 |
|
| 512 |
[ |
| 513 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 514 |
marshaling_behavior(agile), |
| 515 |
threading(both) |
| 516 |
] |
| 517 |
runtimeclass SpeechContinuousRecognitionSession |
| 518 |
{ |
| 519 |
[default] interface Windows.Media.SpeechRecognition.ISpeechContinuousRecognitionSession; |
| 520 |
} |
| 521 |
|
| 522 |
[ |
| 523 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 524 |
marshaling_behavior(agile) |
| 525 |
] |
| 526 |
runtimeclass SpeechRecognitionCompilationResult |
| 527 |
{ |
| 528 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionCompilationResult; |
| 529 |
} |
| 530 |
|
| 531 |
[ |
| 532 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 533 |
marshaling_behavior(agile), |
| 534 |
threading(both) |
| 535 |
] |
| 536 |
runtimeclass SpeechRecognitionHypothesis |
| 537 |
{ |
| 538 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesis; |
| 539 |
} |
| 540 |
|
| 541 |
[ |
| 542 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 543 |
marshaling_behavior(agile), |
| 544 |
threading(both) |
| 545 |
] |
| 546 |
runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs |
| 547 |
{ |
| 548 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionHypothesisGeneratedEventArgs; |
| 549 |
} |
| 550 |
|
| 551 |
[ |
| 552 |
activatable(Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraintFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 553 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 554 |
marshaling_behavior(agile) |
| 555 |
] |
| 556 |
runtimeclass SpeechRecognitionListConstraint |
| 557 |
{ |
| 558 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionListConstraint; |
| 559 |
interface Windows.Media.SpeechRecognition.ISpeechRecognitionConstraint; |
| 560 |
} |
| 561 |
|
| 562 |
[ |
| 563 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 564 |
marshaling_behavior(agile) |
| 565 |
] |
| 566 |
runtimeclass SpeechRecognitionQualityDegradingEventArgs |
| 567 |
{ |
| 568 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionQualityDegradingEventArgs; |
| 569 |
} |
| 570 |
|
| 571 |
[ |
| 572 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 573 |
marshaling_behavior(agile) |
| 574 |
] |
| 575 |
runtimeclass SpeechRecognitionResult |
| 576 |
{ |
| 577 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult; |
| 578 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult2; |
| 579 |
} |
| 580 |
|
| 581 |
[ |
| 582 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 583 |
marshaling_behavior(agile) |
| 584 |
] |
| 585 |
runtimeclass SpeechRecognitionSemanticInterpretation |
| 586 |
{ |
| 587 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionSemanticInterpretation; |
| 588 |
} |
| 589 |
|
| 590 |
[ |
| 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) |
| 597 |
] |
| 598 |
runtimeclass SpeechRecognizer |
| 599 |
{ |
| 600 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognizer; |
| 601 |
interface Windows.Foundation.IClosable; |
| 602 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.SpeechRecognition.ISpeechRecognizer2; |
| 603 |
} |
| 604 |
|
| 605 |
[ |
| 606 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 607 |
marshaling_behavior(agile) |
| 608 |
] |
| 609 |
runtimeclass SpeechRecognizerStateChangedEventArgs |
| 610 |
{ |
| 611 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerStateChangedEventArgs; |
| 612 |
} |
| 613 |
|
| 614 |
[ |
| 615 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 616 |
marshaling_behavior(agile) |
| 617 |
] |
| 618 |
runtimeclass SpeechRecognizerTimeouts |
| 619 |
{ |
| 620 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerTimeouts; |
| 621 |
} |
| 622 |
|
| 623 |
[ |
| 624 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 625 |
marshaling_behavior(agile) |
| 626 |
] |
| 627 |
runtimeclass SpeechRecognizerUIOptions |
| 628 |
{ |
| 629 |
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognizerUIOptions; |
| 630 |
} |
| 631 |
|
| 632 |
[ |
| 633 |
contract(Windows.Phone.PhoneContract, 1.0), |
| 634 |
deprecated("Use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", deprecate, Windows.Phone.PhoneContract, 1.0), |
| 635 |
marshaling_behavior(agile) |
| 636 |
] |
| 637 |
runtimeclass VoiceCommandSet |
| 638 |
{ |
| 639 |
[default] interface Windows.Media.SpeechRecognition.IVoiceCommandSet; |
| 640 |
} |
| 641 |
} |
| 642 |
} |
| 643 |
} |