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

Proxy & log speech-to-speech sessions on OpenAI Realtime API. #110

Merged
merged 17 commits into from
Nov 1, 2024

Conversation

kevin1
Copy link
Contributor

@kevin1 kevin1 commented Oct 29, 2024

No description provided.

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-proxy ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 11:48pm

@kevin1 kevin1 marked this pull request as ready for review November 1, 2024 00:17
@kevin1 kevin1 requested a review from ankrgyl November 1, 2024 00:18
const audioFormatTypeSchema = z.enum(["pcm16", "g711_ulaw", "g711_alaw"]);
type AudioFormatType = z.infer<typeof audioFormatTypeSchema>;

const turnDetectionServerVadTypeSchema = z.object({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: split the schema definitions into a separate file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if we shuold move this into the SDK (perhaps in a separate change). So you can use it outside of the proxy too 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in a separate change. Probably also needs some API cleanup before we can commit to maintaining it as part of the SDK.

@kevin1 kevin1 merged commit b111ce9 into main Nov 1, 2024
4 checks passed
@kevin1 kevin1 deleted the kevin/realtime branch November 1, 2024 23:51
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

Successfully merging this pull request may close these issues.

2 participants