Voice analysis with python

FFT The program shown below is the program created by the experiment

FFT.py


F = np.fft.fft(Y)
Amp = np.abs(F/(frames/2))
freq = np.fft.fftfreq(frames, 1/Fs)
plt.plot(freq[1:int(frames/2)],Amp[1:int(frames/2)])
plt.xlabel("Freqency [Hz]")
fig.savefig("FFT.png ")
plt.show()
plt.close()

↓ Execution result image.png

Y: Voice data Fs: 20000 Hz (sampling frequency)

The FFT can only see up to half the sampling frequency (Nyquist frequency).

Recommended Posts

Voice analysis with python
Voice analysis with python
Data analysis with python 2
Data analysis with Python
[Python] Morphological analysis with MeCab
[Co-occurrence analysis] Easy co-occurrence analysis with Python! [Python]
Sentiment analysis with Python (word2vec)
Planar skeleton analysis with Python
Muscle jerk analysis with Python
3D skeleton structure analysis with Python
Impedance analysis (EIS) with python [impedance.py]
Text mining with Python ① Morphological analysis
Data analysis starting with python (data visualization 1)
Logistic regression analysis Self-made with python
Data analysis starting with python (data visualization 2)
Let's analyze voice with Python # 1 FFT
FizzBuzz with Python3
Scraping with Python
Scraping with Python
Python with Go
Data analysis python
Twilio with Python
Integrate with Python
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
Bingo with python
Zundokokiyoshi with python
Excel with Python
Microcomputer with Python
Cast with python
[In-Database Python Analysis Tutorial with SQL Server 2017]
Marketing analysis with Python ① Customer analysis (decyl analysis, RFM analysis)
Two-dimensional saturated-unsaturated osmotic flow analysis with Python
Machine learning with python (2) Simple regression analysis
2D FEM stress analysis program with Python
[Voice analysis] Find Cross Similarity with Librosa
Let's make a voice slowly with Python
Tweet analysis with Python, Mecab and CaboCha
Principal component analysis with Power BI + Python
Data analysis starting with python (data preprocessing-machine learning)
Two-dimensional unsteady heat conduction analysis with Python
Python: Simplified morphological analysis with regular expressions
Serial communication with Python
Zip, unzip with python
Django 1.11 started with Python3.6
Python with eclipse + PyDev.
Socket communication with Python
Python: Time Series Analysis
Scraping with Python (preparation)
Try scraping with Python.
Learning Python with ChemTHEATER 03
Sequential search with Python
"Object-oriented" learning with python
Handling yaml with python
Solve AtCoder 167 with python
Serial communication with python
[Python] Use JSON with Python
Basket analysis with Spark (1)