Skip to content

Update codec config, MIME mapping, and interruption handling#5561

Open
dhruvladia-sarvam wants to merge 2 commits intolivekit:mainfrom
dhruvladia-sarvam:fix/tts-plugin-updates
Open

Update codec config, MIME mapping, and interruption handling#5561
dhruvladia-sarvam wants to merge 2 commits intolivekit:mainfrom
dhruvladia-sarvam:fix/tts-plugin-updates

Conversation

@dhruvladia-sarvam
Copy link
Copy Markdown
Contributor

  • Always send output_audio_codec in WebSocket config (was only in
    model-specific branches, silently omitted for unmatched models)
  • Add _codec_to_mime_type() mapping so linear16/mulaw/alaw correctly
    resolve to audio/pcm instead of invalid MIME types
  • Expand ALLOWED_OUTPUT_AUDIO_CODECS to include linear16, mulaw, alaw
  • Guard send_task and recv_task against ConnectionResetError during
    barge-in so transport-closing errors are suppressed, not re-raised
  • Add input_sent_event coordination between send/recv tasks to prevent
    recv from starting before config is sent
  • Simplify aclose() to delegate to base class, avoiding race with
    ConnectionPool cleanup

devin-ai-integration[bot]

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant