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

.wav file issues #74

Closed
JBlank19 opened this issue May 24, 2024 · 5 comments
Closed

.wav file issues #74

JBlank19 opened this issue May 24, 2024 · 5 comments

Comments

@JBlank19
Copy link

Good day!

The audio transcription node does not work with most of the .wav files. For example the .wav files produced from godot itself when recording the mic. However, it does work with the capture node. It seems some issue with the formatting of the input data.

@fire
Copy link
Member

fire commented May 25, 2024

As far as I know we wrote the capture node because we weren't able to get the record node to work 3-4 years ago.

@AllenDang
Copy link

@fire My god, I just wasted like half a day trying to figure out why the recorded wav doesn't work...

@fire
Copy link
Member

fire commented Jun 21, 2024

@AllenDang Here was the original design documentation. godotengine/godot-proposals#2013

@Ughuuu
Copy link
Collaborator

Ughuuu commented Jul 8, 2024

The .wav will not work since the API receives the direct sound buffer data after/if you would decode the .wav:
Array transcribe(PackedFloat32Array buffer, String initial_prompt, int audio_ctx);

If you just read the .wav file, I think that would have some extra encoding data.

@Ughuuu
Copy link
Collaborator

Ughuuu commented Aug 15, 2024

Will update readme to say that .wav doesn't work and that transcribe currently only works with a float32 buffer. For wav you have to decode it yourself.

@Ughuuu Ughuuu closed this as completed Aug 15, 2024
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

4 participants