mirror of
https://github.com/openai/codex.git
synced 2026-05-02 20:32:04 +03:00
Gate realtime audio interruption logic to v2 (#14984)
- thread the realtime version into conversation start and app-server notifications - keep playback-aware mic gating and playback interruption behavior on v2 only, leaving v1 on the legacy path
This commit is contained in:
@@ -147,6 +147,14 @@ mod voice {
|
||||
|
||||
pub(crate) struct RealtimeAudioPlayer;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub(crate) enum RealtimeInputBehavior {
|
||||
Ungated,
|
||||
PlaybackAware {
|
||||
playback_queued_samples: Arc<AtomicUsize>,
|
||||
},
|
||||
}
|
||||
|
||||
impl VoiceCapture {
|
||||
pub fn start() -> Result<Self, String> {
|
||||
Err("voice input is unavailable in this build".to_string())
|
||||
@@ -155,7 +163,7 @@ mod voice {
|
||||
pub fn start_realtime(
|
||||
_config: &Config,
|
||||
_tx: AppEventSender,
|
||||
_playback_queued_samples: Arc<AtomicUsize>,
|
||||
_input_behavior: RealtimeInputBehavior,
|
||||
) -> Result<Self, String> {
|
||||
Err("voice input is unavailable in this build".to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user