From: Bernhard K��lbl besentv@gmail.com
--- include/windows.media.speechsynthesis.idl | 84 +++++++++++------------ 1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/include/windows.media.speechsynthesis.idl b/include/windows.media.speechsynthesis.idl index 5b44c018c9b..a9c5f4f2c08 100644 --- a/include/windows.media.speechsynthesis.idl +++ b/include/windows.media.speechsynthesis.idl @@ -32,17 +32,17 @@ namespace Windows.Media.SpeechSynthesis typedef enum VoiceGender VoiceGender; interface IInstalledVoicesStatic; interface IInstalledVoicesStatic2; + interface ISpeechSynthesisStream; interface ISpeechSynthesizer; interface ISpeechSynthesizer2; interface ISpeechSynthesizerOptions; interface ISpeechSynthesizerOptions2; interface ISpeechSynthesizerOptions3; interface IVoiceInformation; - interface ISpeechSynthesisStream; + runtimeclass SpeechSynthesisStream; runtimeclass SpeechSynthesizer; - runtimeclass VoiceInformation; runtimeclass SpeechSynthesizerOptions; - runtimeclass SpeechSynthesisStream; + runtimeclass VoiceInformation;
declare { @@ -80,6 +80,17 @@ namespace Windows.Media.SpeechSynthesis Female = 1 };
+ [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), + uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc) + ] + interface IInstalledVoicesStatic : IInspectable + { + [propget] HRESULT AllVoices([out, retval] Windows.Foundation.Collections.IVectorView<VoiceInformation*> **value); + [propget] HRESULT DefaultVoice([out, retval] VoiceInformation **value); + } + [ contract(Windows.Foundation.UniversalApiContract, 1.0), exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesisStream), @@ -120,20 +131,6 @@ namespace Windows.Media.SpeechSynthesis [propget] HRESULT Options([out, retval] SpeechSynthesizerOptions **value); }
- [ - contract(Windows.Foundation.UniversalApiContract, 1.0), - exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation), - uuid(b127d6a4-1291-4604-aa9c-83134083352c) - ] - interface IVoiceInformation : IInspectable - { - [propget] HRESULT DisplayName([out, retval] HSTRING *value); - [propget] HRESULT Id([out, retval] HSTRING *value); - [propget] HRESULT Language([out, retval] HSTRING *value); - [propget] HRESULT Description([out, retval] HSTRING *value); - [propget] HRESULT Gender([out, retval] VoiceGender *value); - } - [ contract(Windows.Foundation.UniversalApiContract, 4.0), exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions), @@ -177,33 +174,16 @@ namespace Windows.Media.SpeechSynthesis
[ contract(Windows.Foundation.UniversalApiContract, 1.0), - exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), - uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc) - ] - interface IInstalledVoicesStatic : IInspectable - { - [propget] HRESULT AllVoices([out, retval] Windows.Foundation.Collections.IVectorView<VoiceInformation*> **value); - [propget] HRESULT DefaultVoice([out, retval] VoiceInformation **value); - } - - [ - contract(Windows.Foundation.UniversalApiContract, 1.0), - marshaling_behavior(agile) - ] - runtimeclass VoiceInformation - { - [default] interface Windows.Media.SpeechSynthesis.IVoiceInformation; - } - - [ - contract(Windows.Foundation.UniversalApiContract, 4.0), - marshaling_behavior(agile) + exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation), + uuid(b127d6a4-1291-4604-aa9c-83134083352c) ] - runtimeclass SpeechSynthesizerOptions + interface IVoiceInformation : IInspectable { - [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; + [propget] HRESULT DisplayName([out, retval] HSTRING *value); + [propget] HRESULT Id([out, retval] HSTRING *value); + [propget] HRESULT Language([out, retval] HSTRING *value); + [propget] HRESULT Description([out, retval] HSTRING *value); + [propget] HRESULT Gender([out, retval] VoiceGender *value); }
[ @@ -234,4 +214,24 @@ namespace Windows.Media.SpeechSynthesis interface Windows.Foundation.IClosable; [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2; } + + [ + contract(Windows.Foundation.UniversalApiContract, 4.0), + marshaling_behavior(agile) + ] + runtimeclass SpeechSynthesizerOptions + { + [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; + } + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + marshaling_behavior(agile) + ] + runtimeclass VoiceInformation + { + [default] interface Windows.Media.SpeechSynthesis.IVoiceInformation; + } }