Year of the Voice - Chapter 2: Let's talk

So I can substitute anything. Right, lets try asking:

“[squirrel] nuts car fridge [orange]”

It’s just nonsense. Which is what your aaa bbb ccc is. Give specific examples. In the forum language (English).

1 Like

Sorry Tom, you are on a wrong path. Then you don’t know that this is only a rules engine, which do a word by word comparison with further rules like |, [], <>, … (see above link as well) It is completely not relevant, which are the words here. There is no meaning behind it for the filling weorkds in this rules. Even your example would work, if there is a rule, which corresponds to this schema". But your schema doen’t exist, so my answer would be “your rule does not exist” or wrongly called. The rule I want to call is existing (see link) and I call it with the example, which (in my opinion) should work because of the optional parts and the 1:1 comparison of the words, etc.". So the question is here, why it is not working or should it work and is is perhaps because of the two word entity name or …

And of course, I gave the most specific questions, even with the link to the rule.

If perhaps only the german template is not working (or the path of calling and working with the result), it doen’t make any sense to translate them. Because then I use a rule, which is not existing or another rule, which is perhaps working but without an aswer, why this specific rule is not working. Same if you would ask someone to translate jinja2 if, then, else to another language. Then the answer would be, that it is not working, because it has to be if then else.

I appreciate your help always and here as well, but if you don’t know the rule engine, then it is ofc completely fine and perhaps another one has an idea for my example.

2 Likes

Which was why I wanted a specific example, to check the rule/intent.

As you have failed to supply one I can’t help.

This is pretty specific. What is he missing?

1 Like

Just a random thought, w/o knowing how the engine works, from a regexp perspective: this tells me “hochorniedrig”, so it makes sense to me that nothing, as in Wie ist, wouldn’t work

Here is my current issue Year of the Voice - Chapter 1: Assist - #93 by OzGav

Seems like Assist fails if the entity name has an apostrophe in it?

Exactly. More specific is not possible. This is the rule as exisiting and my call, which is not working.

And I have this problem as well. Why is the window not recognised?

Edit: I also broadened it to this and no good
image

Edit2: Looking at the intents I then tried this but still no good (the first question is correctly answered by why does the second fail?
image

No, at least not explained here: Template Sentence Syntax | Home Assistant Developer Docs

(foo|bar) ist a must with or. [] ist optional.

1 Like

ok, allowing the app in android firewall surely helps :wink:
Additional i used sip:ha@192… without it i get an error: only direct calls available without server.

I got a spoken english text from my home assistant (i have configured my nonenglish language in assist pipline).
Then i went to the VoIP integration and switched on [allow calls].
But nothing happens if i call HA now, no matter if i set assistant-pipeline to prefered or to Home Assistant.

You should discuss these questions with the German language leaders for correct intent recognition:

Isn’t that a B-52’s song?

1 Like

So running ha in docker, trying to get this setup going.

My docker-compose.yaml is as follows…

version: '3.6'
services:
  piper:
    image: rhasspy/wyoming-piper
    restart: unless-stopped
    command: --voice en-us-lessac-low
    environment:
      TZ: Africa/Johannesburg
    ports:
      - 10200:10200
    volumes:
      - ./piper/data:/data
  whisper:
    image: rhasspy/wyoming-whisper
    restart: unless-stopped
    command: --model small --language en
    environment:
      TZ: Africa/Johannesburg
    ports:
      - 10300:10300
    volumes:
      - ./whisper/data:/data

Now Piper is starting up just fine.
However Whisper, not so much… getting the following in logs

/run.sh: line 5:     7 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     6 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     8 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     6 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     7 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     6 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     7 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"
/run.sh: line 5:     7 Illegal instruction     (core dumped) python3 -m wyoming_faster_whisper --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data "$@"

Not exactly sure where too from here.
Any suggestions?

Thanks

I notice your timezone syntax isn’t the same as the examples. Note sure if that matters

I have got the same problem with whisper, here is my log:

INFO:__main__:Downloading FasterWhisperModel.MEDIUM to /data

Traceback (most recent call last):

  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main

    return _run_code(code, main_globals, None,

  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code

    exec(code, run_globals)

  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 132, in <module>

    asyncio.run(main())

  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run

    return loop.run_until_complete(main)

  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete

    return future.result()

  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 75, in main

    model_dir = download_model(model, args.download_dir)

  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/download.py", line 41, in download_model

    with urlopen(model_url) as response:

  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python3.9/urllib/request.py", line 523, in open

    response = meth(req, response)

  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response

    response = self.parent.error(

  File "/usr/lib/python3.9/urllib/request.py", line 561, in error

    return self._call_chain(*args)

  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain

    result = func(*args)

  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default

    raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 404: Not Found

this is my docker-compose btw

version: "3"
services:
## wyoming
  whisper:
    container_name: whisper
    command: --model medium --language nl
    image: rhasspy/wyoming-whisper
    volumes:
      - ./whisper:/data
    environment:
      - TZ=Europe/Amsterdam
    restart: unless-stopped
    ports:
      - 10300:10300

@OzGav Both are valid docker compose syntax.

@Cadster yours is quite explicitly throwing a 404, I believe this is because your model combination is not valid… but I’m not sure…
Either way its not quite the same as my problem which has nothing obvious to go by

Solved the 404 by changing the command, thanks to adamlonsdale Year of the Voice - Chapter 2: Let's talk - #73 by adamlonsdale

Just setting up voice with the latest HA version. I have installed piper and whisper on my Synology NAS in Docker. I have installed both via the Wyoming integration and they are showing ok. However when I am setting up the voice assistant Piper is greyed out. Anybody else come across that or know what the issue is?

For the docker-compose config, is there a way to install multiple voices so I can switch in the UI?

If you understand it please answer the question.