Commit 958b3da9 authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

include/windows.media.speechsynthesis.idl: Add missing interfaces to…

include/windows.media.speechsynthesis.idl: Add missing interfaces to SpeechSynthesizerOptions runtimeclass. And their dependencies.
parent df9fc895
...@@ -27,11 +27,16 @@ import "windows.storage.streams.idl"; ...@@ -27,11 +27,16 @@ import "windows.storage.streams.idl";
namespace Windows.Media.SpeechSynthesis namespace Windows.Media.SpeechSynthesis
{ {
typedef enum SpeechAppendedSilence SpeechAppendedSilence;
typedef enum SpeechPunctuationSilence SpeechPunctuationSilence;
typedef enum VoiceGender VoiceGender; typedef enum VoiceGender VoiceGender;
interface IInstalledVoicesStatic; interface IInstalledVoicesStatic;
interface IInstalledVoicesStatic2; interface IInstalledVoicesStatic2;
interface ISpeechSynthesizer; interface ISpeechSynthesizer;
interface ISpeechSynthesizer2; interface ISpeechSynthesizer2;
interface ISpeechSynthesizerOptions;
interface ISpeechSynthesizerOptions2;
interface ISpeechSynthesizerOptions3;
interface IVoiceInformation; interface IVoiceInformation;
interface ISpeechSynthesisStream; interface ISpeechSynthesisStream;
runtimeclass SpeechSynthesizer; runtimeclass SpeechSynthesizer;
...@@ -49,6 +54,24 @@ namespace Windows.Media.SpeechSynthesis ...@@ -49,6 +54,24 @@ namespace Windows.Media.SpeechSynthesis
} }
[ [
contract(Windows.Foundation.UniversalApiContract, 6.0)
]
enum SpeechAppendedSilence
{
Default = 0,
Min = 1,
};
[
contract(Windows.Foundation.UniversalApiContract, 6.0)
]
enum SpeechPunctuationSilence
{
Default = 0,
Min = 1,
};
[
contract(Windows.Foundation.UniversalApiContract, 1.0) contract(Windows.Foundation.UniversalApiContract, 1.0)
] ]
enum VoiceGender enum VoiceGender
...@@ -112,7 +135,7 @@ namespace Windows.Media.SpeechSynthesis ...@@ -112,7 +135,7 @@ namespace Windows.Media.SpeechSynthesis
} }
[ [
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 4.0),
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions), exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions),
uuid(a0e23871-cc3d-43c9-91b1-ee185324d83d) uuid(a0e23871-cc3d-43c9-91b1-ee185324d83d)
] ]
...@@ -125,6 +148,34 @@ namespace Windows.Media.SpeechSynthesis ...@@ -125,6 +148,34 @@ namespace Windows.Media.SpeechSynthesis
} }
[ [
contract(Windows.Foundation.UniversalApiContract, 5.0),
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions),
uuid(1cbef60e-119c-4bed-b118-d250c3a25793),
]
interface ISpeechSynthesizerOptions2 : IInspectable
{
[propget] HRESULT AudioVolume([out, retval] DOUBLE *value);
[propput] HRESULT AudioVolume([in] DOUBLE value);
[propget] HRESULT SpeakingRate([out, retval] DOUBLE *value);
[propput] HRESULT SpeakingRate([in] DOUBLE value);
[propget] HRESULT AudioPitch([out, retval] DOUBLE *value);
[propput] HRESULT AudioPitch([in] DOUBLE value);
}
[
contract(Windows.Foundation.UniversalApiContract, 6.0),
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions),
uuid(401ed877-902c-4814-a582-a5d0c0769fa8)
]
interface ISpeechSynthesizerOptions3 : IInspectable
{
[propget] HRESULT AppendedSilence([out, retval] Windows.Media.SpeechSynthesis.SpeechAppendedSilence *value);
[propput] HRESULT AppendedSilence([in] Windows.Media.SpeechSynthesis.SpeechAppendedSilence value);
[propget] HRESULT PunctuationSilence([out, retval] Windows.Media.SpeechSynthesis.SpeechPunctuationSilence *value);
[propput] HRESULT PunctuationSilence([in] Windows.Media.SpeechSynthesis.SpeechPunctuationSilence value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc) uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc)
...@@ -145,12 +196,14 @@ namespace Windows.Media.SpeechSynthesis ...@@ -145,12 +196,14 @@ namespace Windows.Media.SpeechSynthesis
} }
[ [
contract(Windows.Foundation.UniversalApiContract, 1.0), contract(Windows.Foundation.UniversalApiContract, 4.0),
marshaling_behavior(agile) marshaling_behavior(agile)
] ]
runtimeclass SpeechSynthesizerOptions runtimeclass SpeechSynthesizerOptions
{ {
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions; [default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions;
[contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions2;
[contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions3;
} }
[ [
......
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