dpnet: Don't assign a COM object to the 3rd param of QueryInterface.
[wine.git] / include / windows.media.speechsynthesis.idl
blobaf4466681dcb189054aa03d20f23300a5892f4c8
1 /*
2 * Copyright 2020 RĂ©mi Bernon for CodeWeavers
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
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
23 import "inspectable.idl";
24 import "windows.foundation.idl";
26 namespace Windows {
27 namespace Foundation {
28 interface IClosable;
30 namespace Media {
31 namespace SpeechSynthesis {
32 typedef enum VoiceGender VoiceGender;
33 interface IInstalledVoicesStatic;
34 interface IInstalledVoicesStatic2;
35 interface ISpeechSynthesizer;
36 interface ISpeechSynthesizer2;
37 interface IVoiceInformation;
38 runtimeclass SpeechSynthesizer;
39 runtimeclass VoiceInformation;
44 namespace Windows {
45 namespace Media {
46 namespace SpeechSynthesis {
47 declare {
48 interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechSynthesis.VoiceInformation*>;
49 interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechSynthesis.VoiceInformation*>;
50 interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechSynthesis.VoiceInformation*>;
56 namespace Windows {
57 namespace Media {
58 namespace SpeechSynthesis {
59 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
60 enum VoiceGender
62 Male = 0,
63 Female = 1
67 contract(Windows.Foundation.UniversalApiContract, 1.0),
68 exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation),
69 uuid(b127d6a4-1291-4604-aa9c-83134083352c)
71 interface IVoiceInformation : IInspectable
73 [propget] HRESULT DisplayName([out] [retval] HSTRING* value);
74 [propget] HRESULT Id([out] [retval] HSTRING* value);
75 [propget] HRESULT Language([out] [retval] HSTRING* value);
76 [propget] HRESULT Description([out] [retval] HSTRING* value);
77 [propget] HRESULT Gender([out] [retval] VoiceGender* value);
81 contract(Windows.Foundation.UniversalApiContract, 1.0),
82 exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
83 uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc)
85 interface IInstalledVoicesStatic : IInspectable
87 [propget] HRESULT AllVoices([out, retval] Windows.Foundation.Collections.IVectorView<VoiceInformation*>** value);
88 [propget] HRESULT DefaultVoice([out, retval] VoiceInformation** value);
92 contract(Windows.Foundation.UniversalApiContract, 1.0),
93 marshaling_behavior(agile)
95 runtimeclass VoiceInformation
97 [default] interface Windows.Media.SpeechSynthesis.IVoiceInformation;
101 activatable(Windows.Foundation.UniversalApiContract, 1.0),
102 contract(Windows.Foundation.UniversalApiContract, 1.0),
103 marshaling_behavior(agile),
104 static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic, Windows.Foundation.UniversalApiContract, 1.0),
105 static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic2, Windows.Foundation.UniversalApiContract, 5.0)
107 runtimeclass SpeechSynthesizer
109 [default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer;
110 interface Windows.Foundation.IClosable;
111 [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2;