signal-processing

How to Extract Spectrogram of sound in Different Duration?

How to Extract Spectrogram of sound in Different Duration? Question: I am working on a gender classification project by voice My dataset contains male and female audio files, which are 4528 .wav files. I want to use the spectrogram to feed the neural network I did this with the librosa library with the (librosa.core.stft) command …

Total answers: 1

Unable to import librosa

Unable to import librosa Question: I did pip install librosa in Anaconda prompt. then uninstalled it, updated numba as i received outdated numba version error message. i installed librosa again still receiving this error while importing it. requesting help to import librosa! Asked By: Pranav Seth || Source Answers: According to the package code, resampy …

Total answers: 1

Unable to distinguish four cosines from a FFT

Unable to distinguish four cosines from a FFT Question: I have four cosines with frequencies 400e-3, 500e-3, 600e-3 and 700e-3 and I am trying to do the FFT of them but under the time I need, I cannot distinguish the four. Is there a way to distinguish the peaks without changing the tmax time of …

Total answers: 1

How can I get only the width at the maximum?

How can I get only the width at the maximum? Question: I am trying to calculate the width at the maximum, but when using peak_widths it returns all the peak widths within the signal. from scipy.signal import chirp, find_peaks, peak_widths import matplotlib.pyplot as plt x = np.linspace(0, 6 * np.pi, 1000) y = np.sin(x) + …

Total answers: 1

How to convert x-axis from samples into time (s) and frequency (Hz) with python?

How to convert x-axis from samples into time (s) and frequency (Hz) with python? Question: here I have plotted an ecg signal in time-domain and frequency-domain with fft(): time-domain frequency-domain but as you can see, the x-axis of both images are still in samples. I have searched some references how to convert samples into time …

Total answers: 2

Generate colors of noise in Python

Generate colors of noise in Python Question: I would like to use Python to generate different colors of noise, just like Wikipedia mentions : https://en.wikipedia.org/wiki/Colors_of_noise. For example, White, Pink, Brownian, Blue and Violet noise. And would like to have similar spectrums just like the website. It would be a great help if I could just …

Total answers: 3

Denoising linear autoencoder learns to output a constant instead of denoising

Denoising linear autoencoder learns to output a constant instead of denoising Question: I am trying to create a denoising autoencoder for 1d cyclic signals like cos(x) etc. The process of creating the dataset is that I pass a list of cyclic functions and for each example generated it rolls random coefficients for each function in …

Total answers: 1

Python: FM Demod Implementation

Python: FM Demod Implementation Question: I am thinking of analyzing a time-series of some particular values as it were a frequency-modulated signal. I was looking for a Python implementation of an FM demodulator. I know there is a demodulator function in Matlab and Octave; for Python I found this FreqDemod package, but it doesn’t seem …

Total answers: 1

Python: Get volume decibel Level real time or from a wav file

Python: Get volume decibel Level real time or from a wav file Question: For a project work, I need to measure the volume level either from a recorded audio file or in real time recording using a mic. After my primary research, I have tried using soundfile library. The file was read using soundfile and …

Total answers: 2