Questions about audio hardware and software in Linux and other UNIX operating systems.

learn more… | top users | synonyms (1)

41
votes
6answers
74k views

Set volume from terminal

Is it possible to set the audio volume using the terminal?, instead of clicking the speaker icon in the topbar, the reason I want need to do this is because my keyboard does not have a volume increase/...
36
votes
1answer
6k views

redirect sound (microphone) via ssh, how to telephone via ssh?

How can I redirect the microphone of one computer to listen to it on another computer via ssh? Which is the right device or which is the right command line? Some years ago it was easy and fun to ...
33
votes
6answers
23k views

How can I record the sound output with gtk-recordmydesktop?

I am using gtk-recordmydesktop to record the video output to my desktop. However, the videos have no sound. All the tutorials I found regarding this involved getting sound recorded from a microphone, ...
32
votes
8answers
16k views

How do I split a flac with a cue?

I've got a full album flac, and a cue file for it. How can I split this into a flac per track. I'm a KDE user, so I would prefer a KDE/QT way, I would like to see command line and other gui answer's ...
30
votes
4answers
22k views

Generating random noise for fun in /dev/snd/

Recently I have been exploring the enchanted /dev folder. I want to write some random data to an audio device in order to generate some noise. I am using ALSA. So I instruct cat to pipe some random ...
28
votes
5answers
27k views

How can I play a sound when script execution is ready?

I am executing every now and then some python scripts which take quite long to execute. I execute them like this: $ time python MyScript.py How can I play a sound as soon as the execution of the ...
27
votes
2answers
49k views

How to use command line to change volume?

I am trying to control the volume using my programming script. How can I do the following in Fedora 15, Ubuntu linux? Mute/ Unmute Volume up and volume down Note: Please note that I use a web USB ...
19
votes
3answers
19k views

Change PulseAudio Input/Output from Shell?

I have a set of nice wireless headphones which I use from time to time, in addition to my speakers and normal microphone. I'd like to write a script to switch between one input and output source and ...
18
votes
5answers
17k views

Sending audio through network

This is a rather crazy idea. I am planing to set up a configuration that would send audio being played on my laptop to my home server via local network so that the sound is played on the server ...
18
votes
6answers
21k views

How can I switch between different audio output hardware using the shell?

I use my laptop with an external monitor which has speakers. When the monitor is attached through HDMI I can switch (using the GUI: Sound Setting --> Hardware) between the normal laptop audio output ...
18
votes
3answers
16k views

Add album-art cover to mp3/ogg file from command-line in batch mode?

I am looking for a software in Linux, that will add the album-art/cover to each of the selected files in batch-mode. The album art is a jpg/png stored in my computer. It will be awesome if it can ...
17
votes
5answers
9k views

Detecting headphone connection/disconnection in Linux

I am trying to detect a signal when a headphone is connected or disconnected from the system. What is the best way to do this? If there is a special board with drivers, that will be my preferred way....
13
votes
4answers
5k views

Audio-only youtube player

I would like to find an application external to the internet browser that would play only youtube sound. Preferably a very light one, CLI or GUI.
13
votes
4answers
7k views

Can I setup a loopback audio device?

If I can send audio to the output devices, then I can record the same audio as a wave. With filesystems, you can just setup a loopback filesystem and write binary data on a file instead of a device. ...
13
votes
1answer
3k views

Debian systems seems to recognize speakers but not the headphones for Lenovo laptops

First of All, I know there are lot of questions out there on same topic but still I could not figure out the solution. Being a average system level programmer (beginner in kernel programming) I would ...
12
votes
2answers
520 views

Possible to configure Login TTY over Audio device (Morse code or similar)?

One of the most miserable aspects of my day job is the need to occasionally investigate problems with machines scattered in remote locations all over the world that don't have network access to the ...
12
votes
3answers
2k views

How to rip scratched audio cds?

What is currently the best way to rip scratched audio cds under Linux? What I find complicated, is that there are several tools available but it is not clear if one tool has better error correction ...
12
votes
1answer
4k views

Cleaning voice recordings from command line?

I have used Audacity for removing noise from recordings before, however it has very limited command line usage. I have ~100 short lecture videos which I will be watching over the next few months and ...
11
votes
2answers
6k views

Indicate mute/unmute with i3status

Is there a way to indicate if the sound is set to mute or not using i3status? I know how to show the volume (as explained in man i3status), but it doesn't distinguish between mute or just 0% volume.
11
votes
2answers
5k views

How to record my full screen with audio?

If I want to record my desktop, I use: ffmpeg -f x11grab -s `xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//'` -r 25 -i :0.0 -sameq valami.avi But it doesn't ...
10
votes
3answers
18k views

How do I enable sound in this fresh Arch install?

I'm following the Arch Beginner's Guide. I have Arch running. Now I'm working on the post-installation instructions, one of the first parts of which is to unmute the speakers. This is where my ...
10
votes
4answers
8k views

End sox recording once silence is detected

I'm writing a script that uses sox to record me talking. Now I need sox to wait until it detects sound before it begins recording, and I do have that figured out. But I also need sox to exit once ...
10
votes
3answers
9k views

Microphone - static background noise suppression on Linux

My soundcard is Realtek ALC 892. On Windows 7 I use official Realtek drivers, on Linux I use PulseAudio (on Ubuntu 13.10). On both Windows and Linux, when I enable microphone boost +30db (required ...
10
votes
1answer
3k views

Creating a virtual microphone

I run a CentOS Server with VNC enabled and some services require a microphone to work properly, but it doesn't have to be used for recording, just a microphone device available. So I was wondering if ...
10
votes
1answer
8k views

Sending to two bluetooth speakers at once

Is it possible to send the same audio signal to two different Bluetooth speakers at once from a single source? I remember reading somewhere that it's possible to send audio to two different sinks ...
9
votes
4answers
20k views

How I can record stream radio in Linux?

How can I record a radio stream in Linux like the screamer in Windows? Does anyone have any idea or suggestion?
9
votes
2answers
232 views

Single key audio capture in Linux (save on key release)

I'd like to run a program that records audio only when the Right Control key is held down. On keyboard release the result would write to disk as, e.g. yy-mm-dd hh:mm.ogg. How might I do that? $ ...
9
votes
1answer
954 views

USB audio only outputs white noise

I am running OpenBSD/i386 5.1 on a 5 year old laptop. The speakers and headphone port work, but the headphone port is a little loose so I am trying to install an external USB sound card (Fiio E17 USB ...
8
votes
4answers
2k views

Is there a good command line tool for converting to and from FLAC audio format?

Ideally, I want to convert from MP3 to FLAC and back. I also need to be able to script this.
8
votes
1answer
11k views

How do I configure PulseAudio for 7.1 Surround Sound over HDMI?

I have my machine connected over HDMI to a receiver. But when I try to use more than two channels with PulseAudio, I only get two. pacmd list cards shows the card, but does not show an HDMI profile ...
8
votes
1answer
5k views

Sound input issue with skype, selecting a microphone?

Ok, Skype yet again has issues with sound. This time, it is unable to record audio. The system is using PulseAudio and I am using a web cam as a microphone. Actually, I tried another web cam and ...
8
votes
3answers
2k views

Is there something that will generate keyboard's click sounds?

I miss using a clicky keyboard at work. It's a fairly quiet office, so I'm stuck using a nearly silent keyboard. The upshot is that I can wear headphones. Is there something in Linux or X that can ...
8
votes
1answer
8k views

How to check why sound over HDMI doesn't work

I installed Gentoo clean on my system, except my /home but I deleted all hidden folders that might have an impact on sound (.mplayer .pulse* .config .esd_auth and more) and with a fresh user adduser ...
8
votes
1answer
2k views

Changing default audio device in Pulseaudio

I would like to use HDMI on my graphic card for audio output. ALSA shows it as a card with 4 devices and I can get sound through one of them (the other three are different channels, perhaps? I have ...
8
votes
1answer
17k views

ALSA: how to temporarily change the output device

I want to do a simplest thing possible in ALSA: to have USB-headphones produce sound instead of internal speaker of my tablet. I don't want to change config files such as asound.rc or alsa.conf or ...
8
votes
1answer
450 views

Is there a checklist for getting the “beep” program to work?

Debian has a program called "beep" available, that lets you make the computer beep at whatever frequency or time you want. http://packages.debian.org/wheezy/beep The problem that many people seem to ...
7
votes
3answers
3k views

how to understand list of soundcards; meaning of MID, HDMI, PCH

Command aplay -l produces a list of "all soundcards and digital audio devices". On my brand-new Fujitsu Esprimo desktop, I get: **** List of PLAYBACK Hardware Devices **** card 0: MID [HDA Intel MID]...
7
votes
2answers
312 views

Amplify quiet passages in an mp3 file

I have an mp3 file where is a dialog with two voices and one of the voices is very quiet. Is there a command or application that is able the detect the quiet passages and amplify them? The two voices ...
7
votes
3answers
4k views

Disable KDE 4.7 system sounds

How to disable KDE system sounds? I mean all sounds on startup, on dialog box popup, on error and so on, without turning off the actual media sound. I use KDE 4.7.4
7
votes
4answers
3k views

How to “reencode” mp3 files

I have a fair number of mp3 files which I created using audiohijack pro on a mac. Now I no longer have a mac and am using them on my linux systems. Unfortunately the program I use (rhythmbox) to ...
7
votes
1answer
4k views

Get the current volume level in OS X Terminal CLI?

I would like to check the current volume level from the CLI on my Mac. I know I can set it like this: osascript -e 'set volume <N>' But that doesn't seem to work when trying to get the ...
7
votes
2answers
860 views

How to disable system beep for non-privileged user

How to disable system beep on Linux? I don't have superuser powers so I cannot recompile kernel/unload module.
7
votes
1answer
5k views

Linux newbie: How do I use Jack? How does Linux sound work? [closed]

I am a Linux newbie. I know my way around the command-line enough to where it doesn't get in the way of my day job (I develop web applications in Python). This involves some piping, grep, awk, and ...
7
votes
1answer
475 views

Prevent mplayer from changing system volume

When I change the volume in mplayer it also changes for other applications. How can I configure mplayer to only change its own volume? Or is this a problem with the rest of the audio stack? I am using ...
7
votes
2answers
406 views

Search MP3/Ogg files by tags/parameters from the command line

Is there any utility to search MP3/Ogg files by tags (or other characteristics) from the command line? (e.g. finding all audio files longer than 10 minutes with genre set to 'Rock'). I found this, ...
7
votes
1answer
1k views

playing a sound/notification in finch over ssh on my local machine

So I have finch, a command line chat client (think pidgin) running on a remote machine that I ssh into. finch has notification sounds and can run a command when certain events occur, letting you pass ...
7
votes
1answer
5k views

How can I forward sound over VNC?

I use TightVNC and Remmina Remote Desktop to connect my Raspberry Pi to my Ubuntu laptop over VNC. It works great for the most part, except for the fact that there is no sound. I have googled all ...
7
votes
2answers
146 views

switching between shells, stops the music that is currently playing

While I was listening to music I changed the virtual console using Ctrl+Alt+F2, and suddenly the music was paused. Returning back to the console that runs the X server Ctrl+Alt+F7 or logging in to ...
7
votes
1answer
1k views

Ssh audio redirection

I have DVB-T USB dongle plugged into my Linux server (GUI-less). It works correctly, but I want to stream TV programs from server to my PC. For this I use Kaffeine that way: ssh -X -p 666 -i /home/...
7
votes
1answer
8k views

How to enable both built-in audio output and HDMI audio output with PulseAudio?

I've been searching for this issue for days now and tried various solutions suggested, without any success. Basically, I have a laptop with built-in audio (the output goes either to the headphone ...