1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

include/windows.media.speechsynthesis.idl: Update file to newer formatting.

I.e. get rid of nested namespaces and forward declares,
separate attributes with commas and right align pointer declarations.

Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
This commit is contained in:
Bernhard Kölbl 2022-06-12 17:36:43 +02:00 committed by Alexandre Julliard
parent 6e26dc6b59
commit faf8ed367c

View file

@ -23,181 +23,162 @@
import "inspectable.idl"; import "inspectable.idl";
import "windows.foundation.idl"; import "windows.foundation.idl";
import "windows.media.idl"; import "windows.media.idl";
import "windows.storage.streams.idl";
namespace Windows { namespace Windows.Media.SpeechSynthesis
namespace Foundation { {
interface IClosable; typedef enum VoiceGender VoiceGender;
interface IInstalledVoicesStatic;
interface IInstalledVoicesStatic2;
interface ISpeechSynthesizer;
interface ISpeechSynthesizer2;
interface IVoiceInformation;
interface ISpeechSynthesisStream;
runtimeclass SpeechSynthesizer;
runtimeclass VoiceInformation;
runtimeclass SpeechSynthesizerOptions;
runtimeclass SpeechSynthesisStream;
declare
{
interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechSynthesis.VoiceInformation*>;
interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechSynthesis.VoiceInformation*>;
interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechSynthesis.VoiceInformation*>;
interface Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*>;
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*>;
} }
namespace Media {
namespace SpeechSynthesis { [
typedef enum VoiceGender VoiceGender; contract(Windows.Foundation.UniversalApiContract, 1.0)
interface IInstalledVoicesStatic; ]
interface IInstalledVoicesStatic2; enum VoiceGender
interface ISpeechSynthesizer; {
interface ISpeechSynthesizer2; Male = 0,
interface IVoiceInformation; Female = 1
interface ISpeechSynthesisStream; };
runtimeclass SpeechSynthesizer;
runtimeclass VoiceInformation; [
runtimeclass SpeechSynthesizerOptions; contract(Windows.Foundation.UniversalApiContract, 1.0),
runtimeclass SpeechSynthesisStream; exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesisStream),
} uuid(83e46e93-244c-4622-ba0b-6229c4d0d65d)
]
interface ISpeechSynthesisStream : IInspectable
requires
Windows.Storage.Streams.IRandomAccessStreamWithContentType,
Windows.Storage.Streams.IRandomAccessStream,
Windows.Foundation.IClosable,
Windows.Storage.Streams.IInputStream,
Windows.Storage.Streams.IOutputStream,
Windows.Storage.Streams.IContentTypeProvider
{
[propget] HRESULT Markers([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Media.IMediaMarker*> **value);
} }
namespace Storage {
namespace Streams { [
interface IRandomAccessStreamWithContentType; contract(Windows.Foundation.UniversalApiContract, 1.0),
interface IRandomAccessStream; exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
interface IInputStream; uuid(ce9f7c76-97f4-4ced-ad68-d51c458e45c6)
interface IOutputStream; ]
interface IContentTypeProvider; interface ISpeechSynthesizer : IInspectable
} {
} HRESULT SynthesizeTextToStreamAsync([in] HSTRING text, [out, retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*> **operation);
} HRESULT SynthesizeSsmlToStreamAsync([in] HSTRING Ssml, [out, retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*> **operation);
[propput] HRESULT Voice([in] VoiceInformation *value);
namespace Windows { [propget] HRESULT Voice([out, retval] VoiceInformation **value);
namespace Media { }
namespace SpeechSynthesis {
declare { [
interface Windows.Foundation.Collections.IIterator<Windows.Media.SpeechSynthesis.VoiceInformation*>; contract(Windows.Foundation.UniversalApiContract, 1.0),
interface Windows.Foundation.Collections.IIterable<Windows.Media.SpeechSynthesis.VoiceInformation*>; exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
interface Windows.Foundation.Collections.IVectorView<Windows.Media.SpeechSynthesis.VoiceInformation*>; uuid(a7c5ecb2-4339-4d6a-bbf8-c7a4f1544c2e)
interface Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*>; ]
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*>; interface ISpeechSynthesizer2 : IInspectable
} {
} [propget] HRESULT Options([out, retval] SpeechSynthesizerOptions **value);
} }
}
[
namespace Windows { contract(Windows.Foundation.UniversalApiContract, 1.0),
namespace Media { exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation),
namespace SpeechSynthesis { uuid(b127d6a4-1291-4604-aa9c-83134083352c)
[contract(Windows.Foundation.UniversalApiContract, 1.0)] ]
enum VoiceGender interface IVoiceInformation : IInspectable
{ {
Male = 0, [propget] HRESULT DisplayName([out, retval] HSTRING *value);
Female = 1 [propget] HRESULT Id([out, retval] HSTRING *value);
}; [propget] HRESULT Language([out, retval] HSTRING *value);
[propget] HRESULT Description([out, retval] HSTRING *value);
[contract(Windows.Foundation.UniversalApiContract, 1.0)] [propget] HRESULT Gender([out, retval] VoiceGender *value);
[exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesisStream)] }
[uuid(83e46e93-244c-4622-ba0b-6229c4d0d65d)]
interface ISpeechSynthesisStream : IInspectable [
requires contract(Windows.Foundation.UniversalApiContract, 1.0),
Windows.Storage.Streams.IRandomAccessStreamWithContentType, exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions),
Windows.Storage.Streams.IRandomAccessStream, uuid(a0e23871-cc3d-43c9-91b1-ee185324d83d)
Windows.Foundation.IClosable, ]
Windows.Storage.Streams.IInputStream, interface ISpeechSynthesizerOptions : IInspectable
Windows.Storage.Streams.IOutputStream, {
Windows.Storage.Streams.IContentTypeProvider [propget] HRESULT IncludeWordBoundaryMetadata([out, retval] boolean *value);
{ [propput] HRESULT IncludeWordBoundaryMetadata([in] boolean value);
[propget] HRESULT Markers([out] [retval] Windows.Foundation.Collections.IVectorView<Windows.Media.IMediaMarker*>** value); [propget] HRESULT IncludeSentenceBoundaryMetadata([out, retval] boolean *value);
} [propput] HRESULT IncludeSentenceBoundaryMetadata([in] boolean value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0), [
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), contract(Windows.Foundation.UniversalApiContract, 1.0),
uuid(ce9f7c76-97f4-4ced-ad68-d51c458e45c6) exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer),
] uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc)
interface ISpeechSynthesizer : IInspectable ]
{ interface IInstalledVoicesStatic : IInspectable
HRESULT SynthesizeTextToStreamAsync([in] HSTRING text, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*> **operation); {
HRESULT SynthesizeSsmlToStreamAsync([in] HSTRING Ssml, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Media.SpeechSynthesis.SpeechSynthesisStream*> **operation); [propget] HRESULT AllVoices([out, retval] Windows.Foundation.Collections.IVectorView<VoiceInformation*> **value);
[propput] HRESULT Voice([in] VoiceInformation *value); [propget] HRESULT DefaultVoice([out, retval] VoiceInformation **value);
[propget] HRESULT Voice([out] [retval] VoiceInformation **value); }
}
[
[ contract(Windows.Foundation.UniversalApiContract, 1.0),
contract(Windows.Foundation.UniversalApiContract, 1.0), marshaling_behavior(agile)
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), ]
uuid(a7c5ecb2-4339-4d6a-bbf8-c7a4f1544c2e) runtimeclass VoiceInformation
] {
interface ISpeechSynthesizer2 : IInspectable [default] interface Windows.Media.SpeechSynthesis.IVoiceInformation;
{ }
[propget] HRESULT Options([out, retval] SpeechSynthesizerOptions **value);
} [
contract(Windows.Foundation.UniversalApiContract, 1.0),
[ marshaling_behavior(agile)
contract(Windows.Foundation.UniversalApiContract, 1.0), ]
exclusiveto(Windows.Media.SpeechSynthesis.VoiceInformation), runtimeclass SpeechSynthesizerOptions
uuid(b127d6a4-1291-4604-aa9c-83134083352c) {
] [default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions;
interface IVoiceInformation : IInspectable }
{
[propget] HRESULT DisplayName([out] [retval] HSTRING* value); [
[propget] HRESULT Id([out] [retval] HSTRING* value); contract(Windows.Foundation.UniversalApiContract, 1.0),
[propget] HRESULT Language([out] [retval] HSTRING* value); marshaling_behavior(agile)
[propget] HRESULT Description([out] [retval] HSTRING* value); ]
[propget] HRESULT Gender([out] [retval] VoiceGender* value); runtimeclass SpeechSynthesisStream
} {
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesisStream;
[ interface Windows.Storage.Streams.IRandomAccessStreamWithContentType;
contract(Windows.Foundation.UniversalApiContract, 1.0), interface Windows.Storage.Streams.IContentTypeProvider;
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizerOptions), interface Windows.Storage.Streams.IRandomAccessStream;
uuid(a0e23871-cc3d-43c9-91b1-ee185324d83d) interface Windows.Storage.Streams.IOutputStream;
] interface Windows.Foundation.IClosable;
interface ISpeechSynthesizerOptions : IInspectable interface Windows.Storage.Streams.IInputStream;
{ }
[propget] HRESULT IncludeWordBoundaryMetadata([out, retval] boolean *value);
[propput] HRESULT IncludeWordBoundaryMetadata([in] boolean value); [
[propget] HRESULT IncludeSentenceBoundaryMetadata([out, retval] boolean *value); activatable(Windows.Foundation.UniversalApiContract, 1.0),
[propput] HRESULT IncludeSentenceBoundaryMetadata([in] boolean value); contract(Windows.Foundation.UniversalApiContract, 1.0),
} marshaling_behavior(agile),
static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic, Windows.Foundation.UniversalApiContract, 1.0),
[ static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic2, Windows.Foundation.UniversalApiContract, 5.0)
contract(Windows.Foundation.UniversalApiContract, 1.0), ]
exclusiveto(Windows.Media.SpeechSynthesis.SpeechSynthesizer), runtimeclass SpeechSynthesizer
uuid(7d526ecc-7533-4c3f-85be-888c2baeebdc) {
] [default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer;
interface IInstalledVoicesStatic : IInspectable interface Windows.Foundation.IClosable;
{ [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2;
[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, 1.0),
marshaling_behavior(agile)
]
runtimeclass SpeechSynthesizerOptions
{
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizerOptions;
}
[contract(Windows.Foundation.UniversalApiContract, 1.0)]
[marshaling_behavior(agile)]
runtimeclass SpeechSynthesisStream
{
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesisStream;
interface Windows.Storage.Streams.IRandomAccessStreamWithContentType;
interface Windows.Storage.Streams.IContentTypeProvider;
interface Windows.Storage.Streams.IRandomAccessStream;
interface Windows.Storage.Streams.IOutputStream;
interface Windows.Foundation.IClosable;
interface Windows.Storage.Streams.IInputStream;
}
[
activatable(Windows.Foundation.UniversalApiContract, 1.0),
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.Media.SpeechSynthesis.IInstalledVoicesStatic2, Windows.Foundation.UniversalApiContract, 5.0)
]
runtimeclass SpeechSynthesizer
{
[default] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer;
interface Windows.Foundation.IClosable;
[contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.SpeechSynthesis.ISpeechSynthesizer2;
}
}
} }
} }