Code Monkey home page Code Monkey logo

Comments (5)

BaReinhard avatar BaReinhard commented on May 28, 2024

This is great, I never got around to getting into it with say.sh. I was only able to have it say something when connected via hdmi and somewhat lost interest. If you are able to implement this into a pull request I will gladly merge it.

from super-simple-raspberry-pi-audio-receiver-install.

ibrodowski avatar ibrodowski commented on May 28, 2024

I'll work on implementing this potential fix into a PR after I've completed additional testing.

I've got a Raspberry Pi Zero W that I use in the car, which was set-up using the custom option, bluetooth-only, no shairport, so I'd like to make sure it works as expected.

I'll need to figure out a simple way to read the output from aplay -L and search for the keywords of plughw and/or sysdefault and then update say.sh to match either-or accordingly (without having to resort to some crazy kung-fu scripting skills).

I've got another question regarding simple-agent.autotrust, so I'll just submit another issue.

from super-simple-raspberry-pi-audio-receiver-install.

BaReinhard avatar BaReinhard commented on May 28, 2024

Been MIA lately, but I think ill be more active for at least a couple weeks until a new job starts. The easiest way to get data from aplay would be something like

sysdef=`aplay -l | grep sysdefault`
plughw=`aplay -l | grep plughw`

if [ -z "$sysdef" ]; then
  update say.sh for sysdef
  exit 0
fi
if [ -z "$plughw" ]; then
  update say.sh for plug hw
  exit 0
fi

Or something along those lines, there are likely some syntax errors , but the grep commands should hold water.

from super-simple-raspberry-pi-audio-receiver-install.

BaReinhard avatar BaReinhard commented on May 28, 2024

closed for inactivity. If a solution is provided, I would gladly add to the install.

from super-simple-raspberry-pi-audio-receiver-install.

Lauszus avatar Lauszus commented on May 28, 2024

I got espeak working using the following command in say.sh:

espeak "$*" --stdout | aplay -Dsysdefault

Note that setting the device to -Dplughw:0,0 work as well.

Note the quotes around $* is important. Without that only "Device" would be said, as @ibrodowski also experienced.

from super-simple-raspberry-pi-audio-receiver-install.

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.