-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to change the "text to voice" language? #23
Comments
The app seams to use System.Speech so it should be possible I have not tried it myself but found some information earlier when researching the issue, maybe the following can help? https://stackoverflow.com/questions/29163994/adding-a-new-language-to-speechsynthesizer |
I managed to change the language by adjusting the code & making a custom build of mine:
// Original
CultureInfo keyboardLanguage = System.Windows.Forms.InputLanguage.CurrentInputLanguage.Culture;
InstalledVoice neededVoice = this.SpeechSynth.GetInstalledVoices(keyboardLanguage).FirstOrDefault();
// Force german voice
CultureInfo culture = CultureInfo.GetCultureInfo("de-DE");
InstalledVoice neededVoice = this.SpeechSynth.GetInstalledVoices(culture).FirstOrDefault(); I guess there's no way right now to change this via some some config file etc. but only by either creating a custom build like I did or by changing the default input language which I wanted to avoid for several reasons. |
I was trying to compile (with the commands Dotnet and msbuild) for portuguese (pt-pt) following @CombeeMike solution but I have a lot of errors (libraries that were installed but are not found like .NetFramework and NewtonSoft, etc.) and cannot do it - I'm googling every error but when I think I found a solution for an error another one follows. I am using Visual Studio Code last version to compile. I am a COMPLETE newbie, as you already knew!
|
@ruiefe I just now got my own fork of BabySmash updated to latest dependencies and added a couple tiny improvements. So I tried this out. I did repro the NetwonSoft dependency problems, but... BabySmash builds best via Visual Studio editions other than VSCode; So, VS 2019 resolves the NuGet package fine. But if you want to build from the
Alternately if you need to pull source again anyway, you could try building from a fork that already has signing disabled ATM like mine. |
This works pretty well, thanks for the hint; basically in the comment before we can see that it depends on the active keyboard layout. 😉
That will cause letters and |
PR available in #37. Mind related glitch found there, to be fixed at a later stage. And please help answering the question, if you know of any exception. 😉 |
I just found out that I can change the "recognized words" by editing
words.txt
, which is perfect since I can adjust them to my individual needs!The logical next step would be to add words in my (and my childs 😉) native language German. In order for this to make sense, I'd also like to hear those recognized words pronounced correctly by a "German voice".
Is it possible to change the voice to a German one by adjusting some file or windows system setting?
The text was updated successfully, but these errors were encountered: