Re: How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-28 Thread Lars Liedtke via Python-list

There are also the concepts of Cepstrum 
(https://en.wikipedia.org/wiki/Cepstrum) and Quefrency, which are derivatives 
of Spectrum and Frequency, with which you can even do speaker-recognition, but 
also detection of events.


Lars Liedtke
Lead Developer

[Tel.]  +49 721 98993-
[Fax]   +49 721 98993-
[E-Mail]l...@solute.de


solute GmbH
Zeppelinstraße 15
76185 Karlsruhe
Germany

[Marken]

Geschäftsführer | Managing Director: Dr. Thilo Gans, Bernd Vermaaten
Webseite | www.solute.de 
Sitz | Registered Office: Karlsruhe
Registergericht | Register Court: Amtsgericht Mannheim
Registernummer | Register No.: HRB 748044
USt-ID | VAT ID: DE234663798



Informationen zum Datenschutz | Information about privacy policy
https://www.solute.de/ger/datenschutz/grundsaetze-der-datenverarbeitung.php




Am 26.10.24 um 18:07 schrieb Thomas Passin via Python-list:
On 10/25/2024 12:25 PM, marc nicole via Python-list wrote:
Hello Python fellows,

I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.

I am using PyAudio to collect the sound through my PC mic as follows:

FRAMES_PER_BUFFER = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 48000
RECORD_SECONDS = 2import pyaudio
audio = pyaudio.PyAudio()
stream = audio.open(format=FORMAT,
channels=CHANNELS,
rate=RATE,
input=True,
frames_per_buffer=FRAMES_PER_BUFFER,
input_device_index=2)
data = stream.read(FRAMES_PER_BUFFER)


I want to know whether or not data contains voice signals or empty sound,
To note that the variable always contains bytes (empty or sound) if I print
it.

Is there an straightforward "easy way" to check whether data is filled with
empty noise or that somebody has made noise/spoke?

It's not always so easy.  The Fast Fourier Transform will be your friend. The 
most straightforward way would be to do an autocorrelation on the recorded 
interval, possibly with some pre-filtering to enhance the typical vocal 
frequency range.  If the data is only noise, the autocorrelation will show a 
large signal at point 0 and only small, obviously noisy numbers everywhere 
else. There are practical aspects that make things less clear.  For example, 
voices tend to be spiky and erratic so you need to use small intervals to have 
a better chance of getting an interval with a good S/N ratio, but small 
intervals will have a lower signal to noise ratio.

Human speech is produced with various statistical regularities and these can 
sometimes be detected with various means, including the autocorrelation.

You also will need to test-record your entire signal chain because it might be 
producing artifacts that could fool some tests.  And background sounds could 
fool some tests as well.

Here are some Python libraries that could be very helpful:

librosa (I have not worked with this but it sounds right on target);
scipy.signal (I have used scypi but not specifically scipy.signal);
python-speech-features (another I haven't used);
   https://python-speech-features.readthedocs.io/en/latest/

Other people will know of others.
--
https://mail.python.org/mailman/listinfo/python-list


Call for Participation: Python devroom @ FOSDEM 2025

2024-10-28 Thread Marc-Andre Lemburg via Python-list


 Call for Participation

We are happy to announce that we will again be running a*Python devroom 
at FOSDEM 2025*.


This year's edition will be exclusively in-person, and take place on 
February 1 and 2, with the Python devroom being held on Sunday, February 2.


If you haven’t heard about FOSDEM before or are looking for more 
information, you can visit the official website athttps://www.fosdem.org/.


As usual, we are looking for multiple Pythonistas to help us shape the 
devroom schedule. We are now open to receiving your proposals ! With 
over 8500 participants, FOSDEM is the perfect place to share your story 
and meet fellow Python enthusiasts.


Good luck to everyone applying. We’re looking forward to meeting you all 
at FOSDEM 2025 !



   About FOSDEM

 * Official FOSDEM 2025 website 
 * FOSDEM Code of Conduct 

FOSDEM is a free and non-commercial event organized by the community for 
the community.


The goal is to provide free and open source software developers and 
communities a place to meet to:


 * get in touch with other developers and projects;
 * be informed about the latest developments in the free software world;
 * be informed about the latest developments in the open source world;
 * attend interesting talks and presentations on various topics by
   project leaders and contributors;
 * to promote the development and benefits of free software and open
   source solutions.

Participation and attendance is totally free, though the organizers 
gratefully accept donations and sponsorship.



   Essential Information

The Python devroom will be held on February 2 2025, from 09:00 until 
17:00 CET.


 * *Submission deadline: December 1 2025*
 * There will be no extension of the deadline
 * Announcement of selected talks: December 15 2025
 * The reference time is Brussels local lime (CET).
 * Talk format: 25 minutes presentation, including Q&A, if any.
   In-person only.
 * Live streaming of the talks will be available.


   Speaker Guidelines

Please submit your talk proposals using theCFP submission page 
.


 * FOSDEM is using a self-hosted Pretalx installation for managing talk
   submissions. You will need to create an account, if you don’t
   already have one.
 * In the Submission notes field, please also confirm that if your talk
   is accepted, you will be able to attend FOSDEM and deliver your
   presentation. We will not consider proposals from prospective
   speakers who are unsure whether they will be able to secure funds
   for travel and lodging to attend FOSDEM. Sadly, we are not able to
   offer travel funding for prospective speakers.
 * You will need to select the "*Python*" track
 * Keep in mind presentations must be related to Python. All
   presentations will be recorded and made available under the Creative
   Commons licenses CC-BY-SA or CC-BY. Captured footage will later be
   shared online using the FOSDEM archives. By submitting you also
   agree to these terms.


   List of Desirable Topics

We'd like to make the devroom topics as diverse as possible, so we are 
looking to offer a mixture of presentations, short tutorials, demos, 
live coding, etc. Aside from the usual talks about free and open source, 
we will also gladly welcome talks about e.g.


 * Best practices for Python developers
 * New developments in Python land
 * How to get started with a specific library/framework
 * Launching and growing Python communities
 * How Python is being used for education
 * Python for Hardware / Infrastructure
 * Security tools in Python and securing Python
 * Data science, AI and Machine Learning
 * Data engineering and management
 * Video Games (or game-related tooling) written in Python
 * MicroPython, CircuitPython, embedded software
 * Scaling Python applications


   Volunteers

We will also call for volunteers to help us run the event and help us 
with the devroom operation. Please email the organizers, in case you are 
interested.



   Organizers

You can reach out directly to the organizers, if you have a specific 
request or question:


 * Marc-André Lemburg: mal+fosdem [at] egenix.com
 * Rosie Wood: rwood [at] turing.ac.uk
 * Ludo


--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Oct 28 2024)

Python Projects, Coaching and Support ...https://www.egenix.com/
Python Product Development ...https://consulting.egenix.com/



::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48

D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   https://www.egenix.com/company/contact/
 https://www.malemburg.com/
--
https://mail.python.org/ma