Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Someoneece authored Jan 8, 2020
1 parent 2347008 commit ab01227
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,28 @@ Syntax highlighted code block
**Bold** and _Italic_ and `Code` text

[Link](url) and ![Image](src)
import matplotlib.pyplot as plt
from scipy.io import wavfile as wav
from scipy.fftpack import fft
import numpy as np
import wave
import sys

spf = wave.open('/content/file_example_WAV_1MG.wav','r')

#Extract Raw Audio from Wav File
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
fs = spf.getframerate()
fft_out = fft(signal)


Time=np.linspace(0, len(signal)/fs, num=len(signal))

plt.figure(1)
plt.title('Signal Wave...')
plt.plot(Time,fft_out)
plt.show()
```

For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
Expand Down

0 comments on commit ab01227

Please sign in to comment.