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

learn more… | top users | synonyms (1)

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....
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 ...
7
votes
2answers
862 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.
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, ...
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 ...
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. ...
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

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 ...
2
votes
1answer
8k views

how to pipe audio output to mic input

I've looked all over the internet for a clean way to reroute the audio output of my computer (i.e. what I'd hear from the speaker) to my microphone's input. Possibly, I'd like to do this at low level ...
3
votes
2answers
4k views

Playing a remote movie on the remote computer

I have two computers (a desktop and a laptop) running linux connected to my local area network. I like to ssh from my laptop over to my desktop and run programs there, and sometimes listen to music on ...
3
votes
2answers
623 views

Somehow managed to mute mplayer and can't figure out how to restore sound

I was randomly/experimentally pressing buttons while playing a video with mplayer. Something I did caused the video to mute. I then exited the video and tried a different one, but that one was muted ...
6
votes
2answers
856 views

How can I disable the shutter sound of gnome-screenshot?

After a recent update of my LMDE, the gnome-screenshot tool started making an annoying camera shutter noise every time a screenshot is taken. This is both annoying and startling (especially if you ...
4
votes
1answer
571 views

Mapping metadata with avconv does not work

The way I understand man avconv (version 9.16-6:9.16-0ubuntu0.14.04.1), the following command should convert input.ogg to output.mp3 and carry over metadata: avconv -i input.ogg -map_metadata 0 ...
1
vote
1answer
825 views

File manager that shows bit rate for mp3 files

I am a Fedora user and my current file manager is Thunar. The OS is quite nice but I am not satisfied with Thunar. There are a lot of features I think it's lacking but mainly I am missing more ...
0
votes
1answer
227 views

Pulseaudio broken on Arch: pa_stream_writable_size() failed: Connection terminated

The problem While trying to fix a minor issue on my Arch system, I seem to have created a bigger one. I don't really know what I did to cause this (more on that later) but pulseaudio seems to crash ...
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
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 ...
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.
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 ...
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 ...
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 ...
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 ...
6
votes
1answer
5k views

Sound not working when both the sound card and HDMI use the Intel HDA driver. How to exchange their device loading order?

I have an Acer Aspire One 522 netbook which has an Intel HDA sound card based on the Conexant CX20584 chipset. Although KDE does output sound when starting up, flash and probably many other apps which ...
3
votes
1answer
2k views

How to disable a usb sound device with udev

How can I disable USB device by Vendor ID? So I have: [root@piotr ~]# lsusb Bus 001 Device 002: ID 058f:9254 Alcor Micro Corp. Hub Bus 001 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio ...
6
votes
2answers
979 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
2answers
9k views

Ideas how to get my usb audio interface to work with Linux?

PulseAudio does not appear to recognize the Focusrite Scarlett 6i6 USB audio interface. The 2i2, however, is properly recognized and it works as expected. I can't seem to get the 6i6 to work on the ...
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 ...
4
votes
1answer
1k views

how to merge two audio input source using avconv

I try to make screencast using avconv and I facing a problem. I finally succeed to record both pc output and microphone input , the problem is that they're not merged in the output file. (I saw they'...
3
votes
2answers
2k views

Where can I find the Linux driver for headphones in the kernel tree?

I have headphones with three buttons on them which allow me to control my music player with my phone. I want to write a driver for my headphones to make it control my music player on my pc (Ubuntu ...
2
votes
2answers
5k views

“lsmod |grep audio” doesn't return anything?

I am running Debian Squeeze. I installed and removed Gnome3 and reinstalled Gnome2.x (epic fail and stupidity) and in the process I have lost audio, lspci returns following # lspci | grep Audio 00:...
1
vote
1answer
1k views

audio recording - record two sources simultaneously, merge into a single 2-track recording

How can I record two audio sources at the same time and create a file where one source is the left channel and the other source is the right channel of a lossless stereo audio recording? My distro ...
1
vote
1answer
92 views

Deadbeef audio player does not retrieve online (freedb, CDDB) info about CD tracks

Many Linux players (like Audacious, Banshee, Amarok, Exaile) can easily access audio CDs tracks info (names and other metadata) but Deadbeef cannot, although it has a cdda plugin that should do just ...
1
vote
1answer
289 views

How to add ffmpeg/avconv command to Nemo actions?

I would like to have a command like this one ffmpeg -i video.mp4 -vn -acodec copy audio.m4a into a Nemo action (context menu). But that would mean using variables instead of real names of files. (...
7
votes
1answer
6k 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 ...
6
votes
1answer
778 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 ...
4
votes
1answer
1k views

Trim audio file using start and stop times

I have an FFmpeg command to trim audio: ffmpeg -ss 01:43:46 -t 00:00:44.30 -i input.mp3 output.mp3 The problem I have with this command is that option -t requires a duration (in seconds) from 01:43:...
4
votes
1answer
865 views

Playing sound in a user X session

I am running Linux Mint 14 and can play sound when I start my x session through mdm. however, when I start my X session using startx in user space, I am unable to get any sound play. What could be ...
3
votes
1answer
93 views

How can I switch to my onboard audio controller?

My desktop (running Arch) has a (very, very) old SB Live! sound card that isn't working very well any more. I'd like to switch to using the motherboard's onboard audio controller instead. Sadly, ...
3
votes
2answers
170 views

Compare two audio files

I would like to make sort kind of "speech recognition" system. The goal is to compare a new recording with an original audio file, and if the sound is > x% similar, do something. Is there already a ...
3
votes
0answers
6k views

No sound with Mint 12 and Realtek ALC892

Installed Mint 11 last week and I've got no sound. I've read around, went through the trouble shooters. Poked and prodded. Still no sound. It worked right out of the install with this hard ware in ...
3
votes
2answers
1k views

Is there a linux distro that uses Jack audio server all the time?

By this I mean a distro that does not use pulse audio at all. So when you are runing programs like miro or mumbles you do not lose audio playback becuase Jack took over the audio stack.
3
votes
1answer
2k views

Is there an easy way to switch playback soundcards?

I recently purchased the roccat kulo headset which comes with a nice USB soundcard, completely functional under linux :). Howsoever I now struggle to easily siwtch between my laptops integrated ...
2
votes
3answers
10k views

How to remote Linux desktop with audio support

I have a Debian PC (Server) and I would like to remote this machine from one client (Windows, Ubuntu,..) and be able to hear the sound from the server. I tried some tools (Radmin, RealVNC, but I can'...
2
votes
1answer
4k views

ffmpeg and libmp3lame produces bad audio quality?

when I get a flash video from YouTube, why is the quality of the audio much worse than the origin video on YouTube? When I downloaded the flash movie, I convert it to avi like this: ffmpeg -i ~/"$...
2
votes
1answer
441 views

Setting maximum volume

I usually work in a WM (i.e., i3wm) and use alsamixer to adjust sound volume. The recent Linux installation on a Dell t5500 machine gives a very loud sound when set the maximum volume in alsamixer. ...
2
votes
0answers
55 views

Gnome screenshot: turn off camera sound *without* admin rights [duplicate]

Is there a way to disable the gnome screenshot camera sound, with needed admin access? There's an answer here, that involves moving a file from somewhere in /usr/... How can I disable the shutter ...
1
vote
3answers
94 views

How can convert characters into characters that'll produce beep noises?

I'm new to Linux and have recently started working on my very first (very simple) project - a morse code generator. I've been able to get the translation working, and now I want to take the next step. ...
1
vote
1answer
191 views

Internal speaker sound at login screen - but not after login (only external speakers work)?

Sound plays (drum roll) at login screen. In Ubuntu and Xubuntu XFCE no sound emits from the laptop speaker, but does from the external speakers. Pulseaudio panel monitor bar dances with the sound.... ...
0
votes
1answer
3k views

BeatsAudio Driver for Linux using laptop model HP Envy M6

Back when I was on Windows 8, I installed the Beats Audio driver for Windows and everything sounded so clear and beautiful. I'm running Linux now (specifically Mint) but I wouldn't know how to install ...