Skip to content
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

how to convert audio data to np array #19

Open
ericosmic opened this issue Sep 24, 2024 · 0 comments
Open

how to convert audio data to np array #19

ericosmic opened this issue Sep 24, 2024 · 0 comments

Comments

@ericosmic
Copy link

I want to use audio data get from mic_recorder() as input to transformers.Wav2Vec2Tokenizer, I need to convert raw audio data to np.array , I use 'np.frombuffer' :
audio = np.frombuffer(audio_file['bytes'], type=float)
and get error:
image

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

1 participant