Comments (8)
So I have to say... I am VERY excited... I think I found the problem and have created a pull request for the solution.
After a LOT of digging to understand where everything is (total noob) I was able to compare the intent handler with the wav file directory fields. I found the line of code that expands the environmental variables - and it wasn't present for the intent handler.
I added it in my container and after a restart it appears to be working.
This was just a 1 line change, but I am very happy to have been able to troubleshoot it and find the solution.
I use a lot of open source software, so I am always trying to contribute.
Here is the pull request - not sure what the requirements are... I created it against Master which I expect is not the "correct" way... so I might have to re-create it for one of the tags... unless the maintainers allow it because it is a single line addition - so very little to review.
rhasspy/rhasspy-supervisor#4
Cheers!
DeadEnd
from rhasspy.
Thanks, I'll take a look. I haven't tested the local command much, and I may have broken something in the last few months.
from rhasspy.
It appears I am having the same issue.
Followed the docs, using the example handler.py and it still doesn't work.
Happy to do any testing I can - but I'm pretty inexperienced, so might need a bit of detail 😄 .
DeadEnd
from rhasspy.
I was digging in the code trying to understand more, and I think I found something but don't know if it would cause a problem...
In the intent handler, there is a reference to satellites... but at least in the GUI there is no way to set them... I wasn't sure if this would cause it to error when trying to use a local intent handler.
rhasspy-supervisor/rhasspysupervisor/hasspysupervisor/init.py
Lines 140-145
# Intent Handling
handle_system = profile.get("handle.system", "dummy")
if handle_system not in {"dummy", "hermes"}:
satellite_site_ids = str(profile.get("handle.satellite_site_ids", "")).split(
","
)
Since I'm pretty dev dumb... would this cause an error if the value doesn't exist and doesn't have a fallback default?
from rhasspy.
Something more interesting... I watched the docker logs... and was getting this error:
[ERROR:2020-08-04 17:02:10,967] rhasspyremote_http_hermes: handle_intent
Traceback (most recent call last):
File "/usr/lib/rhasspy/rhasspy-remote-http-hermes/rhasspyremote_http_hermes/__init__.py", line 798, in handle_intent
stderr=asyncio.subprocess.PIPE,
File "/usr/lib/python3.7/asyncio/subprocess.py", line 217, in create_subprocess_exec
stderr=stderr, **kwds)
File "/usr/lib/python3.7/asyncio/base_events.py", line 1529, in subprocess_exec
bufsize, **kwargs)
File "/usr/lib/python3.7/asyncio/unix_events.py", line 190, in _make_subprocess_transport
**kwargs)
File "/usr/lib/python3.7/asyncio/base_subprocess.py", line 37, in __init__
stderr=stderr, bufsize=bufsize, **kwargs)
File "/usr/lib/python3.7/asyncio/unix_events.py", line 775, in _start
universal_newlines=False, bufsize=bufsize, **kwargs)
File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '${RHASSPY_PROFILE_DIR}/handler.py': '${RHASSPY_PROFILE_DIR}/handler.py'
So I didn't use the reference, and instead typed out /profiles/en/handler.py
and now IT WORKS!
So it appears there is an issue with using the variable paths with the intent handler.
@Daenara can you replace your ${RHASSPY_PROFILE_DIR}
with an absolutely path (/profiles/en in the container). See that fixes it for you as well!
DeadEnd
from rhasspy.
That was it, it works now. I never looked at the full log, just the part that it showed in the webgui so I never caught that. Thanks for figuring that out @DeadEnded
from rhasspy.
Thanks for your valuable contribution, @DeadEnded! I merged rhasspy/rhasspy-supervisor#4, always nice to get a one-line fix for a long-standing problem :-)
from rhasspy.
May I ask what if I added a Python library in the custom command? I am getting a module not found when I import the library.
from rhasspy.
Related Issues (20)
- Training fail, I already tried to rename most of my entities
- How do I allow custom input?
- 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
- No Audio Response from HA in 2.5.11 HOT 6
- 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?
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.