Hello there,
after trying to get my external sound card working with Rhasspy and the RPi itself I finally managed to get it working. Now the only problem is, that the .wav file sounds normal using the command:
pi@himbipi2:~/.config/rhasspy/profiles/en/sounds $ suaplay end_of_input.wav
Playing WAVE ‘end_of_input.wav’ : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
If I trigger the sound with my voice it sounds very high pitched.
Here is my config:
I had to enter pcm "hw:3,0"
manually in the /etc/asound.conf
aswell as into the profile.json
as "device": "hw:3,0"
/etc/asound.conf
:
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type softvol
slave {
pcm "array"
}
control {
name "MicArray Master"
card "MATRIXIOSOUND"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:3,0"
}
}
pcm.array {
type plug
slave {
pcm "hw:MATRIXIOSOUND"
}
}
pcm.channel_1 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 0
}
pcm.channel_2 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 1
}
pcm.channel_3 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 2
}
pcm.channel_4 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 3
}
pcm.channel_5 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 4
}
pcm.channel_6 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 5
}
pcm.channel_7 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 6
}
pcm.channel_8 {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings.0 7
}
pcm.all_channels {
type dsnoop
ipc_key 234884
slave {
pcm "hw:2,0"
channels 8
}
bindings {
0 0
0 1
0 2
0 3
0 4
0 5
0 6
0 7
}
}
profile.json
:
{
"microphone": {
"arecord": {
"device": "hw:CARD=MATRIXIOSOUND,DEV=0"
},
"system": "arecord"
},
"mqtt": {
"enabled": true,
"host": "192.168.178.19"
},
"sounds": {
"aplay": {
"device": "hw:3,0"
},
"error": "${RHASSPY_PROFILE_DIR}/sounds/error.wav",
"recorded": "${RHASSPY_PROFILE_DIR}/sounds/end_of_input.wav",
"wake": "${RHASSPY_PROFILE_DIR}/sounds/start_of_input.wav"
},
"speech_to_text": {
"system": "kaldi"
},
"text_to_speech": {
"system": "picotts"
},
"wake": {
"snowboy": {
"apply_frontend": true,
"model": "snowboy/jarvis.umdl",
"sensitivity": "0.8,0.80"
},
"system": "snowboy"
}
}
Anyone has an idea how to fix the high pitch?
Thank you