Tag Info

Hot answers tagged

6

Found this method on AskUbuntu that shows using a crontab entry along with amixer to mute/unmute the sound. It's titled: How do I automatically mute/unmute sound during a certain time period (e.g. night)?. General steps Create a crontab entry $ crontab -e Add entries to crontab 59 21 * * * amixer set Master mute 00 08 * * * amixer set Master unmute ...


4

I made a test recording like so: arecord -d 4 out.wav You could use dd like this: dd bs=1 if=out.wav | aplay Or use a really choppy unbuffered stream with a while loop: while read -n 2048 bytes; do printf "$bytes" | aplay done < out.wav You could then use netcat to redirect it to a socket or port. ...


2

it would seem the more logical if applications probed for the more advanced audio solutions first I would guess there's actually a big advantage to this, having done a little with the ALSA API. Here's where you start, in order to just play a prepped PCM stream. Now I'll cite wikipedia on the OSS API: The API is designed to use the traditional Unix ...


1

I'm assuming that you are asking this because you want it to be done automatically rather than having somebody tell you "Just turn the volume down when you go to bed". Go to a shell prompt and use "crontab -e" and add two events along this lines of this: 0 21 * * * /usr/sbin/amixer -D pulse sset Master,0 0% 0 8 * * * /usr/sbin/amixer -D pulse sset ...


1

ffmpeg -i video.mp4 -vn -acodec copy audio.aac Here’s a short explanation on what every parameter does: -i “input file” -vn “skip the video part” -acodec copy "copy audio stream".



Only top voted, non community-wiki answers of a minimum length are eligible