Hi,
I used rhasspy with no problem until i decide to go with bluetooth speaker/mic.
I spend the day to get it works with no succes and i have no idea of the issue
I can do aplay without specify a device in command line and my speaker speak so the speaker is the default one.
I can prove it with aplay -L that return me that :
ostro@ostrobase:~$ aplay -L
default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
sysdefault:CARD=Audio
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Default Audio Device
hdmi:CARD=Audio,DEV=0
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
HDMI Audio Output
hdmi:CARD=Audio,DEV=1
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
HDMI Audio Output
hdmi:CARD=Audio,DEV=2
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
HDMI Audio Output
dmix:CARD=Audio,DEV=0
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample mixing device
dmix:CARD=Audio,DEV=1
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample mixing device
dmix:CARD=Audio,DEV=2
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample mixing device
dsnoop:CARD=Audio,DEV=0
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample snooping device
dsnoop:CARD=Audio,DEV=1
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample snooping device
dsnoop:CARD=Audio,DEV=2
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct sample snooping device
hw:CARD=Audio,DEV=0
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct hardware device without any conversions
hw:CARD=Audio,DEV=1
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct hardware device without any conversions
hw:CARD=Audio,DEV=2
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Direct hardware device without any conversions
plughw:CARD=Audio,DEV=0
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Hardware device with all software conversions
plughw:CARD=Audio,DEV=1
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Hardware device with all software conversions
plughw:CARD=Audio,DEV=2
Intel HDMI/DP LPE Audio, Intel HDMI/DP LPE Audi
Hardware device with all software conversions
usbstream:CARD=Audio
Intel HDMI/DP LPE Audio
USB Stream Output
sysdefault:CARD=bytchtcx2072x
bytcht-cx2072x,
Default Audio Device
dmix:CARD=bytchtcx2072x,DEV=0
bytcht-cx2072x,
Direct sample mixing device
dmix:CARD=bytchtcx2072x,DEV=1
bytcht-cx2072x,
Direct sample mixing device
dsnoop:CARD=bytchtcx2072x,DEV=0
bytcht-cx2072x,
Direct sample snooping device
dsnoop:CARD=bytchtcx2072x,DEV=1
bytcht-cx2072x,
Direct sample snooping device
hw:CARD=bytchtcx2072x,DEV=0
bytcht-cx2072x,
Direct hardware device without any conversions
hw:CARD=bytchtcx2072x,DEV=1
bytcht-cx2072x,
Direct hardware device without any conversions
plughw:CARD=bytchtcx2072x,DEV=0
bytcht-cx2072x,
Hardware device with all software conversions
plughw:CARD=bytchtcx2072x,DEV=1
bytcht-cx2072x,
Hardware device with all software conversions
usbstream:CARD=bytchtcx2072x
bytcht-cx2072x
USB Stream Output
My /etc/asound.conf is the following :
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.default pulse
ctl.default pulse
And my profile for rhasspy is the following :
"sounds": {
"aplay": {
"device": "default"
},
"system": "aplay"
I add default in device because if i do not rhasspy automaticaly remove:
"aplay": {
"device": "default"
},
And that do not work too, if i go with pulse instead of default in aplay setting in rhasspy i’ve got the following error :
AudioServerException: Command '['aplay', '-q', '-t', 'wav', '-D', 'pulse']' returned non-zero exit status 1.
And the log after i run the tts in the home page of the rhasspy UI is :
[DEBUG:2021-08-12 20:21:53,603] rhasspyserver_hermes: Publishing 131 bytes(s) to hermes/tts/say
[DEBUG:2021-08-12 20:21:53,603] rhasspyserver_hermes: -> TtsSay(text='coucou', site_id='default', lang=None, id='d0c2c8ac-b015-4692-a410-bef8fd1ffec7', session_id='', volume=1.0)
[DEBUG:2021-08-12 20:21:53,601] rhasspyserver_hermes: Subscribed to hermes/error/audioServer/play
[DEBUG:2021-08-12 20:21:53,601] rhasspyserver_hermes: Subscribed to hermes/audioServer/default/playBytes/#
[DEBUG:2021-08-12 20:21:53,600] rhasspyserver_hermes: Subscribed to hermes/error/tts
[DEBUG:2021-08-12 20:21:53,600] rhasspyserver_hermes: Subscribed to hermes/tts/sayFinished
[DEBUG:2021-08-12 20:21:53,599] rhasspyserver_hermes: TTS timeout will be 30 second(s)
Someone have an idea pls ?