[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Persistent names for audio devices.



Trimmed the reference list.  =8~)

    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Tue, 28 Sep 2021 18:31:34 -0500
> No, you'd use alsamixer where you were taking an active rôle during
> record/playback, or for discovering, inspecting and setting up a
> system. Typically, you'd play "an audio message", or anything else,
> with some sort of application, unless it was a disembodied
> notification, say.
> 
> Some applications include volume/balance controls and so on; others
> don't. I have keys set up for adjusting the volume on the various
> controls, using the multimedia keys XF86Audio{Mute,LowerVolume,RaiseVolume}
> (F1/F2/F3 where not present), with Ctrl/Alt/Shift to select between
> Master/Speakers/Headphones/PCM.

Understood, but to listen to an audio message from VoIP (not opera) a 
simple command should suffice. (play ~/a42.WAV) Speakers rather than 
headphones for a voice message.  I'd rather not  adjust volume except 
maybe "play ~/a42.WAV gain 1".  A typical message is "Please call J. 
Doe."  In a worst case I might shut off the RCA AM radio made in 1960 
to hear the message better.  =8~)  Seems we're at crossed purposes 
here.

> How otherwise would you make explicit what you're happy to use
> implicitly?

No offense but isn't that analogous to saying to a ten year old 
"Johnny, please eat your lunch with your mouth."  =8~) 

A default which isn't unique is a bad default.  If it is unique, 
there's nothing to disambiguate.  Crossed purposes again?  

> (When I write a script, I try to be as explicit as
> possible, avoiding short-cuts, abbreviations, assumptions, etc.)

Absolutely good policy.  I try to follow it also but tend to fail.  =8~)

> sox /home/peter/a42.WAV -t alsa default

Good. 

The machine here has sound hardware on the system board.  Also it can 
have a PCI sound card.  Sound devices reported here. 
https://lists.debian.org/debian-user/2021/07/msg01272.html

Assume speakers are plugged to output on the system board; headphones 
plugged to the PCI card.  A Linphone ring and a voice message (play 
~/a42.WAV) should always go to the speakers.  VoIP I/O (a 
conversation) and ring can be configured in Linphone; no problem.  
"play ~/a42.WAV" delivering to the headphones in random cases is an 
unacceptable failure. How would you make it work without frequent 
configuration adjustments?  

Thanks,                        ... P.




-- 
48.7693 N 123.3053 W
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140


Reply to: