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

client.appendInputAudio not working #82

Open
aarizirf opened this issue Dec 3, 2024 · 2 comments
Open

client.appendInputAudio not working #82

aarizirf opened this issue Dec 3, 2024 · 2 comments

Comments

@aarizirf
Copy link

aarizirf commented Dec 3, 2024

Seems like server-side VAD isn't working. I'm routing audio from ReactJS client through Node.JS WebSocket and then through the RealtimeClient.

GPT never creates a response, or updates the conversation. I can't pick up on these events.

Anyone else have this problem? Did manual (not server_vad) end up working?

@aarizirf
Copy link
Author

aarizirf commented Dec 3, 2024

Nevermind, got it working
const buf = new Uint8Array(e.data).buffer;
the crucial line to convert ArrayBuffer(8192) --> ArrayBuffer that can used in client.appendInputAudio
Wish this was included in docs

@BadMask121
Copy link

Screenshot 2024-12-16 at 4 56 48 PM this worked for me

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