ottobjorkland / SmartVoiceAssistant

A smart AI voice assistant with multi-language support and long-term memory. Currently best for Swedish and English. Compatible with Windows and Raspberry Pi. The assistant can use various functions and tools to answer questions (Google, Wolfram Alpha, etc.). Based on OpenAI's GPT-models, Google STT and TTS, and ElevenLabs TTS.
20 stars 2 forks source link

Czech lang not working #1

Open Matejmikulas opened 4 months ago

ottobjorkland commented 4 months ago

Hello, and thank you for giving me feedback on my project.

When it comes to implementing other languages into STT and TTS in the program, try changing the Swedish lines of code into Czech in both the main program (VoiceAssistant_5.3.py) and settings file (CustomSettings.py). For TTS, it is pretty easy, just go to the following line in CustomSettings.py and then insert the Czech voice name and SSML gender from Google Cloud.

These are your options:

- Czech (Czech Republic)
Standard    
cs-CZ
cs-CZ-Standard-A
FEMALE

- Czech (Czech Republic)
WaveNet 
cs-CZ
cs-CZ-Wavenet-A
FEMALE

To implement Czech STT can be a bit more tricky that needs more programming skills and research about Google Cloud's API. But most of it is labeled in VoiceAssistant_5.3.py as "Swedish", "SV", "SE" or "SWE", which are keywords you can find and replace with CTRL+F for other languages.

Again, thank you, and I hope to hear from you soon. Feel free to ask anything.

Best regards, Otto