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

learn more… | top users | synonyms (1)

36
votes
1answer
4k 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 ...
32
votes
5answers
47k 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 ...
27
votes
5answers
21k 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
6answers
12k 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 ...
24
votes
3answers
19k 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, ...
23
votes
4answers
16k 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 ...
17
votes
1answer
32k 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 ...
17
votes
3answers
13k 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 ...
16
votes
5answers
13k 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 ...
13
votes
3answers
10k 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 ...
12
votes
4answers
5k 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. ...
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
6answers
14k 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 ...
12
votes
2answers
463 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
4answers
6k 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 ...
12
votes
1answer
2k 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 ...
11
votes
2answers
4k 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
1answer
1k 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 ...
9
votes
1answer
756 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
3answers
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
2k 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 ...
8
votes
4answers
5k 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 ...
8
votes
2answers
3k 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.
8
votes
3answers
6k 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 ...
8
votes
2answers
221 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? $ ...
8
votes
1answer
5k 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 ...
8
votes
1answer
418 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
10k 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 ...
7
votes
1answer
2k 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
1answer
411 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
719 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
2answers
337 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
4k 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 ...
7
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 ...
7
votes
1answer
7k 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 ...
7
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 ...
7
votes
2answers
767 views

No sound when attached to docking station

I have been using Linux and Ubuntu only since the last two months on my (2006) Sony Vaio VGN A617S laptop which is going pretty well on Ubuntu 10.10. When installing Ubuntu audio did get installed ...
6
votes
1answer
233 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 ...
6
votes
1answer
7k 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 ...
6
votes
3answers
3k 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
6
votes
2answers
831 views

How to encode huge FLAC files into MP3 and other files like AAC?

My problem is very long recordings, longer than supported by WAV. I'm talking about continuous recordings of around eight hours in length. Now, I do most of my recording using sox into FLAC, which ...
6
votes
1answer
573 views

Linux sound: how does it work and why do I need to chain 3 architectures to use JACK?

Linux newbie: How do I use Jack? How does Linux sound work? I have an app that is trying to output sound through ALSA or JACK, but I am not hearing anything. Here are a couple of articles, from ...
6
votes
2answers
62 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 ...
6
votes
1answer
757 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 ...
6
votes
1answer
880 views

Is it possible the get the original (best) audio quality when using avconv?

In Feb 2011 I had a similar question: ffmpeg and libmp3lame produces bad audio quality? Now I'd like to know if it is possible to the get the original audio quality from a (flash) video? Every time I ...
6
votes
2answers
996 views

Volume up/down function keys limited to gnome-volume-control “Unamplified 100%” level

Using GUI gnome-volume-control: Sound Preferences ---------------------------------------------------------------------------- Output Volume: [--------------+ ] ...
6
votes
1answer
4k views

Can someone diagnose this JACK error message?

OK. I start JACK without starting the JACK server. I get: 23:09:22.730 Patchbay deactivated. 23:09:22.765 Statistics reset. Cannot connect to server socket err = No such file or directory Cannot ...
6
votes
2answers
928 views

Microphone always picks up sound and routes it to speakers

I've started running into a kind of strange problem on my laptop, and Google hasn't proved to be very helpful so far. Essentially, at seemingly random times, my microphone will start sending output ...
6
votes
0answers
165 views

Auto-switching PulseAudio profiles based on input(s) channel count

I'm running audio over HDMI to my receiver, which has a full 7.1 setup connected to it. However, most of the stuff that I listen to has far fewer channels—some is mono, most is stereo, a bit is 5.1. ...
6
votes
1answer
415 views

Realtek audio issues on OpenBSD 5.2

I am running OpenBSD/amd64 5.2 stable on a new machine, using a gigabyte motherboard with a realtek alc898 audio chipset. When I try to play any audio (sources include mpd, aucat, and cat > ...