chatziko / ha-google-cloud-stt Goto Github PK
View Code? Open in Web Editor NEWUse Google Cloud Speech-to-Text in Home Assistant.
Use Google Cloud Speech-to-Text in Home Assistant.
sorry my mistake, everything works fine!
Hi, i'm getting the following error message when validating the yaml file:
Package stt setup failed. Component stt cannot be merged. Expected a dict.
yaml:
stt:
- platform: google_cloud_stt
key_file: google_service_account.json
model: command_and_search
Fixed
Google charged me $19 for speech-to-text on the 23rd-31st Dec for 609 minutes usage over 6200 requests. I didn't spend 10 hours talking, and nor did I use if that many times since I installed on the 28th. Do you have any thoughts on what might be happening? I have it hooked up to a Pi running satellite and 2 M5 atom echo devices. It looks like the bulk of the costs were for that first install day, but I can't find a graph that shows calls rather than latency, etc. It seems to have settled down since then, but is possibly charging me a few cents a day, whereas I would expect to be within the free quota.
I've not had to use Google's billing much before, so I'm trying to put in some limits, but they don't make it easy.
Platform error tts.google_cloud_stt - No module named 'custom_components.google_cloud_stt.tts'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 887, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/init.py", line 316, in async_handle_reload_all
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot quick reload all YAML configurations because the configuration is not valid: Platform error tts.google_cloud_stt - No module named 'custom_components.google_cloud_stt.tts'
I have google_cloud_stt configured as my speech to text agent in Home Assistant's Voice Assistant. However, there are no other languages available (like Hindi) besides different variations of English. I have tried using both command_and_search and latest_short models both of which support a ton of languages besides English and its variants. Is this a limitation of Home Assistant or the custom integration?
I'm receiving this error in my HA logs. Maybe some HA breaking change? I'm currently running with 2023.7.1.
Logger: homeassistant.helpers.config_validation
Source: helpers/config_validation.py:1065
First occurred: 9 de julho de 2023 às 13:01:36 (1 occurrences)
Last logged: 9 de julho de 2023 às 13:01:36
The stt integration does not support any configuration parameters, got [{'platform': 'google_cloud_stt', 'key_file': 'google-cloud-service-account.json', 'model': 'latest_short'}]. Please remove the configuration parameters from your configuration.
Hey,
would it be possible to allow phraseSets and customClasses? This would improve the accuracy of speech recognition.
Maby we could specify this in configuration.yaml.
Here is an example: https://cloud.google.com/speech-to-text/docs/adaptation?hl=en
And for more info, see: https://cloud.google.com/speech-to-text/docs/reference/rest/v1/RecognitionConfig#SpeechAdaptation
Thanks for reading!
Could be useful to have this in the FAQ. Thanks.
I haven't enabled the stt api here:
https://console.cloud.google.com/marketplace/product/google/speech.googleapis.com
this is just for someone with the same problem
Did anyone encounter this issue? Home Assistant v2024.6.2 and Atom Echo:
[10:03:23][D][voice_assistant:502]: State changed from STOPPING_MICROPHONE to AWAITING_RESPONSE
[10:03:23][D][voice_assistant:625]: Event Type: 0
[10:03:23][E][voice_assistant:755]: Error: stt-stream-failed - Unexpected error during speech-to-text
[10:03:23][D][voice_assistant:618]: Signaling stop...
I have configured STT plugin (via hacs + configuration.yaml:
stt:
and followed Google Cloud tts/sst guide. The googlecloud.json is send to config folder where configuration.json is visible. I can select google_cloud_stt in Assist's Speech to text so from HA perspective I am good to go.
Whenever I try to speak the voice is automatically shut down and error comes:
Error: stt-stream-failed - Unexpected error during speech-to-text
I tried with Piper and it is working (of course it is not accurate with my local language and works 5-6 seconds until output)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.