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’]
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?
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…
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.