GithubHelp home page GithubHelp logo

Comments (3)

zeehio avatar zeehio commented on June 11, 2024

I have created a branch to try and change the ALSA audio device. Would you mind trying this?

git clone [email protected]: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"

from mimic1.

kendersec avatar kendersec commented on June 11, 2024

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.

from mimic1.

zeehio avatar zeehio commented on June 11, 2024

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)

from mimic1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.