sapi_classes.idl 2.51 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
/*
 * Speech API (SAPI) classes.
 *
 * Copyright (C) 2017 Huw Davies
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

/*
 * These are the classes from the typelib in sapiddk.idl.  They don't get
 * registered because the typelib is not registered.
 */

#pragma makedep register

[
    uuid(d9f6ee60-58c9-458b-88e1-2f908fd7f87c),
    helpstring("Data Key"),
    progid("SAPI.SpDataKey.1"),
    vi_progid("SAPI.SpDataKey"),
    threading(both)
]
coclass SpDataKey
{
    interface ISpRegDataKey;
    [default] interface ISpDataKey;
}

[
    uuid(3918d75f-0acb-41f2-b733-92aa15bcecf6),
    helpstring("Object Token Enumerator"),
    progid("SAPI.SpObjectTokenEnum.1"),
    vi_progid("SAPI.SpObjectTokenEnum"),
    threading(both)
]
coclass SpObjectTokenEnum
{
    interface ISpObjectTokenEnumBuilder;
    [default] interface IEnumSpObjectTokens;
}
53

54 55 56 57 58 59 60 61 62 63 64 65 66
[
    uuid(ef411752-3736-4cb4-9c8c-8ef4ccb58efe),
    helpstring("Object Token"),
    progid("SAPI.SpObjectToken.1"),
    vi_progid("SAPI.SpObjectToken"),
    threading(both)
]
coclass SpObjectToken
{
    interface ISpObjectToken;
    [default] interface ISpDataKey;
}

67 68 69 70 71 72 73 74 75 76 77 78 79 80
[
    uuid(715d9c59-4442-11d2-9605-00c04f8ee628),
    helpstring("Speech Stream"),
    progid("SAPI.SpStream.1"),
    vi_progid("SAPI.SpStream"),
    threading(both),
    restricted,
    hidden
]
coclass SpStream
{
    interface ISpStream;
}

81 82 83 84 85 86 87 88 89 90 91 92
[
    uuid(96749377-3391-11d2-9ee3-00c04f797396),
    helpstring("Speech Voice"),
    progid("SAPI.SpVoice.1"),
    vi_progid("SAPI.SpVoice"),
    threading(both)
]
coclass SpVoice
{
    interface ISpVoice;
    [default] interface ISpeechVoice;
}
93 94 95 96 97 98 99 100 101 102 103 104 105

[
    uuid(947812b3-2ae1-4644-ba86-9e90ded7ec91),
    helpstring("SpFileStream"),
    progid("SAPI.SpFileStream.1"),
    vi_progid("SAPI.SpFileStream"),
    threading(both)
]
coclass SpFileStream
{
    interface ISpStream;
    [default] interface ISpeechFileStream;
}