[1166] | 1 | /**
|
---|
| 2 | * This file is part of the mingw-w64 runtime package.
|
---|
| 3 | * No warranty is given; refer to the file DISCLAIMER within this package.
|
---|
| 4 | */
|
---|
| 5 | #include <winapifamily.h>
|
---|
| 6 |
|
---|
| 7 | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
---|
| 8 |
|
---|
| 9 | #ifndef _SAPI_VER
|
---|
| 10 | #if _WIN32_WINNT >= 0x0601
|
---|
| 11 | #define _SAPI_VER 0x54
|
---|
| 12 | #elif _WIN32_WINNT >= 0x0600
|
---|
| 13 | #define _SAPI_VER 0x53
|
---|
| 14 | #else
|
---|
| 15 | #define _SAPI_VER 0x51
|
---|
| 16 | #endif
|
---|
| 17 | #endif
|
---|
| 18 |
|
---|
| 19 | #include <mmsystem.h>
|
---|
| 20 |
|
---|
| 21 | #define SPDUI_EngineProperties L"EngineProperties"
|
---|
| 22 | #define SPDUI_AddRemoveWord L"AddRemoveWord"
|
---|
| 23 | #define SPDUI_UserTraining L"UserTraining"
|
---|
| 24 | #define SPDUI_MicTraining L"MicTraining"
|
---|
| 25 | #define SPDUI_RecoProfileProperties L"RecoProfileProperties"
|
---|
| 26 | #define SPDUI_AudioProperties L"AudioProperties"
|
---|
| 27 | #define SPDUI_AudioVolume L"AudioVolume"
|
---|
| 28 | #define SPDUI_UserEnrollment L"UserEnrollment"
|
---|
| 29 | #define SPDUI_ShareData L"ShareData"
|
---|
| 30 | #define SPDUI_Tutorial L"Tutorial"
|
---|
| 31 | #define SPREG_USER_ROOT L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech"
|
---|
| 32 | #define SPREG_LOCAL_MACHINE_ROOT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech"
|
---|
| 33 | #define SPCAT_AUDIOOUT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput"
|
---|
| 34 | #define SPCAT_AUDIOIN L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput"
|
---|
| 35 | #define SPCAT_VOICES L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices"
|
---|
| 36 | #define SPCAT_RECOGNIZERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Recognizers"
|
---|
| 37 | #define SPCAT_APPLEXICONS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AppLexicons"
|
---|
| 38 | #define SPCAT_PHONECONVERTERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\PhoneConverters"
|
---|
| 39 | #define SPCAT_TEXTNORMALIZERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\TextNormalizers"
|
---|
| 40 | #define SPCAT_RECOPROFILES L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\RecoProfiles"
|
---|
| 41 |
|
---|
| 42 | #define SPMMSYS_AUDIO_IN_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput\\TokenEnums\\MMAudioIn\\"
|
---|
| 43 | #define SPMMSYS_AUDIO_OUT_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput\\TokenEnums\\MMAudioOut\\"
|
---|
| 44 | #define SPCURRENT_USER_LEXICON_TOKEN_ID L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\CurrentUserLexicon"
|
---|
| 45 |
|
---|
| 46 | #define SPTOKENVALUE_CLSID L"CLSID"
|
---|
| 47 | #define SPTOKENKEY_FILES L"Files"
|
---|
| 48 | #define SPTOKENKEY_UI L"UI"
|
---|
| 49 | #define SPTOKENKEY_ATTRIBUTES L"Attributes"
|
---|
| 50 |
|
---|
| 51 | #if _SAPI_VER >= 0x53
|
---|
| 52 | #define SPCURRENT_USER_SHORTCUT_TOKEN_ID L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\CurrentUserShortcut"
|
---|
| 53 | #define SPREG_SAFE_USER_TOKENS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\UserTokens"
|
---|
| 54 |
|
---|
| 55 | #define SPTOKENKEY_RETAINEDAUDIO L"SecondsPerRetainedAudioEvent"
|
---|
| 56 | #define SPTOKENKEY_AUDIO_LATENCY_WARNING L"LatencyWarningThreshold"
|
---|
| 57 | #define SPTOKENKEY_AUDIO_LATENCY_TRUNCATE L"LatencyTruncateThreshold"
|
---|
| 58 | #define SPTOKENKEY_AUDIO_LATENCY_UPDATE_INTERVAL L"LatencyUpdateInterval"
|
---|
| 59 | #endif
|
---|
| 60 |
|
---|
| 61 | #define SPVOICECATEGORY_TTSRATE L"DefaultTTSRate"
|
---|
| 62 |
|
---|
| 63 | #define SPPROP_RESOURCE_USAGE L"ResourceUsage"
|
---|
| 64 | #define SPPROP_HIGH_CONFIDENCE_THRESHOLD L"HighConfidenceThreshold"
|
---|
| 65 | #define SPPROP_NORMAL_CONFIDENCE_THRESHOLD L"NormalConfidenceThreshold"
|
---|
| 66 | #define SPPROP_LOW_CONFIDENCE_THRESHOLD L"LowConfidenceThreshold"
|
---|
| 67 | #define SPPROP_RESPONSE_SPEED L"ResponseSpeed"
|
---|
| 68 | #define SPPROP_COMPLEX_RESPONSE_SPEED L"ComplexResponseSpeed"
|
---|
| 69 | #define SPPROP_ADAPTATION_ON L"AdaptationOn"
|
---|
| 70 |
|
---|
| 71 | #define SPPROP_PERSISTED_BACKGROUND_ADAPTATION L"PersistedBackgroundAdaptation"
|
---|
| 72 | #define SPPROP_PERSISTED_LANGUAGE_MODEL_ADAPTATION L"PersistedLanguageModelAdaptation"
|
---|
| 73 | #define SPPROP_UX_IS_LISTENING L"UXIsListening"
|
---|
| 74 | #define SPTOPIC_SPELLING L"Spelling"
|
---|
| 75 | #define SPWILDCARD L"..."
|
---|
| 76 | #define SPDICTATION L"*"
|
---|
| 77 | #define SPINFDICTATION L"*+"
|
---|
| 78 |
|
---|
| 79 | #define SPFEI_FLAGCHECK ((1ull << SPEI_RESERVED1) | (1ull << SPEI_RESERVED2))
|
---|
| 80 | #define SPFEI_ALL_TTS_EVENTS (0x000000000000FFFEull | SPFEI_FLAGCHECK)
|
---|
| 81 | #define SPFEI_ALL_SR_EVENTS (0x003ffffc00000000ull | SPFEI_FLAGCHECK)
|
---|
| 82 | #define SPFEI_ALL_EVENTS 0xefffffffffffffffull
|
---|
| 83 | #define SPFEI(SPEI_ord) ((1ull << SPEI_ord) | SPFEI_FLAGCHECK)
|
---|
| 84 | #define SP_GETWHOLEPHRASE SPPR_ALL_ELEMENTS
|
---|
| 85 | #define SPRR_ALL_ELEMENTS SPPR_ALL_ELEMENTS
|
---|
| 86 |
|
---|
| 87 | #if _SAPI_VER >= 0x54
|
---|
| 88 | #include "sapi54.h"
|
---|
| 89 | #elif _SAPI_VER >= 0x53
|
---|
| 90 | #include "sapi53.h"
|
---|
| 91 | #else
|
---|
| 92 | #include "sapi51.h"
|
---|
| 93 | #endif
|
---|
| 94 |
|
---|
| 95 | #endif
|
---|
| 96 |
|
---|