Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- import sklearn
- import numpy as np
- audio = tf.read_file('Dataset/bird/0a7c2a8d_nohash_0.wav')
- waveform = tf.contrib.ffmpeg.decode_audio(audio, file_format='mp3', samples_per_second=44100)
- init = tf.global_variables_initializer()
- sess = tf.Session()
- print(sess.run(audio))
Add Comment
Please, Sign In to add comment