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

Pico tts broken on hassio #24749

Closed
rradar opened this issue Jun 25, 2019 · 16 comments
Closed

Pico tts broken on hassio #24749

rradar opened this issue Jun 25, 2019 · 16 comments

Comments

@rradar
Copy link

rradar commented Jun 25, 2019

Home Assistant release with the issue:

0.94.4

Last working Home Assistant release (if known):
Only with pip install
Never worked on hassio

Operating environment (Hass.io/Docker/Windows/etc.):

  • Tried with the offical hassio image for raspberry 3
  • with hassio install on raspbian lite (also on a raspberry 3)
  • and a hassio install on a generic linux machine (debian 9 on amd64)

Three times no luck

Component/platform:

picotts

Description of problem:

Even picotts is installed on the base system (for example on raspian lite or debian 9) the component can't come up in home assistant (hassio based). I'm not sure if there is any (special) step needed which is not written in the docs (https://www.home-assistant.io/components/picotts/) or that picotts is just broken on hassio?

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

# Example configuration.yaml entry
tts:
  - platform: picotts

Traceback (if applicable):

‘pico2wave’ was not found

00:01 PM components/picotts/tts.py (ERROR)

Additional information:

+1 for cloud free tts

@rradar
Copy link
Author

rradar commented Jun 25, 2019

I don't know if this one here (https://pypi.org/project/py-picotts/) has any relevance and that picotts could be included hassle free as a bundled component (including picotts itself and not rely on system packages) with py-picotts?

@rradar rradar changed the title Unbreak pico tts for hassio installs Pico tts broken on hassio Jun 25, 2019
@rradar
Copy link
Author

rradar commented Jul 16, 2019

In 0.95.4 with hassio picotts is broken too

@rradar
Copy link
Author

rradar commented Aug 3, 2019

Broken in 0.96.x as well 😿

@rradar
Copy link
Author

rradar commented Aug 10, 2019

Guess what... pico tts still doesn't work with 0.97 and hassio 😞

I wonder what's needed to have a local tts with hassio...

@rradar
Copy link
Author

rradar commented Aug 29, 2019

pico tts is not available for hassio 0.98

No cloud free 🚫☁️ tts available for hassio at the moment (as far as I know)

@rradar
Copy link
Author

rradar commented Sep 20, 2019

ha 0.99 + hassio + picotts = broken 💔

@rradar
Copy link
Author

rradar commented Oct 12, 2019

The 100th release of home assistant still doesn't play at all with hassio & picotts 😭

@rradar
Copy link
Author

rradar commented Nov 6, 2019

0.101 👎

@jchambers2012
Copy link

jchambers2012 commented Nov 15, 2019

Should this issue be moved to or a new issue opened under the hassio issue tracker? (https://github.com/home-assistant/hassio/issues) or hassio-homeassistant (https://github.com/home-assistant/hassio-homeassistant)

@frenck
Copy link
Member

frenck commented Nov 22, 2019

This is not broken for Hass.io specific, but for Docker as well @jchambers2012, I would say: no. Besides, the repository your pointing to is the Hass.io Supervisor, which is not responsible for these things.

@figurcoe
Copy link

figurcoe commented Jan 19, 2020

Hi,
I stumbled across a seemingly working implementation for picoTTS.
https://github.com/Poeschl/Hassio-Addons/tree/master/picoTTS
https://github.com/Poeschl/ha-picoTTS_remote

Together with the pending pull-request, this is working for me. Might be worth a check and potentially an inclusion with the add-ons. Would be nice to have an offline tts service again.

Edit 2020-02-08:
Correct link: Repo. Pull Request got accepted, working flawlessly ever since from my perspective.

@kngharv
Copy link

kngharv commented Apr 14, 2020

You said that the picotts never worked on hass.io, right?

Picotts rely on OS-level native library, which the picotts component page clearly stated.

The problem is that both hass.io distribution and docker distribution in effect put a wrapper, in effect to shield the user from the underlying operating system. This in normal times made life very convenient for the user to use home assistant, but the user will be stuck with whatever the native libraries the home assistant come with.

In an idea world, you want the home assistant components COME with the native libraries built in. In most cases,, this is true.

For some reason, picotts is one component which native library is not built-in. You will need to install native library at the OS level to make picotts to work.

In my case, I went into docker container itself and install the library inside the docker to make it to work.

@meichthys
Copy link
Contributor

meichthys commented Jun 19, 2020

There is a way to use Pico TTS on Hassio (All-In-One), but it requires a custom Add-On and a HACS integration. It's not ideal, but it does work well right now in HomeAssistant 0.111

Thanks @Poeschl !

My working setup:

  1. Install the custom Pico tts Home-Assistant Add-On

    • Add the custom repository to the Home-Assistant 'store':
      image

    • Install and start the Add-On - no configuration necessary
      image

  2. Install the corresponding HACS integration:
    image

  3. Use the Pico tts service as you normally like:
    image
    or by a service call like..
    image

  4. Revel in the awesomeness of open source & local tts!

Note: If the tts service doesn't seem to work for you, you'll need to make sure that your base_url for home-assistant does not use ssl (https). This may be a deal breaker for some people, but it shouldn't be if you use something like the NGINX Proxy Manager add-on that allows your Home-Assistant to access your instance using https even though home-assistant itself is using http. And, if you still want to be that guy that wants to use https in his internal network, you can just add a host override in your router to point any internal home-assistant traffic to NGINX Proxy manager - thus giving you https everywhere while home-assistant itself can still call the pico service happily.

@tomlut
Copy link

tomlut commented Aug 6, 2020

* Add the custom repository to the Home-Assistant 'store':

Rather than a screenshot with lines over the URL could you please include the repository URL as a link?

@Poeschl
Copy link
Contributor

Poeschl commented Aug 6, 2020

Take a look there 😉: https://github.com/Poeschl/Hassio-Addons

@github-actions
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

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

9 participants