rhasspy icon indicating copy to clipboard operation
rhasspy copied to clipboard

Feature Request: Jack Audio Support

Open benedikt-bartscher opened this issue 4 years ago • 5 comments

It would be awesome if Snips could directly talk to Jack Audio. I use jack audio in some distributed systems, especially with multiple instances of spotify and rhasspy it comes pretty handy

benedikt-bartscher avatar Oct 21 '20 11:10 benedikt-bartscher

Is there a Python library or something for this? We could create another microphone service for it.

synesthesiam avatar Oct 21 '20 21:10 synesthesiam

I think the best way would be to write a Jack <-> MQTT Bridge and set Rhasspy to MQTT Audio. If we do it like this, jack and rhasspy can run on different hardware without implementing an jack network client into rhasspy.

I found jack-client and py-jack: https://pypi.org/project/JACK-Client/ https://pypi.org/project/py-jack/

benedikt-bartscher avatar Oct 22 '20 11:10 benedikt-bartscher

For anyone who is interested in jack or especially why i use it in combination with rhasspy: It is very easy to create multiple instances of rhasspy and AEC (Acoustic Echo Cancellers). Jack even supports network, which makes this very flexible for big smart home installations. At the moment i am using jack's alsa_in and alsa_out plugins to connect it to rhasspy.

2020-10-22-18:36:17

benedikt-bartscher avatar Oct 23 '20 09:10 benedikt-bartscher

a quick note: jack uses 32bit float by default. although 16bit int can be enforced.

chris-kuhr avatar Apr 05 '21 16:04 chris-kuhr

Hi @benedikt-bartscher is this feature confirmed to be implemented? It seems to be added in 2.5.8

Romkabouter avatar Nov 23 '21 22:11 Romkabouter