#Shopping List Setup

1 messages · Page 1 of 1 (latest)

odd sparrow
#

Sure it's simpler than you might think. Assuming you have MQTT setup and shared between HA and Rhasspy, I added this to my sentences.ini:

[AddToShoppingList]
add {object} to [the] shopping list
add {object} to [my] shopping list

Then added the following automation to Home Assistant:

description: Voice Control on/off states for all lights
trigger:

  • platform: mqtt
    topic: hermes/intent/AddToShoppingList
    condition: []
    action:
  • service: shopping_list.add_item
    data:
    name: >-
    {{ input_item |replace("add ","")|replace(" to the shopping
    list","")|replace("to my shopping list","")|replace("to shopping
    list","") }}
    variables:
    input_item: "{{ trigger.payload_json.rawInput }}"
    mode: single
#

In the Rhasspy settings I'm using Kaldi and enabled the Open Transcription Mode checkbox, which should require some additional downloads

sterile umbra
#

okay, i see. there might be a slight issue there because i had to switch to deepspeech in order for rhasspy to work for me, so ill have to see about setting up open transcription on it, which hopefully wont be too hard

odd sparrow
#

Ah there is a checkbox for it but I had trouble getting deepspeech to understand me for some reason and found Kaldi to be more accurate. They both worked with a simple set and click download for me though so I likely won't be much help debugging

sterile umbra
#

i got the open transcription file to download, now time to set it up and see if it works!

odd sparrow
#

Nice! Just fyi, after playing with it a bit more now, it's super flaky. Worked a few times at first setup but probably because I used simple words like apples to test. Avocados came in as ever powders and most other words just don't work. There's probably some better configuration here

sterile umbra
#

possibly. im no code guru here so i wont be much help 😅

odd sparrow
#

I'm unsure if it's the intent that's causing it to fail or if it's the speech to text. Probably both but yeah same here plus quite new to this type of thing

sterile umbra
#

my guess would be the speech to text side causing the issue. to a computer i could see how avocades could be misheard as ever powders

odd sparrow
#

Yeah looking at the logs, I am seeing loads of misheard words. It's mostly close but because it's not exactly right it just doesn't get it

#

I tried to shorten the sentences to allow for add ... to list for simplicity but even that doesn't work well