osborn 0.9.60 → 0.9.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2124,6 +2124,22 @@ async function main() {
|
|
|
2124
2124
|
// One-shot per session (NOT re-armed each turn), so this protects only the
|
|
2125
2125
|
// first agent response. After that the in-block interruption settings handle it.
|
|
2126
2126
|
aecWarmupDuration: 5000,
|
|
2127
|
+
// TTS stall mitigations (0.9.61). The 1.4.x SDK added a 10s default
|
|
2128
|
+
// readIdleTimeout in generation.js:519 (PR livekit/agents-js#1461) — when
|
|
2129
|
+
// the TTS stream goes silent for >10s, it force-closes via reader.cancel()
|
|
2130
|
+
// which trips the OpenAI SDK's AbortSignal → APIUserAbortError →
|
|
2131
|
+
// tts_error recoverable:false. Root cause is upstream: the OpenAI plugin
|
|
2132
|
+
// BUFFERS the entire tts-1 PCM response (arrayBuffer()) before emitting a
|
|
2133
|
+
// single frame. Long sentences intermittently exceed 10s end-to-end with
|
|
2134
|
+
// tts-1. Raising both watchdogs to 30s gives slow OpenAI responses room
|
|
2135
|
+
// to complete; raising maxUnrecoverableErrors from default 3 to 15 prevents
|
|
2136
|
+
// a transient burst of stalls from killing the AgentSession outright (the
|
|
2137
|
+
// counter resets on every successful speaking transition).
|
|
2138
|
+
ttsReadIdleTimeout: 30_000,
|
|
2139
|
+
forwardAudioIdleTimeout: 30_000,
|
|
2140
|
+
connOptions: {
|
|
2141
|
+
maxUnrecoverableErrors: 15,
|
|
2142
|
+
},
|
|
2127
2143
|
turnHandling: {
|
|
2128
2144
|
endpointing: {
|
|
2129
2145
|
mode: 'fixed',
|