Created
July 10, 2019 07:38
-
-
Save aravindpai/aefdcc1f0f97f2cff79df6d0027d5bea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os.listdir('../input/voice-commands/prateek_voice_v2') | |
filepath='../input/voice-commands/prateek_voice_v2' | |
#reading the voice commands | |
samples, sample_rate = librosa.load(filepath + '/' + 'stop.wav', sr = 16000) | |
samples = librosa.resample(samples, sample_rate, 8000) | |
ipd.Audio(samples,rate=8000) | |
predict(samples) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment