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

WhisperFeatureExtractor #80

Open
BaMarcy opened this issue Apr 11, 2024 · 1 comment
Open

WhisperFeatureExtractor #80

BaMarcy opened this issue Apr 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@BaMarcy
Copy link

BaMarcy commented Apr 11, 2024

Hi,

I was wondering how to extract input features with whisper in Unity3d. Could you give a hint?

Thanks

@Macoron
Copy link
Owner

Macoron commented Apr 11, 2024

I'm not sure what you mean by "input features". It looks like original whisper.cpp has a function to get logits of tokens before sampling. There is no binding for this function in Unity yet, but it should be easy to add.

https://github.com/ggerganov/whisper.cpp/blob/13c22321d1ac758ce68a429c23104e234b440769/whisper.h#L406-L411

If you need output from audio encoder, this is not exposed. But maybe this help:
ggerganov/whisper.cpp#1489

@Macoron Macoron added the question Further information is requested label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants