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

learn more… | top users | synonyms (1)

31
votes
1answer
925 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 ...
19
votes
6answers
45k views

How do I make my pc speaker beep

Using bash, how can I make the pc speaker beep? Something like echo 'beepsound' > /dev/pcspkr would be nice.
18
votes
3answers
16k 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 ...
18
votes
4answers
11k 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 ...
17
votes
3answers
13k 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, ...
17
votes
8answers
5k 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 ...
14
votes
3answers
3k 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 ...
13
votes
5answers
8k 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
4answers
8k 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 ...
12
votes
2answers
331 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 ...
11
votes
1answer
13k 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 ...
11
votes
2answers
1k 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 ...
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
4answers
3k 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. ...
10
votes
3answers
2k 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 ...
8
votes
5answers
5k 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 ...
8
votes
2answers
184 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
337 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 ...
8
votes
2answers
418 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 ...
7
votes
1answer
314 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
3answers
2k 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 ...
7
votes
2answers
241 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
2answers
2k 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 ...
7
votes
3answers
1k 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
2answers
508 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 ...
7
votes
1answer
261 views

No volume control in Nexuiz fullscreen mode

While playing Nexuiz on my Ubuntu in fullscreen mode the volume control buttons on my laptop don't work at all, externally after minimizing the game increasing/decreasing the sound solves the problem ...
6
votes
2answers
542 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.
6
votes
1answer
3k 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 ...
6
votes
1answer
5k 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 ...
6
votes
1answer
656 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
888 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
3k 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
1answer
1k 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 ...
5
votes
3answers
1k 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.
5
votes
3answers
667 views

Command line audio player that exits immediately after file finished playing back?

I am experimenting with audio players in the command line, and noticed something weird: if the sound is very short, most players will take up to a second or two after playback has finished, before ...
5
votes
4answers
397 views

Testing, from a script, if audio devices are in silent?

Is there a default program where I can check if my audio devices are in silent? Edit: By silence, I mean that if there is something playing on that (not just activated or opened) Something like ...
5
votes
2answers
591 views

Automatic Volume settings?

When I watch a Movie on my Desktop PC - Fedora 14 - In many times the Movie is too quiet to hear, but sometimes....it's too loud - Because there's suddenly music, or an explosion, that's really ...
5
votes
3answers
1k views

Disable KDE 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
5
votes
2answers
277 views

Is it possible to record audio directly to a computer's optical drive?

There's a question over at audio.SE at the moment and I thought it may attract some answers here. I asked the user and he's happy to have it posted here to see if anyone has some ideas. Here it is ...
5
votes
2answers
561 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 ...
5
votes
1answer
792 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 ...
5
votes
2answers
234 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 ...
5
votes
2answers
392 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.
5
votes
1answer
804 views

Samson Meteor Mic under Linux/ALSA

Has anybody gotten a Samson Meteor Mic working under Linux/ALSA? I tried to google it but I found no mention of Samson Meteor under Linux at all. Kernel/ALSA/Audacity see the device. Unfortunately I ...
5
votes
2answers
1k views

How can I create a direct 8khz audio pipe in Ubuntu?

I'm interested in creating musical programs like these: http://www.youtube.com/watch?v=GtQdIYUtAHg&feature=player_embedded Essentially these programs just generate sequences of integers, which ...
5
votes
1answer
1k 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 ...
5
votes
1answer
177 views

Using OGG/Vorbis, is there a way to continue to record to an existing audio file?

I am using Vorbis/ogg to record audio (using arecord and then pipping to oggenc). I have downloaded oggvideotools, which gave me oggCat, which will let me join two previously recorded audio files into ...
5
votes
1answer
248 views

How do I get sound to work outside lightdm

If for whatever reason I sudo stop lightdm running on mint and just use a simple xinit session with mutter, is there some way I can get sound to work? Whenever I do that, it seems there's no sound.
5
votes
1answer
478 views

ALSA dummy device - how to configure?

I am working on an audio stream between two virtual servers. For that, I have set up a dummy soundcard (as the vservers don't have a hw card) using modprobe snd-dummy. That seems to work fine - I am ...
5
votes
2answers
764 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 ...