Use ChatGPT account preferences for Codex voice chat (#63810)

## Why

Codex stored voice selections in `realtime.voice` and supplied voice overrides when starting realtime sessions. Reading and saving the ChatGPT account preference lets Codex use the same voice selection as ChatGPT.

## What changed

- Add experimental `account/voiceSettings/read` and `account/voiceSettings/write` methods. The terminal voice picker shows the selected voice and available display names, then saves the chosen voice ID to the connected app server's ChatGPT account, including when the server is remote.
- Require ChatGPT sign-in for terminal voice chat and create its WebRTC calls through the ChatGPT backend.
- Remove voice overrides from realtime session startup. Existing `realtime.voice` entries still parse but are ignored.

## Testing

Cover voice picker loading and saving, remote catalog failures, the ChatGPT sign-in requirement for local calls, and omission of voice overrides from realtime call payloads.

GitOrigin-RevId: 9e6f30b8020c47701d3c1604075063924f191685
This commit is contained in:
Jackson Moody
2026-11-25 02:31:54 +00:00
committed by copyberry
parent 986a6b3b11
commit e2c31f625a
78 changed files with 828 additions and 1591 deletions
@@ -32,7 +32,6 @@ fn realtime_start_debug_redacts_text_and_transport() {
voice_session_id: Some(secret.to_owned()),
transport: None,
version: Some(RealtimeConversationVersion::V3),
voice: None,
};
for transport in [
ConversationStartTransport::ExistingCall {
-44
View File
@@ -224,8 +224,6 @@ pub struct ConversationStartParams {
pub transport: Option<ConversationStartTransport>,
/// Overrides the configured realtime protocol version for this session only.
pub version: Option<RealtimeConversationVersion>,
/// None inherits the thread setting; Some(None) selects the provider default.
pub voice: Option<Option<RealtimeVoice>>,
}
/// Authentication selected by the embedding host for an existing call.
@@ -337,48 +335,6 @@ pub enum RealtimeVoice {
Viola,
}
impl RealtimeVoice {
pub fn wire_name(self) -> &'static str {
match self {
Self::Alloy => "alloy",
Self::Arbor => "arbor",
Self::Ash => "ash",
Self::Aube => "aube",
Self::Ballad => "ballad",
Self::Breeze => "breeze",
Self::Bubbie => "bubbie",
Self::Cedar => "cedar",
Self::Coral => "coral",
Self::Cove => "cove",
Self::Echo => "echo",
Self::Ember => "ember",
Self::Haetsal => "haetsal",
Self::Hanul => "hanul",
Self::Himari => "himari",
Self::Juniper => "juniper",
Self::Leher => "leher",
Self::Maple => "maple",
Self::Marin => "marin",
Self::Miko => "miko",
Self::Neer => "neer",
Self::Porto => "porto",
Self::Rindo => "rindo",
Self::Rio => "rio",
Self::Rivage => "rivage",
Self::Sage => "sage",
Self::Selva => "selva",
Self::Shimmer => "shimmer",
Self::Sol => "sol",
Self::Sonna => "sonna",
Self::Spruce => "spruce",
Self::Tinta => "tinta",
Self::Vale => "vale",
Self::Verse => "verse",
Self::Viola => "viola",
}
}
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]