Re: Automatic Gain Control in Python?

2022-06-06 Thread Dennis Lee Bieber
On Mon, 06 Jun 2022 10:10:37 -0700 (PDT), Grant Edwards declaimed the following: >On 2022-06-06, Phil Boutros wrote: > >> As pretty much everyone else has said. Insisting on real-time >> processing of something that is itself pre-recorded is non-sensical. > >Downnloading a file,

Re: Automatic Gain Control in Python?

2022-06-06 Thread Karsten Hilbert
Am Mon, Jun 06, 2022 at 02:08:41PM -0400 schrieb Steve GS: > Yes, it is real-time play back of a pre-recorded presentation. ... What all of us around here don't understand is why you insist on not being able to modify the data to your heart's content inbetween this ... > [...] pulling in the

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
Steve GS wrote: > Yes, it is real-time play back of a pre-recorded presentation. > A juke box does the same thing. It plays records. > You didn't put your quarter in to expect the band to play your piece live, > did you? > > Same here, I am pulling in the programs and playing them for an

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
Stefan Ram wrote: > > When a mike is used anyway: Some mobile devices have a mike > with AGC in the driver, so they usually record with AGC. In the name of all that is Holy, please don't suggest another intermediary step that may actually be taken seriously here! Do you really want a

RE: Automatic Gain Control in Python?

2022-06-06 Thread Steve GS
the input to the intercom and twerk the audio a bit. Footnote: If you double major in psychology and reverse psychology, to they cancel each other out? -Original Message- From: Python-list On Behalf Of Phil Boutros Sent: Monday, June 6, 2022 12:39 PM To: python-list@python.org Subject:

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
Steve GS wrote: > > Maybe you do not understand smart speakers. That is exactly what they do. > You tell them what podcast/broadcast to play, they get it and play it for > you. It is that simple. > > All I want to do is change the audio levels automatically to make it easier > on the ear.

Re: Automatic Gain Control in Python?

2022-06-06 Thread Grant Edwards
On 2022-06-06, Phil Boutros wrote: > As pretty much everyone else has said. Insisting on real-time > processing of something that is itself pre-recorded is non-sensical. Downnloading a file, normalizing/compressing the volume, and then streaming the result is three lines in a bash script

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
Chris Angelico wrote: > > General principle: If you're asking someone else for help, don't tell > them that your way is easier, because the obvious response is "go > ahead then, do it your own way". *Ding Ding Ding*...We have a winner! At least, that's where I dropped off. My experienced

Re: Automatic Gain Control in Python?

2022-05-31 Thread MRAB
: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio > -Original Message- > From: Python-list On > Behalf Of MRAB > Sent: Tuesday, May 31, 2022 9:47 PM > To: python-list@python.org > Subject: Re: Automatic Gain Control in Python? > > On 2022-06-01 02:03, Steve GS w

RE: Automatic Gain Control in Python?

2022-05-31 Thread Steve GS
-list On Behalf Of MRAB Sent: Tuesday, May 31, 2022 9:47 PM To: python-list@python.org Subject: Re: Automatic Gain Control in Python? On 2022-06-01 02:03, Steve GS wrote: [snip] > Maybe you do not understand smart speakers. That is exactly what they do. > You tell them what podcast/broadcast t

Re: Automatic Gain Control in Python?

2022-05-31 Thread MRAB
On 2022-06-01 02:03, Steve GS wrote: [snip] Maybe you do not understand smart speakers. That is exactly what they do. You tell them what podcast/broadcast to play, they get it and play it for you. It is that simple. All I want to do is change the audio levels automatically to make it easier on

Re: Automatic Gain Control in Python?

2022-05-31 Thread Chris Angelico
On Wed, 1 Jun 2022 at 11:05, Steve GS wrote: > > > >Even easier, the few NPR podcasts I just checked now have RSS feeds of > their episodes (as expected). It seems it would be much easier to just > download the latest episode based on the XML file, normalize, send it to > play, done. > > How

RE: Automatic Gain Control in Python?

2022-05-31 Thread Steve GS
>Even easier, the few NPR podcasts I just checked now have RSS feeds of their episodes (as expected). It seems it would be much easier to just download the latest episode based on the XML file, normalize, send it to play, done. How can that possibly be easier? I am playing the podcast and

Re: Automatic Gain Control in Python?

2022-05-31 Thread Phil Boutros
Richard Damon wrote: > From your description, your fundamental problem is you are trying to > automatically "control" things that weren't designed to be automatically > controlled in the way you are attempting. > What you seem to be missing is that you could get the podcasts from a >

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
> I doubt you even need to write any code to do that. Sox can normalize > audio levels in files with a single command. Correct. My phrasing was slightly misleading. There are plenty of applications that should do that. I was thinking of one that Marco Arment makes, but I can’t locate it for

Re: Automatic Gain Control in Python?

2022-05-29 Thread Grant Edwards
On 2022-05-29, Benjamin Schollnick wrote: > Why not just right a 3rd party package to normalize the audio levels > in the digital file? It’ll be faster, and probably easier than > trying to do it in real time… I doubt you even need to write any code to do that. Sox can normalize audio levels

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
us@SGA.Ninja>> > Cc: Richard Damon <mailto:rich...@damon-family.org>>; Python <mailto:python-list@python.org>> > Subject: Re: Automatic Gain Control in Python? > > Okay, you are capturing the audio stream as a digital file somewhere, correct? > > Why not just ri

Re: Automatic Gain Control in Python?

2022-05-29 Thread Michael F. Stemper
On 29/05/2022 10.04, Steve GS wrote: What you seem to be missing is that you could get the podcasts from a browser, and all a browser is is a program. It isn't that much work to write a rudimentary browser in python, especially if you don't actually need to display the results to a user, but

RE: Automatic Gain Control in Python?

2022-05-29 Thread Steve GS
wish for more wishes. Me: I wish I could. From: Benjamin Schollnick Sent: Sunday, May 29, 2022 11:18 AM To: Steve GS Cc: Richard Damon ; Python Subject: Re: Automatic Gain Control in Python? Okay, you are capturing the audio stream as a digital file somewhere, correct? Why not just

Re: Automatic Gain Control in Python?

2022-05-29 Thread Christian Gollwitzer
Am 29.05.22 um 00:45 schrieb Stefan Ram: "Steve GS" writes: Subject: Automatic Gain Control in Python? Automatic Gain Control in Python is trivial. You have a list of samples and normalize them, i.e., divide by max. Slightly simplified [ s/max( samples )for s in samples ]

Re: Automatic Gain Control in Python?

2022-05-29 Thread Martin Schöön
Den 2022-05-29 skrev Christian Gollwitzer : > Am 29.05.22 um 00:45 schrieb Stefan Ram: >> "Steve GS" writes: >>> Subject: Automatic Gain Control in Python? >> >>Automatic Gain Control in Python is trivial. You have a list >>of samples and normalize them, i.e., divide by max. Slightly >>

Re: Automatic Gain Control in Python?

2022-05-29 Thread MRAB
On 2022-05-29 16:17, Benjamin Schollnick wrote: Okay, you are capturing the audio stream as a digital file somewhere, correct? Why not just right a 3rd party package to normalize the audio levels in the digital file? It’ll be faster, and probably easier than trying to do it in real time…

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
with", but I am not sure what you are doing is actually > legitimate. > > Yes, I have been through that. It is totally legal to record NPR broadcasts > for replay as long as they are not retained for than a month or for multiple > replays. Your suggestion to download and play

RE: Automatic Gain Control in Python?

2022-05-29 Thread Steve GS
is actually legitimate. Yes, I have been through that. It is totally legal to record NPR broadcasts for replay as long as they are not retained for than a month or for multiple replays. Your suggestion to download and play a podcast or broadcast is legal only for live replay. My want to record them

Re: Automatic Gain Control in Python?

2022-05-29 Thread Richard Damon
understanding how to grab podcasts. The system is working very well for that. Footnote: “What rhymes with orange?” “No, it doesn’t..” -Original Message- From: Richard Damon On Behalf Of Richard Damon Sent: Saturday, May 28, 2022 11:37 PM To: Steve GS Subject: Re: Automatic Gain Control in

RE: Automatic Gain Control in Python?

2022-05-28 Thread Steve GS
ith orange?” “No, it doesn’t..” -Original Message- From: Richard Damon On Behalf Of Richard Damon Sent: Saturday, May 28, 2022 11:37 PM To: Steve GS Subject: Re: Automatic Gain Control in Python? On 5/28/22 8:17 PM, Steve GS wrote: > "My first thought is you are solving the wrong p

RE: Automatic Gain Control in Python?

2022-05-28 Thread Steve GS
ng editing would be a waste of time and worthless. >> Does it record the whole 48 hours into 1 file? Two files, 24 hours each, one for Saturday, the other Sunday -Original Message- From: Python-list On Behalf Of MRAB Sent: Saturday, May 28, 2022 8:57 PM To: python-list@python.org Subje

Re: Automatic Gain Control in Python?

2022-05-28 Thread MRAB
On 2022-05-29 01:17, Steve GS wrote: "My first thought is you are solving the wrong problem. What seems a better option would be to get your code to actually connect up to the podcast and just download the audio directly, rather than trying to get the smart speaker to play the audio and record

RE: Automatic Gain Control in Python?

2022-05-28 Thread Steve GS
hes. Me: I wish I could. -Original Message- From: Python-list On Behalf Of Richard Damon Sent: Saturday, May 28, 2022 6:53 PM To: python-list@python.org Subject: Re: Automatic Gain Control in Python? On 5/28/22 5:29 PM, Steve GS wrote: > I have an extensive Excel/VBA program that

Re: Automatic Gain Control in Python?

2022-05-28 Thread Richard Damon
On 5/28/22 5:29 PM, Steve GS wrote: I have an extensive Excel/VBA program that hourly calls and plays podcasts through a "smart" speaker. The output of the speaker feeds into another computer that records the m\audio using Audacity. It has become obvious that NPR does not regulate volumes for