Skip to content

Add realtime audio device config#12849

Merged
aibrahim-oai merged 5 commits intomainfrom
codex/realtime-audio-config-clean
Feb 26, 2026
Merged

Add realtime audio device config#12849
aibrahim-oai merged 5 commits intomainfrom
codex/realtime-audio-config-clean

Conversation

@aibrahim-oai
Copy link
Collaborator

Summary

  • add top-level realtime audio config for microphone and speaker selection
  • apply configured devices when starting realtime capture and playback
  • keep missing-device behavior on the system default fallback path

Validation

  • just write-config-schema
  • cargo test -p codex-core realtime_audio
  • cargo test -p codex-tui
  • just fix -p codex-core
  • just fix -p codex-tui
  • just fmt

Add microphone and speaker selection config for realtime audio.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-config-clean branch from 7063b84 to f573b67 Compare February 26, 2026 01:58
aibrahim-oai and others added 2 commits February 25, 2026 18:03
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai
Copy link
Collaborator Author

@codex review this

fn realtime_audio_loads_from_config_toml() -> std::io::Result<()> {
let cfg: ConfigToml = toml::from_str(
r#"
[realtime.audio]
Copy link
Collaborator

Choose a reason for hiding this comment

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

just audio?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@codex do this change

Copy link
Contributor

Choose a reason for hiding this comment

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

Summary

Testing

  • cd /workspace/codex/codex-rs && just write-config-schema
  • cd /workspace/codex/codex-rs && just fmt
  • cd /workspace/codex/codex-rs && cargo build -p codex-linux-sandbox
  • cd /workspace/codex/codex-rs && cargo test -p codex-core config::tests::realtime_audio_loads_from_config_toml
  • cd /workspace/codex/codex-rs && cargo test -p codex-core config::edit::tests::blocking_builder_set_realtime_audio_persists_and_clears
  • ⚠️ cd /workspace/codex/codex-rs && cargo test -p codex-core realtime_audio (fails on suite::realtime_conversation::inbound_spawn_transcript_starts_turn_and_does_not_block_realtime_audio with a timeout in this environment)

Committed on branch work as:
222664cSwitch realtime audio config to top-level audio table

Also created a follow-up PR entry via make_pr:
“Follow-up: move realtime audio config to top-level [audio]”.

View task →

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@aibrahim-oai aibrahim-oai merged commit a0e86c6 into main Feb 26, 2026
26 of 33 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/realtime-audio-config-clean branch February 26, 2026 23:08
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants