Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created July 10, 2019 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/aefdcc1f0f97f2cff79df6d0027d5bea to your computer and use it in GitHub Desktop.
Save aravindpai/aefdcc1f0f97f2cff79df6d0027d5bea to your computer and use it in GitHub Desktop.
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