osborn 0.9.200 → 0.9.202
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 +2 -2
- package/dist/voice-io.js +16 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3675,8 +3675,8 @@ async function main() {
|
|
|
3675
3675
|
// a full 3s window to keep talking before deciding it was false and
|
|
3676
3676
|
// resuming. Other two knobs left at SDK defaults.
|
|
3677
3677
|
interruption: {
|
|
3678
|
-
minDuration:
|
|
3679
|
-
minWords:
|
|
3678
|
+
minDuration: 1100, // default 500 — 1.1s sustained speech; 800 was triggering on mid-sentence continuations
|
|
3679
|
+
minWords: 2, // default 0 — require ≥2 words; single "um"/"uh" resumptions no longer gate as interruption
|
|
3680
3680
|
falseInterruptionTimeout: 3500, // default 2000 — 3.5s false-interrupt window
|
|
3681
3681
|
// resumeFalseInterruption: true, // default true (unchanged)
|
|
3682
3682
|
// discardAudioIfUninterruptible: true,// default true (unchanged)
|
package/dist/voice-io.js
CHANGED
|
@@ -22,10 +22,23 @@ export function createSTT(config) {
|
|
|
22
22
|
return new soniox.STT({
|
|
23
23
|
model: (config.model || 'stt-rt-v4'),
|
|
24
24
|
languageHints: config.language ? [config.language] : ['en'],
|
|
25
|
-
maxEndpointDelayMs:
|
|
26
|
-
endpointLatencyAdjustmentLevel:
|
|
25
|
+
maxEndpointDelayMs: 2500, // 2.5s runway — long enough for thinking pauses ("um", mid-clause hesitations)
|
|
26
|
+
endpointLatencyAdjustmentLevel: 2, // balanced — semantic model distinguishes pause vs end; 3 was cutting off long turns
|
|
27
27
|
context: {
|
|
28
|
-
terms: [
|
|
28
|
+
terms: [
|
|
29
|
+
// Models + providers
|
|
30
|
+
'Claude', 'Anthropic', 'Sonnet', 'Haiku', 'Opus', 'Soniox', 'Deepgram', 'OpenRouter',
|
|
31
|
+
// Infra + services
|
|
32
|
+
'LiveKit', 'Supabase', 'Railway', 'Fly.io', 'GitHub', 'Vercel',
|
|
33
|
+
// Languages + runtimes
|
|
34
|
+
'TypeScript', 'JavaScript', 'React', 'Next.js', 'Node.js', 'tsx',
|
|
35
|
+
// Package management
|
|
36
|
+
'npm', 'pnpm', 'yarn',
|
|
37
|
+
// Project-specific
|
|
38
|
+
'osborn', 'Dispatcher', 'IVDE', 'fast brain', 'WebSocket',
|
|
39
|
+
// Business / Meta context
|
|
40
|
+
'Meta', 'Instagram', 'OAuth', 'config ID', 'callback URL',
|
|
41
|
+
],
|
|
29
42
|
},
|
|
30
43
|
});
|
|
31
44
|
case 'deepgram':
|