Commit 9f78b0a6 authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

include/windows.media.speechrecognition.idl: Add SpeechRecognitionQualityDegradingEventArgs.

And a needed enum. Signed-off-by: 's avatarBernhard Kölbl <besentv@gmail.com> Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 71d9e966
......@@ -33,6 +33,7 @@ namespace Windows {
namespace Media {
namespace SpeechRecognition {
typedef enum SpeechContinuousRecognitionMode SpeechContinuousRecognitionMode;
typedef enum SpeechRecognitionAudioProblem SpeechRecognitionAudioProblem;
typedef enum SpeechRecognitionConfidence SpeechRecognitionConfidence;
typedef enum SpeechRecognitionConstraintProbability SpeechRecognitionConstraintProbability;
typedef enum SpeechRecognitionConstraintType SpeechRecognitionConstraintType;
......@@ -44,6 +45,7 @@ namespace Windows {
interface ISpeechRecognitionConstraint;
interface ISpeechRecognitionHypothesis;
interface ISpeechRecognitionHypothesisGeneratedEventArgs;
interface ISpeechRecognitionQualityDegradingEventArgs;
interface ISpeechRecognitionResult;
interface ISpeechRecognitionResult2;
interface ISpeechRecognitionSemanticInterpretation;
......@@ -55,6 +57,7 @@ namespace Windows {
runtimeclass SpeechRecognitionCompilationResult;
runtimeclass SpeechRecognitionHypothesis;
runtimeclass SpeechRecognitionHypothesisGeneratedEventArgs;
runtimeclass SpeechRecognitionQualityDegradingEventArgs;
runtimeclass SpeechRecognitionResult;
runtimeclass SpeechRecognitionSemanticInterpretation;
runtimeclass SpeechRecognizerTimeouts;
......@@ -89,6 +92,18 @@ namespace Windows {
};
[contract(Windows.Foundation.UniversalApiContract, 1.0)]
enum SpeechRecognitionAudioProblem
{
None = 0,
TooNoisy = 1,
NoSignal = 2,
TooLoud = 3,
TooQuiet = 4,
TooFast = 5,
TooSlow = 6,
};
[contract(Windows.Foundation.UniversalApiContract, 1.0)]
enum SpeechRecognitionConfidence
{
High = 0,
......@@ -226,6 +241,16 @@ namespace Windows {
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionQualityDegradingEventArgs),
uuid(4fe24105-8c3a-4c7e-8d0a-5bd4f5b14ad8)
]
interface ISpeechRecognitionQualityDegradingEventArgs : IInspectable
{
[propget] HRESULT Problem([out, retval] Windows.Media.SpeechRecognition.SpeechRecognitionAudioProblem *value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Media.SpeechRecognition.SpeechRecognitionResult),
uuid(4e303157-034e-4652-857e-d0454cc4beec)
]
......@@ -357,6 +382,15 @@ namespace Windows {
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile)
]
runtimeclass SpeechRecognitionQualityDegradingEventArgs
{
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionQualityDegradingEventArgs;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile)
]
runtimeclass SpeechRecognitionResult
{
[default] interface Windows.Media.SpeechRecognition.ISpeechRecognitionResult;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment