Questions tagged [alsa]

ALSA (Advanced Linux Sound Architecture ) is an API of audio functions for the linux platform.

Please provide additional information by running alsa-info.sh see ALSA Wiki: Help To Debug

758 questions
106
votes
7 answers

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 microphone/speaker and also Analogue…
user11085
55
votes
6 answers

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 another, essentially a switch between my…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
51
votes
5 answers

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 data to the playback file in the /dev folder... …
jones
  • 727
  • 2
  • 7
  • 7
41
votes
1 answer

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 a low level (e.g. using ALSA). I'm basically looking for an…
blue
  • 2,812
  • 4
  • 17
  • 14
38
votes
4 answers

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 problem is. First, I installed alsamixer. pacman -S…
Korgan Rivera
  • 2,543
  • 6
  • 28
  • 39
31
votes
3 answers

Why do you need PulseAudio?

I'm reading and trying to understand why would anyone want to use Pulse Audio and I'm failing to understand. I read this https://www.linux.com/news/hardware/drivers/8100-why-you-should-care-about-pulseaudio-and-how-to-start-doing-it, and I'm still…
Michael P
  • 435
  • 1
  • 4
  • 7
21
votes
1 answer

Issues with arecord command: Channels count non available

I'm having some mixed results with the arecord command in the terminal. The hardware I'm using consists of the Cirrus Audio Card for the Raspberry Pi. I'm trying to record a 24-bit 192kHz sound (from the onboard MIC) into a WAV file, and then play…
Max Jacob
  • 771
  • 2
  • 6
  • 11
18
votes
5 answers

Command line per-application volume (maybe amixer or pactl?)

I can change the master volume with these commands (from the command line), and it affects all applications, but how do I change the volume for just one application (XMMS for example)? amixer -q set Master toggle # or pactl set-sink-mute 0…
9mjb
  • 321
  • 1
  • 2
  • 6
17
votes
4 answers

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 asound.conf and permanently set headphones as…
Boris Burkov
  • 3,931
  • 4
  • 25
  • 37
17
votes
4 answers

Microphone volume on USB soundcard very low, snd_usb_audio options?

I have a C-Media USB soundcard installed on my Raspberry Pi: Bus 001 Device 004: ID 0d8c:0008 C-Media Electronics, Inc.. It is a USB cable with an XLR end on the other side, to which I have an XLR Microphone (a Sennheiser MD 427 if anyone is…
Christian
  • 421
  • 5
  • 11
17
votes
5 answers

Microphone not working on archlinux

Context I have been running archlinux on my laptop for years and never needed the microphone. Now I need it but cannot find a way to configure it properly. I use alsa and pulseadio. Running alsamixer as a user I have two gauges: || || Master…
grochmal
  • 8,489
  • 4
  • 30
  • 60
16
votes
3 answers

How to tell Firefox to use another ALSA device?

I have an onboard sound card, and also a connected bluetooth headset. I have configured the bluetooth device in /etc/asound.conf: # cat /etc/asound.conf pcm.bluetooth { type bluetooth device 12:34:56:78:9a:bc profile…
Martin Vegter
  • 69
  • 66
  • 195
  • 326
15
votes
4 answers

Problem with audio (stuttering/choppy) in every single distribution I've used

VIDEO = https://www.youtube.com/watch?v=Hy-yntM2qvk&feature=youtu.be Basically the audio (not matter what application) flickers and stutters. I have a video with the KDE desktop (because it has more information than the GNOME desktop in 19.10), that…
leoverkisto
  • 151
  • 1
  • 1
  • 3
15
votes
2 answers

Default sound volume for all ALSA devices

I woud like to set up the default sound volume once for all, for all ALSA devices that will be connected ever. Of course, I could do amixer ... or even alsamixer to modify the volume of currently available soundcards. But I really want to modify the…
Basj
  • 2,351
  • 9
  • 37
  • 70
13
votes
2 answers

Can I query which processes (if any) are currently accessing the microphone?

I'm running Debian (technically Raspbian), trying to get a Star-Trek style voice-command system. I've got it mostly up and running, but in the interests of privacy and all that jazz, I don't want my microphone always recording. I'm wondering, is…
jmite
  • 281
  • 2
  • 7
1
2 3
50 51