Windows Speech Synthesis

ZiraPro sounds so much more natural than Robotic Anna but it doesn't work when I click the Speech button in Microsoft Word. When I choose Hazel, it reads as Anna. When I choose ZiraPro, it's completely silent. Both voices read the preview text in Control Panel's 'Text to Speech' options properly. – ADTC Aug 14 '15 at 3:17. Enter text and play it back as speech with different voices and settings. Enter text to be turned into speech. Speak Pause Cancel.

Active2 months ago

I am currently trying to develop a speech synthesis UWP DLL using the namespace Windows::Media::SpeechSynthesis. I read this documentation and the Microsoft page dedicated to the namespace. I tried to implement the namespace in code.

Header file

Cpp file

I can load the DLL file and the function I exported. However, when I try to call the function, I get following error

I tried the example on the Microsoft page but it some how doesn't work and I can't figure out why. I also tested the Windows Universal Samples available on Github which is an UWP app regrouping Text-To-Speech and Speech Recognition.

Has someone experienced a similar issue? Shouldn't I use an XAML element when I don't have an interface?

Edit 1

I modified the header file regarding the exportation of the function as suggested by @Peter Torr - MSFT

However, when I compile, I'm getting a new error on this line

× PDF Drive is your search engine for PDF files. As of today we have 85,805,781 eBooks for you to download for free. No annoying ads, no download limits, enjoy it and don't forget to bookmark and share the love! Best Books of the Week. Living in the Light: A guide to personal transformation. Over 2500 Free Books Online. Full Length Ebooks Free to Download as PDF Books, Epub and kindle. Every Book is Legally Licensed for your Peace of Mind. Download ebook kedokteran gratis pdf.

I researched this error and if I understood it correctly it comes from the importation of the DLL function.

In addition, I call the function like this

Which brings us here

History of speech synthesis
georges619
georges619georges619Windows Speech Synthesis
2621 gold badge3 silver badges15 bronze badges

2 Answers

In MainPage,I initialize the dll file and invoke 'ttsInitialize' function like below code.

And In Dll.h file,I initialize MediaElement like below code,and other code as same as you.

When I run the project,it works.You can try it and if you still have issues,please show the details that you initialize your dll file.

Faywang - MSFTFaywang - MSFT

I found an answer to my question. Instead of using MediaElement, I used MediaPlayer. Now it works, but I still need to figure out how to make the engine speak without limiting it in time. The Sleep( 3000 ) means that the voice will speak for 3 seconds. However, if the sentence is longer than 3 seconds, it will be cut.Here is the code of the program.

georges619georges619
2621 gold badge3 silver badges15 bronze badges

Not the answer you're looking for? Browse other questions tagged uwptext-to-speechc++-cxspeech-synthesis or ask your own question.

Active3 years, 10 months ago

So I'am trying to add a new language, spesifically norwegian, to SpeechSynthesizer, but it doesn't seem to get installed.

Found this:Add another voice into .NET Speech(But here the problem is that Czech isn't supported)

I have installed the norwegian pack from here:http://www.microsoft.com/en-us/download/details.aspx?id=27224

In my code I use this to check if it is installed:

But it only outputs:Microsoft Zira Desktop - English (United States)

Have checked the text-to-Speech tool were this is also the only option.Have also tried to log off/log on and restart the computer.

Anyone know how to fix this?

Resident Evil 2 USA rom for Nintendo 64 (N64) and play Resident Evil 2 USA on your devices windows pc, mac,ios and android! Resident evil 2 usa n64 download.

Community
ModdamanModdaman
5931 gold badge10 silver badges21 bronze badges

1 Answer

You may need to add a Speech Language to Windows 10 and set your Locale, Country, Windows display language and Speech language so they are all aligned with one of Cortana's supported locale configurations.

To confirm the settings are set correctly:

  1. Open Settings. Select Time& language, and then Region & Language.

  2. Check the Language (set as default) setting for your Windows display language. If your desired language is not available, add your desired language:

    • Click Add Language.
    • Select your desired language from the list.
    • Select the desired locale, which is the language/country combination.
    • Click on the newly selected locale and select Options.
    • Under Download language pack, click Download.
    • Under Speech, click Download.
    • After the downloads are complete (this could take several minutes), return to the Time & Language settings.
    • Click on your new language and select Set as Default.
    • NOTE: IF you changed languages, you must sign out of your account and back in for the new setting to take effect.
  3. Check the Country or region setting. Make sure the country selected corresponds with the Windows display language set in the Language setting.

  4. Return to Settings and Time & language, and then select Speech. Check the Speech language setting, and make sure it’s aligned with the previous settings.

After you have correctly done the above, your language should appear in the SpeechSynthesizer.AllVoices collection. You should then be able to assign this voice to your SpeechSynthesizer instance's Voice property:

Windows 10 Speech Synthesis

TheGuernTheGuern

Windows.media.speechsynthesis.speechsynthesizer

Not the answer you're looking for? Browse other questions tagged c#.netspeech-synthesis or ask your own question.