Repository navigation
Conversation
Store an optional output voice per profile (alongside voice_prompt) and forward it as session.audio.output.voice when starting a GPT-Live WebRTC session. Voice options follow the documented GPT-Live voice list (defaulting to marin when unset): https://developers.openai.com/api/docs/guides/live-conversations#voice-options Co-authored-by: Shelley <shelley@exe.dev>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add per-profile speaker voice selection for GPT-Live voice calls (
POST /api/conversation/{id}/live-session), following OpenAI's documented voice options: https://developers.openai.com/api/docs/guides/live-conversations#voice-optionsserver/profiles.go): Adds avoicefield on profiles (stored in the profile JSON alongsidevoice_prompt, not copied into conversation settings, and preserved when omitted inPUT /api/profiles/{name}). Validates non-empty values against the 38 built-in GPT-Live voices;""continues using OpenAI's default (marin).server/live_session.go): Sendssession.audio.output.voicewhen the active profile has a non-emptyvoice, and omitsaudiowhen unset so the default (marin) is unchanged.ui/src/vue/components/ProfilesModal.vue,ui/src/types.ts,ui/src/services/api.ts,ui/src/styles.css): Adds a Voice → Speaker dropdown (marin (default)pre-selected when unset, plus all other 37 voices) and displaysvoice <name>in the profile list summary when customized.server/profiles_test.go,server/live_session_test.go): Covers profilevoicevalidation, persistence, built-in edit/restore, and forwardingsession.audio.output.voicefor conversations and drafts.Implementation prompt
If you prefer to implement the intent independently rather than use this code diff, use this prompt: