GithubHelp home page GithubHelp logo

Comments (6)

alainvdu69 avatar alainvdu69 commented on August 11, 2024

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.

alainvdu69 avatar alainvdu69 commented on August 11, 2024

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.

jared-bloomer avatar jared-bloomer commented on August 11, 2024

@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.

image

from rhasspy.

alainvdu69 avatar alainvdu69 commented on August 11, 2024

yes, i'm using the events in HA and all are in automations

from rhasspy.

jared-bloomer avatar jared-bloomer commented on August 11, 2024

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

image

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.

alainvdu69 avatar alainvdu69 commented on August 11, 2024

yes, perhaps simply {{_intent.siteId}} ?

from rhasspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.