Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

This night methinks is but the daylight sick. -- William Shakespeare, "The Merchant of Venice"


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

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

1
Subject: Re: How to check whether audio bytes contain empty noise or actual voice/signal?
From: Lars Liedtke
Newsgroups: comp.lang.python
Organization: solute GmbH
Date: Mon, 28 Oct 2024 08:57 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: lal@solute.de (Lars Liedtke)
Newsgroups: comp.lang.python
Subject: Re: How to check whether audio bytes contain empty noise or actual
voice/signal?
Date: Mon, 28 Oct 2024 09:57:09 +0100
Organization: solute GmbH
Lines: 93
Message-ID: <mailman.55.1730106199.4695.python-list@python.org>
References: <CAGJtH9TqEpGjQi+KYNrSV3+UtVO-jjFLK02N9MEA0uuQvr11qQ@mail.gmail.com>
<0cb64539-790f-40e8-818a-74e32bd476a0@tompassin.net>
<2728f80a-bb15-400c-9c0a-2d7df57cf78f@solute.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de iXK60XuvAv52SgM1FY7EDQu7F9ftMY3r4eFyYExUBO1g==
Cancel-Lock: sha1:gt9pQnEbVC6ac48lmaGyGuVR1Y8= sha256:GA3vS4l1HM9QtCjpE6DyyE4pU4zVPwrgZKuyIyG/yKw=
Return-Path: <lal@solute.de>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.172
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.66; '*S*': 0.01; 'stream': 0.04;
'containing': 0.05; 'variable': 0.05; 'else.': 0.07; 'tests':
0.07; 'everywhere': 0.09; 'filled': 0.09; 'obviously': 0.09;
'schrieb': 0.09; 'url:de': 0.09; '1024': 0.16; '721': 0.16;
'artifacts': 0.16; 'events.': 0.16; 'frequency,': 0.16; 'gmbh':
0.16; 'mic': 0.16; 'noise': 0.16; 'noisy': 0.16; 's/n': 0.16;
'sitz': 0.16; 'sounds': 0.16; 'spectrum': 0.16; 'url-ip:134/8':
0.16; 'url:latest': 0.16; 'voices': 0.16; 'wrote:': 0.16;
'python': 0.16; 'developer': 0.16; 'libraries': 0.19; 'pm,': 0.19;
'to:addr:python-list': 0.20; 'url:wiki': 0.23; 'received:de':
0.23; 'list,': 0.24; 'actual': 0.25; 'register': 0.25; 'follows:':
0.26; 'background': 0.28; 'example,': 0.28; 'header:User-Agent:1':
0.30; 'subject:How': 0.31; 'question': 0.32; 'empty': 0.32;
'python-list': 0.32; 'signal': 0.32; 'transform': 0.32;
'header:Organization:1': 0.32; 'but': 0.32; 'there': 0.33; 'header
:In-Reply-To:1': 0.34; 'possibly': 0.36; 'people': 0.36; 'main':
0.37; 'using': 0.37; "it's": 0.37; 'could': 0.37; 'hard': 0.37;
'way': 0.38; 'use': 0.39; 'finding': 0.39; 'received:213': 0.40;
'statistical': 0.40; 'want': 0.40; 'including': 0.60; 'skip:i 20':
0.62; 'policy': 0.62; 'format': 0.62; 'germany': 0.62; 'lower':
0.62; 'skip:z 10': 0.62; 'here': 0.63; 'less': 0.64; 'your': 0.64;
'url-ip:172.67/16': 0.64; 'privacy': 0.65; 'url-ip:104.16/16':
0.65; 'url:png': 0.66; 'lead': 0.67; 'numbers': 0.67; 'rate':
0.67; 'worked': 0.67; 'entire': 0.67; 'right': 0.68;
'amtsgericht': 0.69; 'clear.': 0.69; 'collect': 0.69; 'enhance':
0.69; 'small,': 0.69; 'voice': 0.69; 'audio': 0.70;
'url:wikipedia': 0.70; 'skip:f 30': 0.71; 'chance': 0.71;
'url:php': 0.75; 'chain': 0.76; 'detection': 0.76; 'speech': 0.76;
'dr.': 0.77; 'significant': 0.78; 'practical': 0.84; 'court:':
0.84; 'easy.': 0.84; 'frequency': 0.84; 'means,': 0.84; 'signals':
0.84; 'subject: \n ': 0.84; 'subject:voice': 0.84; 'url:cdn':
0.84; 'vocal': 0.84; 'channels': 0.91; 'fool': 0.91; 'somebody':
0.91; 'tend': 0.91; 'aspects': 0.93
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=YW/kQ8TnYqFEcRgiLzg/qvgIW72RnXs5U4vDoQRN7qNtLKTPcYoPGEQSyLmzOwTR44H5b4B7+OJijRCng0GMGTxeEW0gLYyKDjk1UpR5lFtvEfgt92n3/INEVytZ+UcB84LNB0zNTZuVnFcwC/q5Xm24gkh7KASvKeXaENDmZTQIgdUegT5ZLESI2AEeUiqPIgJ+S+jro4HQ9kXNGI9sMA7w+3Iw5sTFp7N2bo7mfJDf1JgqcJKesGEFnLtdVu+EU2hed+A50zqaafkBBP0Mwr+lUNpl6eQDZNAEcPQ/h4KA/MsFOr3T2CFaIa4yneJSqhXBU0WQ1TtuI3eve75/fA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector10001;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=rOcVmzzlymnMYtNbTtN4AO4DigOALaFAeEnd/ksED4k=;
b=S4P9MBCmEr4Bcx3cW9l5XtvLRGB8cnZwrhIga1Lr/aKGAnfb37fOVcZ0YpaYI4M6tCUdQUHlwK9wZeaGAhfolYzGIIcH0T7TwDptXBhTZ2jH8A3o1er/VlcUAKH/mWKkZRAvPPOmuhqet9zYMx9blRmdug5D4Ua62NcaYU28qyz0TbptTfnXs4aJ8QVrE1gq0EIueqDjcEEf9cETptQ4KC0rq3+6vj+QNPvXoAp1R8/UR7dK9TuoVuCswFP+/lwCrirgnBkm61e/rPZxHTF49t9n6qytzTuLGULSjyE4GNEmqsuumw0ugxR2er4ScSwXl/4ixEN4DFlE19GFvbIATg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=solute.de; dmarc=pass action=none header.from=solute.de;
dkim=pass header.d=solute.de; arc=none
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=solute.de;
User-Agent: Mozilla Thunderbird
Content-Language: en-US, de-DE
Autocrypt: addr=lal@solute.de; keydata=
xsFNBGS1GU8BEACtAZgNHQoDYYlzrxTEpPBJ7iHmxsIvtdP6Tp/0fe774PEUbe0grtic/hJC
JW5gMo+u7MsnZ7X8dLDkMa0sibFJFmD0NoV2QVxyj1B5BfkeQ025viCPFILE/zweuQSwVZEy
ETapmjZVYonNLn8kJpSU0rAyQ5fs/0qhYhF8uN0/Zx9swpjg6Lo/4frapCLLBcqfuls4QGQy
uGYkJPMf8LKeDdb90QdL5rw6HfIsvp3awLBvxYikHO1FXtCBpt3Yb3HhXerns3vbGX8eaSH2
stsdBUpLFU1pLZDZrSs/z4kYtCAfCZp6qwwBqOZLcBu6dov1UeT/l21PeI3ZYFty6/CEhZjP
YdqpxvAN+YuKmTliq4HKoc+iaSON2aHEJeb22OMjs2HfEgGbICO/AQIu12weeh3voJ0QY68o
9gqRG/JU0LZ1zMHhRxgBF9siuOtwuJ/5YLC/6R6pZFglsdB/mjEWg0Z+a5fjQMoiOMNtQLdX
VZvedDq8RGPVlN2tkCri4EZyUciTOdmzRHnsmMFVdSCzGafdTRVk2WnZAjnp+Z7t9M8s/ori
NqXuxAo4ubA9S3Pxbf6xb5ajKgxOHbpa6YSoxL+bvWiFd0+/8d56q0ve0Zt0xxrs0+ClVdyg
s+8f6YQUhnquuRMMeSbqFOEt8MqLt3YrvS1w8VkoVgTetubwGwARAQABzRxMYXJzIExpZWR0
a2UgPGxhbEBzb2x1dGUuZGU+wsGHBBMBCAAxFiEE5WllqHcCWeUykKDU6D/kTjn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kVwYk6Zyp0285U2K8FKFQCKVroFm9jBr20AL2pYDU1aCNxoAO5
vXtW/dDJi28vvdyXPN5K33xtf+SFMcedqkCc
In-Reply-To: <0cb64539-790f-40e8-818a-74e32bd476a0@tompassin.net>
X-ClientProxiedBy: FR0P281CA0261.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:b5::15) To AM8PR05MB7395.eurprd05.prod.outlook.com
(2603:10a6:20b:1d0::15)
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: AM8PR05MB7395:EE_|VE1PR05MB7391:EE_
X-MS-Office365-Filtering-Correlation-Id: 7065cdfa-442d-4dc1-5520-08dcf72e824a
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|8096899003;
X-Microsoft-Antispam-Message-Info: /IlHO6PgdL/WGo15nmjcdBHjtxr7mE0YHZri++0CaYuEY
/yYcd11WkqP6PMzUTh0AtBbVWHVXqxpP/0gOGU3s3qzo2
CtjtaV/QIsnmKx8ZjRMNNZtVfM2rdvRcl42jKwTKsXiGP
chR4fzoavuoH9MEKh1/nE+emyf+5DNiETtkWkd7yelYWR
r2XyNo5eg2vIGzjqaKj0gXjbBFUt8okqfUyl9MamMduIJ
alCAeJq8LAOYLubc9Nw834yFu4YMozYp9HQA21/5KNssI
5jfD8CrcC8YeaWlUBEe/jIsqR0bs7dGNGZ2GHd6Cyz03k
8vq3gvueUWSLJGMmsYt9P+qqyeFguScf/TqDNcTwkeQ9C
wHylhPRAeDjGb8/PbpIDAjDnAnkpER1+nePNDywcmK0Zg
CwZh3IxJx7zjsPrigzqULQjKhOr1pAzl/VoD9MHhoacF7
g0Jejwsr223SKotkvcPcwh+dkdzrwIs7dOMA+4POV4Afy
c1XdpRaA+9GKWMuQ8zscY+41jgH6ARY3jxLhbOVco6Tbn
Yr1NYfx5Xi/uOWeGfSvAYK3GoQQflUAUA/PgzQf3WibnF
SVkBdwXx3ztgIXcF2W4uLNkOI7d7/M0+Ar4aqA8FLMeD7
6ROt06t6/lbRflpk3sfhwHOa/Kpae78XraQk7QdY05tri
6OEogEuloK7PuIml3oy7VAu9BXTVw0P3e1NSmrYppkuiV
mjt/PIsI9SmCpjqCD9ojqoejwJfPlPZx0uv30/C2ITHXa
PfLIslPwMjQsy0Aqe1pJ2KRZE4HJ6hNjZdh9Xw3r+qpCF
/qnepSiCUGaSI085Xgdki23csHOKPZnhKwRZinAz+8zsv
5ug3X3oocv1+MOiSjlZ+Q5yiwHzSSWijKsMsv9z85MJDF
lnc9MB4f5Bv2ZZBTUG+YQ4dAtaK9FI78sj7l5BsUer82f
g4QYCzCDyY1Lr5A5Rr+F7ssPAdpaFKOH+dCOJq7b9EMD4
8ixi+0P+Tlrkc/EGlyy+J3WdaefppiLlMUs1howgCFDAy
PoFHZeKOExaEdAb113p/9LTjhqdhTZPGykSHlA/BrhYek
t28jdKfGx0NCY9kkzcJniQ8fnT23/ET4ICsIUaCy85aIu
8G/GUBNnn9VqTsXDw2F8ViSrWH/Bfo0GATxVWhiO/5lob
r5wXIa1jbXDl5elOL9kAd9LwqGj9HYVmwZOX10QOYMreD
/1ArzY4VdgTPOqv3SUflbU/iS8IibW5wn4oQZi+9oxEH3
bQPoFplkK/YXnh1a+3Vm
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:AM8PR05MB7395.eurprd05.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230040)(366016)(1800799024)(376014)(8096899003); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: J9wFh7J0KCPZb3BrKqkR3z6JicV227U2WCJAp2aQRsv8V
4alWQSd637lPu7GvLOBwF3YeEwGxQbfqHCZGIp+qUJtuh
MIsA2thGKGktnZH+zbAOb16XYtRkF42tC7QswKaj8wrES
EvYktJ5rk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8qYpzpu3xfzmSkLiUYToUv8IkC
UgVw2rj0JRolAI7FYU6dV1C4Y0huN9tjX9vdLRUmxSNxU
oSfQ6/VBYuDqQtznLDNjie+v7LjH/sEFPO5GPOmMvQymG
MO5rITTOTzUvFUzo0u1uMrQvpPwu8j/9Dg7szeCftTrOL
Xif3lgPEElYFYSK85abOGkx8AcFll5YOaphNxBIUqyejq
pwFcwT5Uz897d/Cnk2M9oxTR4TmG/rfQp240cBskd2GaP
/PjfAczyuvfNPcWFnsy313XjJSUK9lUyNXS40p1AWHaZ0
he6GZ4dPb02yccbuSlV1AzkxDAgwm2ZX/EM9I3zU0/V2v
qwlTseiM64n6nmV367+Z65BbqVEKPohC6hRQMIWOYGRgv
tudE=
X-MS-Exchange-CrossTenant-Network-Message-Id: 7065cdfa-442d-4dc1-5520-08dcf72e824a
X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7395.eurprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 08:57:10.9442 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 54df0b8c-c3e7-4da4-b554-24cf2be8f1dc
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: +NeZh5vFKBiYKc147VIgbgL8C4LVmbwuyZeYo6jlgRggInW57c9C8EHMA6K18wpQ
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR05MB7391
X-OriginatorOrg: solute.de
X-EsetResult: clean, is OK
X-EsetId: 37303A299561B150677C65
X-C2ProcessedOrg: 6b8a70a0-c2cb-4e72-a27d-0fc2d5a54e94
X-CrossPremisesHeadersFilteredBySendConnector: solute-exc2019.solute.ka
X-OrganizationHeadersPreserved: solute-exc2019.solute.ka
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <2728f80a-bb15-400c-9c0a-2d7df57cf78f@solute.de>
X-Mailman-Original-References: <CAGJtH9TqEpGjQi+KYNrSV3+UtVO-jjFLK02N9MEA0uuQvr11qQ@mail.gmail.com>
<0cb64539-790f-40e8-818a-74e32bd476a0@tompassin.net>
View all headers

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] lal@solute.de<mailto:lal@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 <http://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.

1

rocksolid light 0.9.8
clearnet tor