Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active July 10, 2019 07:36
Show Gist options
  • Save aravindpai/4f62ba1e8e150ab54d9fa43596c1ae99 to your computer and use it in GitHub Desktop.
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