synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
942 stars 101 forks source link

Support for Google Cloud STT #179

Closed daniele-athome closed 4 years ago

daniele-athome commented 4 years ago

I'll make another PR with documentation if you are interested in this patch. I'm unsure on how to use the language code from the profile (e.g. "en") when Google APIs need a locale code (e.g. "en-US"). Do I have that information in the profile?

synesthesiam commented 4 years ago

I've added a "locale" field to the profiles with values like fr_FR and en_US. Substituting the underscore should get you the correct value for Google STT.

Would you like to add that in before this is merged?

daniele-athome commented 4 years ago

Would you like to add that in before this is merged?

Sure! I've modified the PR.

daniele-athome commented 4 years ago

I've added documentation.

synesthesiam commented 4 years ago

Looks great, thank you very much!

daniele-athome commented 4 years ago

I realized I've made a mistake in the log message for the documentation commit: "TTS" instead of "STT". Sorry... you can fix it if you'd like.