Automatic Gain Control in Python?

Steve GS Gronicus at SGA.Ninja
Tue May 31 21:03:38 EDT 2022


>    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 recording it
for a one-time replay.
Now you want me to write a program that automatically downloads 48 files
then manipulate them for equalization then replay it. It certainly doesn't
sound easier to me. I already have that working using simple
computer-generated vocal commands.

>   Why is it so crucial that it be done "in real time", which it really
isn't, unless you are listening to the live NPR feed.  In the case of
podcasts, *why* would you possible play them via streaming instead of
downloading the publicly accessible file to manipulate however you chose?

It is played "real time" and yes, for the listeners in the community, it is
real time no matter when it was recorded.

>> The code is to: Listen to the audio level for about 10 seconds or so 
>> and raise or lower the level in small increments.

>    Based on what? 
A simple sample rate.

> Do you want a 10 second buffer to continually be analyzed in real time?
>From the output of a speaker, no less? 

Why should the source be of any concern? It is much more than a speaker. It
is pulling in the podcasts/broadcasts and playing them. The audio is also
being sent to a computer through an aux-out cable. Why is that confusing?

>   And which level?  Peak?  Average over...10 seconds?  Are you keeping
track of the previous values to make it match?  

That is what correlation is all about.

>Where is that stored?

In the computer that is running the AGC.

>> It has nothing to do with understanding how to grab podcasts.  The 
>> system is working very well for that.

    OK...then perhaps I/we am/are confused on the limitations of the
program.  What does it "grab", *exactly*?

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.



--
AH#61  Wolf#14  BS#89  bus#1  CCB#1  SENS  KOTC#4 philb at philb.ca
http://philb.ca
--
https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list