techygrrrl / multilang-twitch-tts

👂 A multilingual text-to-speech (TTS) app for Windows
https://blog.techygrrrl.stream/multilingual-tts-twitch
6 stars 0 forks source link

The application spells out the name of the person writing the message instead of reading the nickname more natural. #9

Open Nikos4Life opened 8 months ago

Nikos4Life commented 8 months ago

Hi there!

The application works great but there is a problem reading the nickname of the user who sent the message. Instead of pronouncing it as a word. It spells it out, making it very difficult to understand who is sending the message.

Thanks 🙌 !

techygrrrl commented 8 months ago

Hi @Nikos4Life, the app uses Microsoft's Speech Synthesis API's which is functionality built into Windows (tested on Windows 11), and it doesn't seem to do very well with usernames, mostly because there are no spaces and words are separated using UpperCamelCase and often there are initials and numbers. This is not something I have control over. I've built the word replacement feature as a workaround. What I tend to do for common chatters is use the word replacement feature.

You can test what it would sound like with the default TTS voice by running the following in the command prompt:

PowerShell -Command Add-Type -AssemblyName "System.Speech; (New-Object System.Speech.Synthesis.Speech.Synthesizer).Speak('Nikos4Life');"

You can see how to add a word replacement in this video: https://blog.techygrrrl.stream/multilingual-tts-twitch#heading-watch-the-demo

Thanks