mirror of
https://github.com/openai/codex.git
synced 2026-11-18 07:00:27 +00:00
Add bounded GStreamer playback components to the voice host (#43244)
## What changed - Add a `GstAudioSink` subclass backed by a bounded mono `F32LE` playback writer, with partial writes, cancellation on speaker epoch changes, and delay accounting for queued samples and pending device output. - Recreate the CPAL output stream and discard buffered audio when speaker controls change the epoch, preventing stale audio from surviving suppression. - Add GStreamer dependencies, adjust Windows Bazel native-tool selection, and allow the helper handshake time to load startup-linked libraries. - Separate installed-client tests from protocol lifecycle tests and supply native startup libraries in test packages. ## Testing Add unit coverage for partial writes, sample accounting, suppression cancellation, stale writers, device delay, invalid samples, and stalled consumption. GitOrigin-RevId: c48c48d2fee00659cf6f8a4039a6745385cb77cd
This commit is contained in:
1 parent
ac192cd793
commit
9daf7d22ca
14 files changed
+1132
-342
No files matched your search
@@ -8,6 +8,13 @@ license.workspace = true
|
||||
name = "codex-voice-host"
|
||||
path = "src/main.rs"
|
||||
|
||||
# These tests need a correctly linked helper and a matching prepared runtime.
|
||||
# Bazel supplies declared runtime inputs and runs this target automatically.
|
||||
# Cargo runs it explicitly with --test installed_client.
|
||||
[[test]]
|
||||
name = "installed_client"
|
||||
test = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -24,6 +31,8 @@ webrtc = "=0.20.3"
|
||||
[target.'cfg(any(target_os = "macos", all(target_os = "linux", target_env = "gnu"), all(windows, target_env = "msvc")))'.dependencies]
|
||||
cpal = "=0.18.2"
|
||||
crossbeam-queue = "0.3.12"
|
||||
gstreamer = { version = "=0.25.3", features = ["v1_28"] }
|
||||
gstreamer-audio = { version = "=0.25.3", features = ["v1_28"] }
|
||||
opus = "=0.4.0"
|
||||
rubato = { version = "=5.0.0", default-features = false }
|
||||
sonora = { version = "=0.2.0", default-features = false }
|
||||
|
||||
Reference in new issue
Block a user