Comments (6)
hi !
i've another way to say a message by rhasspy in my automations :
action:
- service: rest_command.tts_rhasspy
data:
site: '{% set site = trigger.event.data._site_id %} {{ site }}'
lemessage: il est {{ now().hour }} heures et {{ now().minute }} minutes
and in the configuration of HA :
rest_command:
tts_rhasspy:
url: 'http://ip_of_your_HA_with_rhasspy:12101/api/text-to-speech?SiteId={{ site }}'
method: 'POST'
headers:
content_type: 'text/plain'
payload: '{{ lemessage }}'
from rhasspy.
and, i suggest to use another topic just to say something : see the https://rhasspy.readthedocs.io/en/latest/reference/#text-to-speech
hermes/tts/say
from rhasspy.
@alainvdu69 I have tried using the hermes/tts/say
topic and recieved the same results using MQTT. The way you are doing it is using events instead of the intent api correct? I have not seen a way to use {{trigger.event....}}
in intent_scripts. It seems to always throw an error when I do that.
from rhasspy.
yes, i'm using the events in HA and all are in automations
from rhasspy.
Yea see thats the difference then. I am using intents and intent_sripts with MQTT. I can see MQTT publishing the wav file, but somehow it just never gets played. When I try to use a trigger
in intent_scripts I get a couple of errors
I guess I need to find a way to get siteId from the MQTT message that is published. I may have an idea on that.
from rhasspy.
yes, perhaps simply {{_intent.siteId}} ?
from rhasspy.
Related Issues (20)
- Add a noise reduction system to Rhasspy and eliminate extraneous sounds HOT 6
- Picovoice/porcupine - react demo not working
- Extension request for oobabooga web UI
- Issue with my localhost:12101
- Aplay error after upgrade to home assistant 2023.6.1 HOT 1
- curl (22) the requested url returned error 404 HOT 3
- libgfortran4 no longer available via apt for Raspberry Pi OS HOT 1
- AsrException: 'str' object has no attribute 'get' HOT 1
- wyoming-piper cuda
- MacOS Build HOT 1
- When TTS is set to remote http the AudioPlayFinished come to early
- Chromebook offline
- ./configure fails on MacBook: error: ATLAS is required for Kaldi
- How to change the sound effect files? HOT 1
- Snowboy link broken in docs
- Intent using open transcription as slot state
- Different event messages based on intent recognized or not?
- aplay rhasspy problem HOT 1
- HTTP API /api/text-to-speech ignores voice parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rhasspy.