Open kendersec opened 8 years ago
I have created a branch to try and change the ALSA audio device. Would you mind trying this?
git clone git@github.com:MycroftAI/mimic.git
cd mimic
git checkout alsa_dev_change
./configure --with-audio=alsa
make
# this should fail:
bin/mimic -t "Hello"
# this may work:
MIMIC_AUDIO_DEVICE="pulse" bin/mimic -t "Hello"
Thanks for the prompt response and sorry to taking a while to get back to you, this is what I got:
$ ./bin/mimic -t "Hello"
audio_open_alsa: failed to set number of channels to 1. Invalid argument.
$ MIMIC_AUDIO_DEVICE="pulse" bin/mimic -t "Hello"
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
audio_open_alsa: failed to open audio device pulse. Connection refused
This is all with Jessie Raspbian unchanged. I had a quick play with Ubuntu Mate for the Raspberry Pi and that seemed to work (I believe it was all under pulseaudio and not direct alsa).
Happy to keep trying things if you want to get to the bottom of it but also happy to drop it if you don't feel it's worth the effort.
As another quick test: could you try other ALSA audio devices to see if any of them work by chance?
MIMIC_AUDIO_DEVICE="dmix" bin/mimic -t "Hello"
A solution on mimic side is to adapt mimic output so it is able to send the same audio signal to two channels if one channel fails, that would require a bit more logic on our side but it is not impossible to do. I might do it at some point although I'm pretty busy, if you feel you can help coding I can try to guide you through the code (mainly changing src/audio/au_alsa.c
)
Hi all,
Mimic though alsa currently forces the audio output to be a single channel. I believe this device doesn't have support for single channel audio (yeah...odd). I get the following error:
In verbose mode doesn't seem to give any further information.
This is some information on the Jabra speaker according to aplay (happy to provide any other information):