mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +00:00
WIN32: Support using additional OneCore voices for text to speech
This commit is contained in:
parent
af4fb28dd9
commit
835cb919e5
@ -462,7 +462,11 @@ void WindowsTextToSpeechManager::updateVoices() {
|
||||
ISpObjectTokenCategory *cpCategory;
|
||||
HRESULT hr = CoCreateInstance(CLSID_SpObjectTokenCategory, NULL, CLSCTX_ALL, IID_ISpObjectTokenCategory, (void**)&cpCategory);
|
||||
if (SUCCEEDED(hr)) {
|
||||
hr = cpCategory->SetId(SPCAT_VOICES, FALSE);
|
||||
hr = cpCategory->SetId(L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech_OneCore\\Voices", FALSE);
|
||||
if (!SUCCEEDED(hr)) {
|
||||
hr = cpCategory->SetId(SPCAT_VOICES, FALSE);
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
hr = cpCategory->EnumTokens(NULL, NULL, &cpEnum);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user