Microphone/Speaker Combo

Hi so now sorted speaker test by:

create /etc/asound.conf with following:
defaults.pcm.card 1
defaults.ctl.card 1
Replace “1” with number of your card determined above.

that gave me white noise and

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left

BUT pressing WAKE to generate a tone gave me a log:
[ERROR:589950] APlayAudioPlayer: on_receive
Traceback (most recent call last):
File “/usr/share/rhasspy/rhasspy/actor.py”, line 175, in on_receive
self._state_method(message, sender)
File “/usr/share/rhasspy/rhasspy/audio_player.py”, line 67, in in_started
self.play_file(message.wav_path)
File “/usr/share/rhasspy/rhasspy/audio_player.py”, line 90, in play_file
subprocess.run(aplay_cmd, check=True)
File “/usr/lib/python3.7/subprocess.py”, line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘aplay’, ‘-q’, ‘/usr/share/rhasspy/etc/wav/beep_error.wav’]’ returned non-zero exit status 1.
[INFO:589932] quart.serving: 192.168.1.114:51654 POST /api/listen-for-command 1.1 200 139 14834859
[DEBUG:589896] APlayAudioPlayer: [‘aplay’, ‘-q’, ‘/usr/share/rhasspy/etc/wav/beep_error.wav’]

any thoughts?

Did you include /dev/snd in your docker run command?

Could you run docker exec -it rhasspy bash (as long as your rhasspy container is called rhasspy, otherwise substitute rhasspy with your corresponding container name) and then run aplay -l? What’s the output of the command?

I ran the documented load script:

$ docker run -d -p 12101:12101
–name rhasspy
–restart unless-stopped
-v “$HOME/.config/rhasspy/profiles:/profiles”
-v “/etc/localtime:/etc/localtime:ro”
–device /dev/snd:/dev/snd
rhasspy/rhasspy
–user-profiles /profiles
–profile en

pi@RedPi4:~ $ docker exec -it rhasspy bash
Error: No such container: rhasspy

pi@RedPi4:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: USB [Jabra SPEAK 410 USB], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Weird that there is no container. Is rhasspy running? On the host sound is working now you said. Isn’t it? Could you please post some screenshots of your audio record and audio playing section of the rhasspy settings page.



rhasspy is running, quite happy to record “what time is it”, just no sound out of the USB, it did play via headphone jack until I disabled analogue and changed default device…

Which devices are there available in the audio playing section? Did you try playing around with different devices in this list? Are you using a 2.4 version of rhasspy on purpose? Otherwise I would recommend an update to version 2.5.10 (latest stable release). Maybe the update will solve the issue as well.

Hi thanks for your time, its weird, all the s/w was fresh loaded yesterday. I think I will try a fresh rebuild. The audio list won’t let me select anything other than default… who knows what I might have twiddled along the way. so a fresh start is called for. Thanks again… I will report if it works, or not…

Thanks again for the help, I reloaded and it all sprang into life, must have been a missed line somewhere. No problems at all… now running 2.5.11…

1 Like

For the sake of the algorithm: Anker PowerConf S330 does not work. Speaker is fine. Microphone array doesn’t pick up any sound in Linux. No idea what it’s problem is, but I’m sending it back.

I just bought a PowerConf S3 and I wonder if it might be draining too much power from the RPi.

i cant fully put my finger on it, but i had some boot isse once I plugged the speaker in that are a but similar to when I had a weak PSU on my RPi

The Rpi runs on 2.5A and the speaker has a rated draw of 2A

has someone had power issues with these speakers?