Skip to content
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

Google TTS failing #38585

Closed
bigboban opened this issue Aug 6, 2020 · 9 comments
Closed

Google TTS failing #38585

bigboban opened this issue Aug 6, 2020 · 9 comments

Comments

@bigboban
Copy link

bigboban commented Aug 6, 2020

Google TTS failing in most cases

In older builds Google TTS was fine. Last weeks a had problem with #38339, some messages was scrambled, but all messages was played.

After updating to 113.3 most of messages are lost. Few are played OK bud most not. I see errors in log.

Note: I deleted all content from config/tts after updating to 113.3.

Environment

  • Home Assistant Core release with the issue: 0.113.3
  • Last working Home Assistant Core release (if known): 0.113.2
  • Operating environment (OS/Container/Supervised/Core): Hassio
  • Integration causing this issue: Google TTS
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

tts:
  - platform: google_translate
    service_name: google_say
    language: cs
    base_url: https://myserver

Traceback/Error logs

2020-08-06 09:00:00 DEBUG (MainThread) [aioesphomeapi.connection] obyvak.local: Got message of type <class 'api_pb2.SensorStateResponse'>: key: 3676087063
state: -60.0

2020-08-06 09:00:00 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 400, in async_file_to_mem
    data = await self.hass.async_add_executor_job(load_speech)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 396, in load_speech
    with open(voice_file, "rb") as speech:
FileNotFoundError: [Errno 2] No such file or directory: '/config/tts/6b3ef1e5377771365887e7f49f3729c73ddf5a39_cs_-_google_translate.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 403, in async_file_to_mem
    raise HomeAssistantError(f"Can't read {voice_file}")
homeassistant.exceptions.HomeAssistantError: Can't read /config/tts/6b3ef1e5377771365887e7f49f3729c73ddf5a39_cs_-_google_translate.mp3
2020-08-06 09:00:00 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: name=homeassistant, message=['Error doing job: Task exception was never retrieved'], level=ERROR, source=['components/tts/__init__.py', 403], timestamp=1596697200.4495206, exception=Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 400, in async_file_to_mem
    data = await self.hass.async_add_executor_job(load_speech)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 396, in load_speech
    with open(voice_file, "rb") as speech:
FileNotFoundError: [Errno 2] No such file or directory: '/config/tts/6b3ef1e5377771365887e7f49f3729c73ddf5a39_cs_-_google_translate.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 403, in async_file_to_mem
    raise HomeAssistantError(f"Can't read {voice_file}")
homeassistant.exceptions.HomeAssistantError: Can't read /config/tts/6b3ef1e5377771365887e7f49f3729c73ddf5a39_cs_-_google_translate.mp3
, count=1, first_occurred=1596697200.4495206>

Additional information

@frenck
Copy link
Member

frenck commented Aug 6, 2020

Could you please share an exact example message that doesn't work?

@probot-home-assistant
Copy link

Hey there @awarecan, mind taking a look at this issue as its been labeled with an integration (google_translate) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@golles

This comment has been minimized.

@Cheerion

This comment has been minimized.

@DubhAd

This comment has been minimized.

@Cheerion

This comment has been minimized.

@frenck
Copy link
Member

frenck commented Nov 6, 2020

So the latest errors reported in this issue, are not related to the original report in this issue. Please don't stack up different issues. Thanks 👍

I've marked them off-topic for that reason.

@frenck
Copy link
Member

frenck commented Nov 6, 2020

@bigboban Since you haven't provided the requested data since Aug 6, I'm going to assume this issue is resolved for you and therefore closing it. If you still experience the reported issue, please, feel free to open up a new issue and supply the requested data (or even better, a reproduction scenario).

Thanks 👍

@frenck frenck closed this as completed Nov 6, 2020
@bigboban
Copy link
Author

bigboban commented Nov 6, 2020

TTS fixed for me long ago. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants