2024年11月24日星期日 上午3:57:24

Step by Step for text to speech

9 个月 前
#28498 引用
Step by Step for text to speech
https://community.home-assistant.io/t/step-by-step-for-text-to-speech/325608
0
9 个月 前
#28499 引用
You need two things

A TTS integration
A media player integration

If you have both of those set up then you use the tts.say service 145 that shows in Developer tools → Services. Exactly what it’s called will depend on your integration choice.

so first step is to obtain or build a media player device or server. I will be building it then on a Ubuntu platform.

media player device
The media player will be the physical device on which you want to play TTS messages. Accordingly, choose the media player integration of your device if HA supports it


media player server
I have my eye on Plex Media Server. I may try
VLC media player Telnet, now that I learn it should be separate from HA.



You must have, as mentioned above: a player integrated in the HA that creates the entity media_player.xxxxx.

or

You should have another server as a media player.You need one of the many media player integrations to connect to a supported media player device.
for examples
I am using an LMS server running on Rpi. Options: radio playback, custom music albums, TTS.
If you own Google Home, you can play TTS on this device.
The LMS server and piCorePlayer are on the local network.
That could be a Sonos speaker, a Google Home device (as a media player, not for voice control), or many many other devices. I mostly use Google Home devices as TTS targets, keeping my Sonos and LMS devices for music.

TTS service call with piper and Apple HomePod as media player

0