python3 play a mp3
#pip install playsound
from playsound import playsound
playsound('your mp3 file.mp3')
python3 play a mp3
#pip install playsound
from playsound import playsound
playsound('your mp3 file.mp3')
how to load wav file python
import matplotlib.pyplot as plt
from scipy import signal
from scipy.io import wavfile
sample_rate, samples = wavfile.read('path-to-mono-audio-file.wav')
frequencies, times, spectrogram = signal.spectrogram(samples, sample_rate)
plt.pcolormesh(times, frequencies, spectrogram)
plt.imshow(spectrogram)
plt.ylabel('Frequency [Hz]')
plt.xlabel('Time [sec]')
plt.show()
how to load wav file with python
from scipy.io import wavfile
samplerate, data = wavfile.read('./output/audio.wav')
# method 2
import librosa
#Store the sampling rate as `sr`
y, sr = librosa.load(filename)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us