Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 42 |
Nodes: | 6 (0 / 6) |
Uptime: | 01:03:33 |
Calls: | 220 |
Calls today: | 1 |
Files: | 824 |
Messages: | 121,521 |
Posted today: | 6 |
I have a hard time finding a way to check whether audio data samples are >containing empty noise or actual significant voice/noise.
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,If you do a spectral analysis and find peaks at certain frequencies,
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?
Thanks.
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?
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.
marc nicole <mk1853387@gmail.com> wrote or quoted:
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.The Spectral Flatness Measure (SFM), also called Wiener entropy, can
separate the wheat from the chaff when it comes to how noise-like
a signal is.