Guest User

Untitled

a guest
May 28th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import tensorflow as tf
  2. import sklearn
  3. import numpy as np
  4. audio = tf.read_file('Dataset/bird/0a7c2a8d_nohash_0.wav')
  5. waveform = tf.contrib.ffmpeg.decode_audio(audio, file_format='mp3', samples_per_second=44100)
  6. init = tf.global_variables_initializer()
  7.  
  8. sess = tf.Session()
  9.  
  10. print(sess.run(audio))
Add Comment
Please, Sign In to add comment