Comments (5)
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.
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.
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.
closed for inactivity. If a solution is provided, I would gladly add to the install.
from super-simple-raspberry-pi-audio-receiver-install.
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)
- Pulseaudio service starts before Bluetooth service on boot, causing it to timeout
- [Error] I got /etc/pulse/system.pa' failed HOT 1
- Volumio
- Shorter URL
- Cannot adjust volume with USB DAC
- Bluetooth no default controller available HOT 2
- Volume Control HOT 5
- Fatal error encountered HOT 3
- Use web browser and audio goes silent
- My feedback: Failed to start LSB: Makes Bluetooth discoverable and.... HOT 2
- airplay not work. BT ,dlna work HOT 1
- Start pulseaudio with realtime and no CPU limit HOT 4
- Set default BT volume HOT 1
- Bluetooth not working HOT 1
- Pulseaudio failed loading
- fatal error kodi
- json-c autogen.sh missing
- Fatal error encountered
- can't install on buster HOT 3
- can't play audio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-simple-raspberry-pi-audio-receiver-install.