8000 How do I perform audio feature extraction on my own data set? · Issue #6 · google-research/leaf-audio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

How do I perform audio feature extraction on my own data set? #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yuanchengzhi-liuwen opened this issue Apr 21, 2021 · 1 comment

Comments

@yuanchengzhi-liuwen
Copy link

I want to test on my own data set, but I don’t know how to implement it

@ycyoon
Copy link
ycyoon commented Jun 15, 2021

`import leaf_audio.frontend as frontend
import tensorflow as tf
import tensorflow_datasets as tfds

leaf = frontend.Leaf()
filename = 'clip_3626_1989_2283.wav'
raw_audio = tf.io.read_file(filename)
waveform = tf.audio.decode_wav(raw_audio, desired_channels=1, desired_samples=16000)
waveform = tf.transpose(waveform.audio)
leaf_representation = lear(waveform)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0