NaturalVoiceSAPIAdapter icon indicating copy to clipboard operation
NaturalVoiceSAPIAdapter copied to clipboard

UUsage with Windows.Media.SpeechSynthesis

Open w0615 opened this issue 5 months ago • 1 comments

Hello guys. My apologies if this is not the correct place to post this. I was wondering if it is possible to use this tts adapter on a WinUI3 app which uses Windows.Media.SpeechSynthesis to read text. When I try to get the available voices on my WinUI3 app I can only see the one core voices I have installed via the language settings menu. I assume this is because Windows.Media.SpeechSynthesis is using one core voices as the tts engine, and it appears it is not possible to switch the engine.

I was able to access the voices through my screen reader (NVDa) but I'm not sure how can I access the voices on my WinUI3 app. Thanks in advance, any help will be appreciated.

w0615 avatar Jul 08 '25 00:07 w0615

Yes, Windows.Media.SpeechSynthesis is using OneCore voices, instead of SAPI5 voices. OneCore voices seem to be Microsoft-only, as there seems to be no third-party OneCore voices yet. From the documentation:

Only Microsoft-signed voices installed on the system can be used to generate speech with a SpeechSynthesizer.

If you want to use SAPI5 voices in .net, you may try System.Speech.Synthesis.SpeechSynthesizer instead.

gexgd0419 avatar Jul 08 '25 03:07 gexgd0419