Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active July 10, 2019 07:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aravindpai/4f62ba1e8e150ab54d9fa43596c1ae99 to your computer and use it in GitHub Desktop.
import random
index=random.randint(0,len(x_val)-1)
samples=x_val[index].ravel()
print("Audio:",classes[np.argmax(y_val[index])])
ipd.Audio(samples, rate=8000)
print("Text:",predict(samples))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment