Sorry. Not working too.
Command Line
Instructions on how to integrate the Command Line utility within Home Assistant.
Sorry. Not working too.
Please check your logs (home-assistant.log and maybe /var/log/syslog) to find the problem
@doudz its possible to combine this with weather component, and create one automation , for when it´s morning at a specific time to listen:
EXAMPLE: " hello today it will be 19 degrees, and the maxium temperature will be 22 degrees"
You are off topic. This thread is about TTS notification component. You should be looking at the documentation on how to create automation.
i know, sorry for that, but i only know if it possible, since he is the creator of the project.anyway i have removed the question of how to do. thanks
@Rodolfo_Vieira
I use the following automation to give me outside temperature every morning if I’m at home. (Sorry it’s in french )
automation:
- alias: Annonce Météo
trigger:
- platform: time
after: ‘08:30:00’
condition:
condition: state
entity_id: device_tracker.cb5a1udwt5
state: home
action:
service: notify.speak
data_template:
message: “Bonjour, il est {{ as_timestamp(now())|timestamp_custom(‘%Hh%M’) }}, la température extérieure est de {{ states.sensor.temperatureandhumidity_173_1.attributes.V_TEMP }}°.”
Thank you. Its fantastic.
Regards from Portugal.
There is now a new tts platform https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/tts
So it would be great if you could add it as a component to the main repo
I am getting error “homeassistant.bootstrap: Error during setup of component speech” any ideas what i am doing wrong. I have HA all in one. If i use doudz code i am not able to start HA. It gives error " “/home/hass/.homeassistant/custom_components/notify/speech.py”, line 23
Dec 17 12:51:22 Homeserver hass[4355]: “”“Get the tts notification service.”""
Dec 17 12:51:22 Homeserver hass[4355]: ^
Dec 17 12:51:22 Homeserver hass[4355]: IndentationError: expected an indented block
Dec 17 12:51:22 Homeserver systemd[1]: home-assistant.service: main process exited, code=exited, status=1/FAILURE"
I am using code from zouden and now my HA starts but with component speech error.
I just upgrade the code to use the new tts platform
I’ll share the files soon
new code following the tts platform
Note that it requires a media_player to work, unless the previous version that use aplay internally. now to play using local audio system I use the vlc component. Since my HA is headless, I installed vlc-nox.
https://github.com/doudz/home-assistant/blob/dev/homeassistant/components/tts/picotts.py
you have to copy the file in custom_componens/tts/
you had actually 2 components in 1.
the tts and the player.
is aplay something that is default?
bacause then you could make a mediaplayer component with aplay.
sure I could make a media_player using aplay, or as I done, you could use the already made vlc media player component
the latest version I publish use the new tts platform and doesn’t use aplay anymore
mediaplayer needs to be installed. if it is only used for tts thats a bit overkill.
How do you do that? I added this to my configuration.yaml but it is not working.
media_player:
- platform: vlc
Do I need to install the player via SSH first?
yes you need to install vlc first, if you are on debian like, use sudo apt install vlc
or sudo apt install vlc-nox
on headless system
mediaplayer needs to be installed. if it is only used for tts thats a bit overkill.
I agree it’s a bit overkill but so much flexible
if you really want a lite weight tts, you can use the command line notify (the example use espeak but you could use pico2wave … && aplay instead)
Instructions on how to integrate the Command Line utility within Home Assistant.
Thanks. I have installed vlc-nox using sudo apt-get install vlc-nox
command and I can see a new media player under Developer Tools > States as shown here…
After I uploaded your component to the custom_components/tts/ folder, I added this in my configuration.yaml…
tts:
platform: picotts
Then I added this under action in one of my automations
- service: tts.picotts_say
data:
message: "Welcome home master"
When i trigger the automation, nothing happens. It just goes silence.
Thanks. I have installed vlc-nox using
sudo apt-get install vlc-nox
command and I can see a new media player under Developer Tools > States as shown here…After I uploaded your component to the custom_components/tts/ folder, I added this in my configuration.yaml…
tts: platform: picotts
Then I added this under action in one of my automations
- service: tts.picotts_say data: message: "Welcome home master"
When i trigger the automation, nothing happens. It just goes silence.
Just to be sure, try to define the language in configuration.yaml language: ‘en-US’