@absolutejs/voice 0.0.20 → 0.0.22-beta.0
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/README.md +884 -4
- package/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +759 -3
- package/dist/angular/voice-controller.service.d.ts +27 -0
- package/dist/angular/voice-stream.service.d.ts +6 -0
- package/dist/audioConditioning.d.ts +3 -0
- package/dist/client/actions.d.ts +48 -0
- package/dist/client/audioPlayer.d.ts +40 -0
- package/dist/client/connection.d.ts +5 -0
- package/dist/client/controller.d.ts +2 -0
- package/dist/client/duplex.d.ts +3 -0
- package/dist/client/htmxBootstrap.js +660 -167
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +991 -6
- package/dist/client/microphone.d.ts +4 -2
- package/dist/correction.d.ts +33 -0
- package/dist/fileStore.d.ts +27 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +3721 -298
- package/dist/ops.d.ts +100 -0
- package/dist/presets.d.ts +13 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +728 -3
- package/dist/react/useVoiceController.d.ts +26 -0
- package/dist/react/useVoiceStream.d.ts +7 -0
- package/dist/routing.d.ts +3 -0
- package/dist/runtimeOps.d.ts +23 -0
- package/dist/store.d.ts +2 -2
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +691 -3
- package/dist/telephony/response.d.ts +7 -0
- package/dist/telephony/twilio.d.ts +116 -0
- package/dist/testing/benchmark.d.ts +93 -2
- package/dist/testing/corrected.d.ts +41 -0
- package/dist/testing/duplex.d.ts +59 -0
- package/dist/testing/fixtures.d.ts +18 -2
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.js +6247 -402
- package/dist/testing/review.d.ts +143 -0
- package/dist/testing/sessionBenchmark.d.ts +92 -2
- package/dist/testing/stt.d.ts +3 -1
- package/dist/testing/telephony.d.ts +70 -0
- package/dist/testing/tts.d.ts +73 -0
- package/dist/turnDetection.d.ts +5 -1
- package/dist/turnProfiles.d.ts +6 -0
- package/dist/types.d.ts +487 -10
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.js +750 -3
- package/dist/vue/useVoiceController.d.ts +30 -0
- package/dist/vue/useVoiceStream.d.ts +11 -0
- package/fixtures/README.md +9 -0
- package/fixtures/manifest.json +59 -1
- package/fixtures/pcm/dialogue-three-clean.pcm +0 -0
- package/fixtures/pcm/dialogue-three-mixed.pcm +0 -0
- package/fixtures/pcm/dialogue-two-clean.pcm +0 -0
- package/fixtures/pcm/dialogue-two-noisy.pcm +0 -0
- package/package.json +135 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { VoiceControllerOptions, VoiceTurnRecord } from '../types';
|
|
2
|
+
export declare const useVoiceController: <TResult = unknown>(path: string, options?: VoiceControllerOptions) => {
|
|
3
|
+
assistantAudio: import("vue").ShallowRef<{
|
|
4
|
+
chunk: Uint8Array;
|
|
5
|
+
format: import("..").AudioFormat;
|
|
6
|
+
receivedAt: number;
|
|
7
|
+
turnId?: string;
|
|
8
|
+
}[], {
|
|
9
|
+
chunk: Uint8Array;
|
|
10
|
+
format: import("..").AudioFormat;
|
|
11
|
+
receivedAt: number;
|
|
12
|
+
turnId?: string;
|
|
13
|
+
}[]>;
|
|
14
|
+
assistantTexts: import("vue").ShallowRef<string[], string[]>;
|
|
15
|
+
bindHTMX: (options: import("..").VoiceHTMXBindingOptions) => () => void;
|
|
16
|
+
close: () => void;
|
|
17
|
+
endTurn: () => void;
|
|
18
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
19
|
+
isConnected: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
isRecording: import("vue").Ref<boolean, boolean>;
|
|
21
|
+
partial: import("vue").Ref<string, string>;
|
|
22
|
+
recordingError: import("vue").Ref<string | null, string | null>;
|
|
23
|
+
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
24
|
+
sessionId: import("vue").Ref<string | null, string | null>;
|
|
25
|
+
startRecording: () => Promise<void>;
|
|
26
|
+
status: import("vue").Ref<import("..").VoiceSessionStatus | "idle", import("..").VoiceSessionStatus | "idle">;
|
|
27
|
+
stopRecording: () => void;
|
|
28
|
+
toggleRecording: () => Promise<void>;
|
|
29
|
+
turns: import("vue").ShallowRef<VoiceTurnRecord<TResult>[], VoiceTurnRecord<TResult>[]>;
|
|
30
|
+
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { VoiceConnectionOptions, VoiceTurnRecord } from '../types';
|
|
2
2
|
export declare const useVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => {
|
|
3
|
+
assistantAudio: import("vue").ShallowRef<{
|
|
4
|
+
chunk: Uint8Array;
|
|
5
|
+
format: import("..").AudioFormat;
|
|
6
|
+
receivedAt: number;
|
|
7
|
+
turnId?: string;
|
|
8
|
+
}[], {
|
|
9
|
+
chunk: Uint8Array;
|
|
10
|
+
format: import("..").AudioFormat;
|
|
11
|
+
receivedAt: number;
|
|
12
|
+
turnId?: string;
|
|
13
|
+
}[]>;
|
|
3
14
|
assistantTexts: import("vue").ShallowRef<string[], string[]>;
|
|
4
15
|
close: () => void;
|
|
5
16
|
endTurn: () => void;
|
package/fixtures/README.md
CHANGED
|
@@ -44,5 +44,14 @@ Selected speaker pages:
|
|
|
44
44
|
|
|
45
45
|
- `multiturn-two-clean.pcm`
|
|
46
46
|
- `multiturn-three-mixed.pcm`
|
|
47
|
+
- `dialogue-two-clean.pcm`
|
|
48
|
+
- `dialogue-two-noisy.pcm`
|
|
49
|
+
- `dialogue-three-clean.pcm`
|
|
50
|
+
- `dialogue-three-mixed.pcm`
|
|
47
51
|
|
|
48
52
|
These are synthetic conversation-style fixtures created by concatenating the bundled public-domain base clips with inserted silence to exercise turn commit behavior.
|
|
53
|
+
|
|
54
|
+
- `multiturn-*` are stress fixtures with tighter pauses.
|
|
55
|
+
- `dialogue-*` are dialogue-style fixtures with longer pause boundaries intended to approximate normal guided multi-turn voice use.
|
|
56
|
+
- `dialogue-three-clean` is the clean long-form baseline for multi-turn guided capture.
|
|
57
|
+
- `dialogue-two-noisy` and `dialogue-three-mixed` keep noisy utterances in the dialogue-style set so turn behavior can be compared against a more realistic clean baseline.
|
package/fixtures/manifest.json
CHANGED
|
@@ -136,6 +136,64 @@
|
|
|
136
136
|
],
|
|
137
137
|
"chunkDurationMs": 100,
|
|
138
138
|
"difficulty": "challenging",
|
|
139
|
-
"tags": ["conversation", "multi-turn", "noisy", "synthetic"]
|
|
139
|
+
"tags": ["conversation", "multi-turn", "noisy", "stress", "synthetic"]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "dialogue-two-clean",
|
|
143
|
+
"title": "Dialogue-style two-turn clean conversation",
|
|
144
|
+
"audioPath": "dialogue-two-clean.pcm",
|
|
145
|
+
"expectedText": "GO QUIETLY ALONE NO HARM WILL BEFALL YOU WE PASSED AROUND ATLANTA CROSSED THE CHATTAHOOCHEE AND TRAVELED BACK OVER THE SAME ROUTE ON WHICH WE HAD MADE THE ARDUOUS CAMPAIGN UNDER JOE JOHNSTON",
|
|
146
|
+
"expectedTerms": ["quietly alone", "atlanta", "chattahoochee", "joe johnston"],
|
|
147
|
+
"expectedTurnTexts": [
|
|
148
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
149
|
+
"WE PASSED AROUND ATLANTA CROSSED THE CHATTAHOOCHEE AND TRAVELED BACK OVER THE SAME ROUTE ON WHICH WE HAD MADE THE ARDUOUS CAMPAIGN UNDER JOE JOHNSTON"
|
|
150
|
+
],
|
|
151
|
+
"chunkDurationMs": 100,
|
|
152
|
+
"difficulty": "clean",
|
|
153
|
+
"tags": ["clean", "conversation", "dialogue-style", "multi-turn", "synthetic"]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "dialogue-two-noisy",
|
|
157
|
+
"title": "Dialogue-style two-turn mixed clean and noisy conversation",
|
|
158
|
+
"audioPath": "dialogue-two-noisy.pcm",
|
|
159
|
+
"expectedText": "GO QUIETLY ALONE NO HARM WILL BEFALL YOU SLIGHT RAINSTORMS ARE LIKELY TO BE ENCOUNTERED IN A TRIP ROUND THE MOUNTAIN BUT ONE MAY EASILY FIND SHELTER BENEATH WELL THATCHED TREES THAT SHED THE RAIN LIKE A ROOF",
|
|
160
|
+
"expectedTerms": ["quietly alone", "rainstorms", "thatched trees"],
|
|
161
|
+
"expectedTurnTexts": [
|
|
162
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
163
|
+
"SLIGHT RAINSTORMS ARE LIKELY TO BE ENCOUNTERED IN A TRIP ROUND THE MOUNTAIN BUT ONE MAY EASILY FIND SHELTER BENEATH WELL THATCHED TREES THAT SHED THE RAIN LIKE A ROOF"
|
|
164
|
+
],
|
|
165
|
+
"chunkDurationMs": 100,
|
|
166
|
+
"difficulty": "challenging",
|
|
167
|
+
"tags": ["conversation", "dialogue-style", "multi-turn", "noisy", "synthetic"]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "dialogue-three-clean",
|
|
171
|
+
"title": "Dialogue-style three-turn clean conversation",
|
|
172
|
+
"audioPath": "dialogue-three-clean.pcm",
|
|
173
|
+
"expectedText": "GO QUIETLY ALONE NO HARM WILL BEFALL YOU WE PASSED AROUND ATLANTA CROSSED THE CHATTAHOOCHEE AND TRAVELED BACK OVER THE SAME ROUTE ON WHICH WE HAD MADE THE ARDUOUS CAMPAIGN UNDER JOE JOHNSTON GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
174
|
+
"expectedTerms": ["quietly alone", "atlanta", "chattahoochee", "joe johnston"],
|
|
175
|
+
"expectedTurnTexts": [
|
|
176
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
177
|
+
"WE PASSED AROUND ATLANTA CROSSED THE CHATTAHOOCHEE AND TRAVELED BACK OVER THE SAME ROUTE ON WHICH WE HAD MADE THE ARDUOUS CAMPAIGN UNDER JOE JOHNSTON",
|
|
178
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU"
|
|
179
|
+
],
|
|
180
|
+
"chunkDurationMs": 100,
|
|
181
|
+
"difficulty": "clean",
|
|
182
|
+
"tags": ["clean", "conversation", "dialogue-style", "multi-turn", "synthetic"]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "dialogue-three-mixed",
|
|
186
|
+
"title": "Dialogue-style three-turn mixed conversation",
|
|
187
|
+
"audioPath": "dialogue-three-mixed.pcm",
|
|
188
|
+
"expectedText": "GO QUIETLY ALONE NO HARM WILL BEFALL YOU SLIGHT RAINSTORMS ARE LIKELY TO BE ENCOUNTERED IN A TRIP ROUND THE MOUNTAIN BUT ONE MAY EASILY FIND SHELTER BENEATH WELL THATCHED TREES THAT SHED THE RAIN LIKE A ROOF GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
189
|
+
"expectedTerms": ["quietly alone", "rainstorms", "thatched trees"],
|
|
190
|
+
"expectedTurnTexts": [
|
|
191
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU",
|
|
192
|
+
"SLIGHT RAINSTORMS ARE LIKELY TO BE ENCOUNTERED IN A TRIP ROUND THE MOUNTAIN BUT ONE MAY EASILY FIND SHELTER BENEATH WELL THATCHED TREES THAT SHED THE RAIN LIKE A ROOF",
|
|
193
|
+
"GO QUIETLY ALONE NO HARM WILL BEFALL YOU"
|
|
194
|
+
],
|
|
195
|
+
"chunkDurationMs": 100,
|
|
196
|
+
"difficulty": "challenging",
|
|
197
|
+
"tags": ["conversation", "dialogue-style", "multi-turn", "noisy", "synthetic"]
|
|
140
198
|
}
|
|
141
199
|
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/voice",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22-beta.0",
|
|
4
4
|
"description": "Voice primitives and Elysia plugin for AbsoluteJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,15 +17,149 @@
|
|
|
17
17
|
"author": "Alex Kahn",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"bench:accents": "bun run ./scripts/benchmark-stt.ts all accents",
|
|
20
|
+
"bench:jargon": "bun run ./scripts/benchmark-stt.ts all jargon",
|
|
21
|
+
"bench:jargon:run": "bun run ./scripts/run-jargon-benchmarks.ts",
|
|
22
|
+
"bench:multilingual": "bun run ./scripts/benchmark-stt.ts all multilingual",
|
|
23
|
+
"bench:multi-speaker": "bun run ./scripts/benchmark-stt.ts all multi-speaker",
|
|
24
|
+
"bench:multi-speaker:run": "bun run ./scripts/run-multi-speaker-benchmarks.ts",
|
|
25
|
+
"bench:multi-speaker:analyze": "bun run ./scripts/run-multi-speaker-analysis.ts",
|
|
26
|
+
"bench:deepgram:multi-speaker:clean": "bun run ./scripts/benchmark-stt.ts deepgram multi-speaker-clean",
|
|
27
|
+
"bench:deepgram:multi-speaker:noisy": "bun run ./scripts/benchmark-stt.ts deepgram multi-speaker-noisy",
|
|
28
|
+
"bench:deepgram:multi-speaker:noisy:corrected": "bun run ./scripts/benchmark-stt.ts deepgram-corrected multi-speaker-noisy",
|
|
29
|
+
"bench:deepgram:multi-speaker:debug": "bun run ./scripts/run-multi-speaker-debug.ts",
|
|
30
|
+
"bench:code-switch": "bun run ./scripts/benchmark-stt.ts all code-switch",
|
|
31
|
+
"bench:code-switch:series": "bun run ./scripts/benchmark-stt.ts all code-switch --runs 5",
|
|
32
|
+
"bench:code-switch:ca-es": "bun run ./scripts/benchmark-stt.ts all code-switch-ca-es",
|
|
33
|
+
"bench:code-switch:ca-es:series": "bun run ./scripts/benchmark-stt.ts all code-switch-ca-es --runs 5",
|
|
34
|
+
"bench:code-switch:ca-es:corts:series": "bun run ./scripts/benchmark-stt.ts all code-switch-ca-es-corts --runs 5",
|
|
35
|
+
"bench:code-switch:ca-es:parlament:series": "bun run ./scripts/benchmark-stt.ts all code-switch-ca-es-parlament --runs 5",
|
|
36
|
+
"bench:code-switch:hi-en": "bun run ./scripts/benchmark-stt.ts all code-switch-hi-en",
|
|
37
|
+
"bench:code-switch:hi-en:series": "bun run ./scripts/benchmark-stt.ts all code-switch-hi-en --runs 5",
|
|
38
|
+
"bench:telephony": "bun run ./scripts/benchmark-stt.ts all telephony",
|
|
39
|
+
"bench:telephony:bridge": "bun run ./scripts/benchmark-telephony.ts",
|
|
40
|
+
"bench:telephony:run": "bun run ./scripts/run-telephony-benchmarks.ts",
|
|
41
|
+
"bench:tts": "bun run ./scripts/benchmark-tts.ts all",
|
|
42
|
+
"bench:tts:elevenlabs": "bun run ./scripts/benchmark-tts.ts elevenlabs",
|
|
43
|
+
"bench:tts:openai": "bun run ./scripts/benchmark-tts.ts openai",
|
|
44
|
+
"bench:tts:interrupt": "bun run ./scripts/benchmark-tts.ts all interrupt",
|
|
45
|
+
"bench:tts:interrupt:elevenlabs": "bun run ./scripts/benchmark-tts.ts elevenlabs interrupt",
|
|
46
|
+
"bench:tts:interrupt:openai": "bun run ./scripts/benchmark-tts.ts openai interrupt",
|
|
47
|
+
"bench:tts:run": "bun run ./scripts/run-tts-benchmarks.ts",
|
|
48
|
+
"bench:tts:interrupt:run": "bun run ./scripts/run-tts-interruption-benchmarks.ts",
|
|
49
|
+
"bench:duplex": "bun run ./scripts/benchmark-duplex.ts",
|
|
50
|
+
"bench:duplex:live": "bun run ./scripts/benchmark-live-duplex.ts all",
|
|
51
|
+
"bench:duplex:live:elevenlabs": "bun run ./scripts/benchmark-live-duplex.ts elevenlabs",
|
|
52
|
+
"bench:duplex:live:openai": "bun run ./scripts/benchmark-live-duplex.ts openai",
|
|
53
|
+
"bench:duplex:live:run": "bun run ./scripts/run-live-duplex-benchmarks.ts",
|
|
54
|
+
"bench:telephony:live": "bun run ./scripts/benchmark-live-telephony.ts",
|
|
55
|
+
"bench:telephony:live:run": "bun run ./scripts/run-live-telephony-benchmarks.ts",
|
|
56
|
+
"bench:telephony:live:series": "bun run ./scripts/run-live-telephony-series.ts",
|
|
57
|
+
"bench:telephony:live:shootout": "bun run ./scripts/run-live-telephony-shootout.ts",
|
|
58
|
+
"bench:telephony:live:stt:shootout": "bun run ./scripts/run-live-telephony-stt-shootout.ts",
|
|
59
|
+
"bench:telephony:live:tts:shootout": "bun run ./scripts/run-live-telephony-tts-shootout.ts",
|
|
60
|
+
"bench:duplex:browser": "bun run ./scripts/benchmark-browser-duplex.ts all",
|
|
61
|
+
"bench:duplex:browser:elevenlabs": "bun run ./scripts/benchmark-browser-duplex.ts elevenlabs",
|
|
62
|
+
"bench:duplex:browser:openai": "bun run ./scripts/benchmark-browser-duplex.ts openai",
|
|
63
|
+
"bench:duplex:browser:run": "bun run ./scripts/run-browser-duplex-benchmarks.ts",
|
|
64
|
+
"bench:duplex:browser:series": "bun run ./scripts/run-browser-duplex-series.ts",
|
|
65
|
+
"bench:duplex:browser:overlap": "bun run ./scripts/benchmark-browser-duplex-overlap.ts all",
|
|
66
|
+
"bench:duplex:browser:overlap:run": "bun run ./scripts/run-browser-duplex-overlap-benchmarks.ts",
|
|
67
|
+
"bench:duplex:browser:overlap:series": "bun run ./scripts/run-browser-duplex-overlap-series.ts",
|
|
68
|
+
"bench:production": "bun run ./scripts/benchmark-production.ts",
|
|
69
|
+
"bench:production:deepgram-corrected:audit": "bun run ./scripts/benchmark-production.ts deepgram-corrected-audit",
|
|
20
70
|
"bench:assemblyai": "bun run ./scripts/benchmark-stt.ts assemblyai",
|
|
21
71
|
"bench:assemblyai:accents": "bun run ./scripts/benchmark-stt.ts assemblyai accents",
|
|
72
|
+
"bench:assemblyai:multilingual": "bun run ./scripts/benchmark-stt.ts assemblyai multilingual",
|
|
73
|
+
"bench:assemblyai:code-switch": "bun run ./scripts/benchmark-stt.ts assemblyai code-switch",
|
|
74
|
+
"bench:openai": "bun run ./scripts/benchmark-stt.ts openai",
|
|
75
|
+
"bench:openai:accents": "bun run ./scripts/benchmark-stt.ts openai accents",
|
|
76
|
+
"bench:openai:multilingual": "bun run ./scripts/benchmark-stt.ts openai multilingual",
|
|
77
|
+
"bench:openai:code-switch": "bun run ./scripts/benchmark-stt.ts openai code-switch",
|
|
78
|
+
"bench:openai:code-switch:series": "bun run ./scripts/benchmark-stt.ts openai code-switch --runs 5",
|
|
79
|
+
"bench:openai:code-switch:ca-es": "bun run ./scripts/benchmark-stt.ts openai code-switch-ca-es",
|
|
80
|
+
"bench:openai:code-switch:ca-es:series": "bun run ./scripts/benchmark-stt.ts openai code-switch-ca-es --runs 5",
|
|
81
|
+
"bench:openai:code-switch:hi-en": "bun run ./scripts/benchmark-stt.ts openai code-switch-hi-en",
|
|
82
|
+
"bench:openai:code-switch:hi-en:series": "bun run ./scripts/benchmark-stt.ts openai code-switch-hi-en --runs 5",
|
|
83
|
+
"bench:openai:code-switch:corrected": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch",
|
|
84
|
+
"bench:openai:code-switch:corrected:series": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch --runs 5",
|
|
85
|
+
"bench:openai:code-switch:corrected:ca-es": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch-ca-es",
|
|
86
|
+
"bench:openai:code-switch:corrected:ca-es:series": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch-ca-es --runs 5",
|
|
87
|
+
"bench:openai:code-switch:corrected:hi-en": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch-hi-en",
|
|
88
|
+
"bench:openai:code-switch:corrected:hi-en:series": "bun run ./scripts/benchmark-stt.ts openai-corrected code-switch-hi-en --runs 5",
|
|
89
|
+
"bench:openai:diag": "bun run ./scripts/benchmark-stt.ts openai --diag",
|
|
22
90
|
"bench:deepgram": "bun run ./scripts/benchmark-stt.ts deepgram",
|
|
23
91
|
"bench:deepgram:accents": "bun run ./scripts/benchmark-stt.ts deepgram accents",
|
|
92
|
+
"bench:deepgram:jargon": "bun run ./scripts/benchmark-stt.ts deepgram jargon",
|
|
93
|
+
"bench:deepgram:multilingual": "bun run ./scripts/benchmark-stt.ts deepgram multilingual",
|
|
94
|
+
"bench:deepgram:multi-speaker": "bun run ./scripts/benchmark-stt.ts deepgram multi-speaker",
|
|
95
|
+
"bench:deepgram:code-switch": "bun run ./scripts/benchmark-stt.ts deepgram code-switch",
|
|
96
|
+
"bench:deepgram:code-switch:series": "bun run ./scripts/benchmark-stt.ts deepgram code-switch --runs 5",
|
|
97
|
+
"bench:deepgram:code-switch:ca-es": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es",
|
|
98
|
+
"bench:deepgram:code-switch:ca-es:series": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5",
|
|
99
|
+
"bench:deepgram:code-switch:ca-es:corts:series": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es-corts --runs 5",
|
|
100
|
+
"bench:deepgram:code-switch:ca-es:parlament:series": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es-parlament --runs 5",
|
|
101
|
+
"bench:deepgram:code-switch:ca-es:nova3-multi:series": "DEEPGRAM_CODE_SWITCH_MODEL=nova-3 DEEPGRAM_CODE_SWITCH_LANGUAGE=multi bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5 --variant nova3-multi",
|
|
102
|
+
"bench:deepgram:code-switch:ca-es:nova3-ca:series": "DEEPGRAM_CODE_SWITCH_MODEL=nova-3 DEEPGRAM_CODE_SWITCH_LANGUAGE=ca bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5 --variant nova3-ca",
|
|
103
|
+
"bench:deepgram:code-switch:ca-es:nova3-es:series": "DEEPGRAM_CODE_SWITCH_MODEL=nova-3 DEEPGRAM_CODE_SWITCH_LANGUAGE=es bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5 --variant nova3-es",
|
|
104
|
+
"bench:deepgram:code-switch:ca-es:nova2-ca:series": "DEEPGRAM_CODE_SWITCH_MODEL=nova-2 DEEPGRAM_CODE_SWITCH_LANGUAGE=ca bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5 --variant nova2-ca",
|
|
105
|
+
"bench:deepgram:code-switch:ca-es:nova2-es:series": "DEEPGRAM_CODE_SWITCH_MODEL=nova-2 DEEPGRAM_CODE_SWITCH_LANGUAGE=es bun run ./scripts/benchmark-stt.ts deepgram code-switch-ca-es --runs 5 --variant nova2-es",
|
|
106
|
+
"bench:deepgram:code-switch:ca-es:best:corrected:series": "bun run ./scripts/run-caes-corrected-benchmark.ts",
|
|
107
|
+
"bench:deepgram:code-switch:hi-en": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-hi-en",
|
|
108
|
+
"bench:deepgram:code-switch:hi-en:series": "bun run ./scripts/benchmark-stt.ts deepgram code-switch-hi-en --runs 5",
|
|
109
|
+
"bench:deepgram:code-switch:corrected": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch",
|
|
110
|
+
"bench:deepgram:code-switch:corrected:series": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch --runs 5",
|
|
111
|
+
"bench:deepgram:code-switch:corrected:ca-es": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-ca-es",
|
|
112
|
+
"bench:deepgram:code-switch:corrected:ca-es:series": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-ca-es --runs 5",
|
|
113
|
+
"bench:deepgram:code-switch:corrected:ca-es:corts:series": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-ca-es-corts --runs 5",
|
|
114
|
+
"bench:deepgram:code-switch:corrected:ca-es:parlament:series": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-ca-es-parlament --runs 5",
|
|
115
|
+
"bench:deepgram:code-switch:ca-es:parlament:debug": "bun run ./scripts/run-caes-parlament-debug.ts",
|
|
116
|
+
"bench:deepgram:code-switch:ca-es:parlament:rerun": "bun run ./scripts/run-caes-parlament-series.ts",
|
|
117
|
+
"bench:deepgram:code-switch:ca-es:full:rerun": "bun run ./scripts/run-caes-full-series.ts",
|
|
118
|
+
"bench:deepgram:code-switch:corrected:hi-en": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-hi-en",
|
|
119
|
+
"bench:deepgram:code-switch:corrected:hi-en:series": "bun run ./scripts/benchmark-stt.ts deepgram-corrected code-switch-hi-en --runs 5",
|
|
120
|
+
"corpus:multilingual": "bun run ./scripts/build-multilingual-corpus.ts",
|
|
121
|
+
"bench:deepgram:corrected:audit": "DEEPGRAM_MODEL=flux-general-en bun run ./scripts/benchmark-stt.ts deepgram-corrected-audit all",
|
|
122
|
+
"bench:deepgram:corrected:audit:jargon": "DEEPGRAM_MODEL=flux-general-en bun run ./scripts/benchmark-stt.ts deepgram-corrected-audit jargon",
|
|
123
|
+
"bench:deepgram:corrected:telephony": "DEEPGRAM_MODEL=flux-general-en bun run ./scripts/benchmark-stt.ts deepgram-corrected telephony",
|
|
124
|
+
"bench:deepgram:corrected:audit:telephony": "DEEPGRAM_MODEL=flux-general-en bun run ./scripts/benchmark-stt.ts deepgram-corrected-audit telephony",
|
|
125
|
+
"bench:deepgram:telephony": "bun run ./scripts/benchmark-stt.ts deepgram telephony",
|
|
126
|
+
"bench:deepgram:nova": "bun run ./scripts/benchmark-stt.ts deepgram",
|
|
127
|
+
"bench:deepgram:flux": "DEEPGRAM_MODEL=flux-general-en bun run ./scripts/benchmark-stt.ts deepgram",
|
|
128
|
+
"bench:vs": "bun run ./scripts/benchmark-vs.ts",
|
|
129
|
+
"bench:vs:all": "bun run ./scripts/benchmark-vs.ts all all",
|
|
130
|
+
"bench:vs:all:accents": "bun run ./scripts/benchmark-vs.ts all accents",
|
|
131
|
+
"bench:vs:all:code-switch": "bun run ./scripts/benchmark-vs.ts all code-switch",
|
|
132
|
+
"bench:vs:all:jargon": "bun run ./scripts/benchmark-vs.ts all jargon",
|
|
133
|
+
"bench:vs:all:multilingual": "bun run ./scripts/benchmark-vs.ts all multilingual",
|
|
134
|
+
"bench:vs:all:multi-speaker": "bun run ./scripts/benchmark-vs.ts all multi-speaker",
|
|
135
|
+
"bench:vs:all:telephony": "bun run ./scripts/benchmark-vs.ts all telephony",
|
|
136
|
+
"bench:vs:deepgram": "bun run ./scripts/benchmark-vs.ts deepgram all",
|
|
137
|
+
"bench:vs:deepgram-nova": "bun run ./scripts/benchmark-vs.ts deepgram-nova all",
|
|
138
|
+
"bench:vs:deepgram-flux": "bun run ./scripts/benchmark-vs.ts deepgram-flux all --compare benchmarks/your-vapi-metrics.json",
|
|
139
|
+
"bench:vs:assemblyai": "bun run ./scripts/benchmark-vs.ts assemblyai all",
|
|
140
|
+
"bench:vs:openai": "bun run ./scripts/benchmark-vs.ts openai all",
|
|
24
141
|
"bench:deepgram:sessions": "bun run ./scripts/benchmark-session.ts deepgram",
|
|
142
|
+
"bench:stt:best:sessions": "bun run ./scripts/benchmark-session.ts best-stt",
|
|
143
|
+
"bench:stt:cheap:sessions": "bun run ./scripts/benchmark-session.ts cheap-stt",
|
|
144
|
+
"bench:stt:routing:run": "bun run ./scripts/run-stt-routing-benchmarks.ts",
|
|
145
|
+
"bench:deepgram:soak:sessions": "bun run ./scripts/benchmark-session.ts deepgram-flux --profile soak --runs 3",
|
|
146
|
+
"bench:deepgram:hybrid:sessions": "bun run ./scripts/benchmark-session.ts deepgram-hybrid",
|
|
147
|
+
"bench:deepgram:corrected:sessions": "bun run ./scripts/benchmark-session.ts deepgram-corrected",
|
|
148
|
+
"bench:deepgram:corrected:soak:sessions": "bun run ./scripts/benchmark-session.ts deepgram-corrected --profile soak --runs 3",
|
|
149
|
+
"bench:deepgram:corrected:sessions:audit": "bun run ./scripts/benchmark-session.ts deepgram-corrected-audit",
|
|
150
|
+
"bench:deepgram:openai-hybrid:sessions": "bun run ./scripts/benchmark-session.ts deepgram-openai-hybrid",
|
|
151
|
+
"bench:production:deepgram-flux-noisy-room": "bun run ./scripts/benchmark-production.ts deepgram-flux-noisy-room",
|
|
152
|
+
"bench:production:deepgram-corrected": "bun run ./scripts/benchmark-production.ts deepgram-corrected",
|
|
25
153
|
"bench:resilience": "bun run ./scripts/benchmark-resilience.ts",
|
|
154
|
+
"bench:soak:run": "bun run ./scripts/run-session-soak-benchmarks.ts",
|
|
155
|
+
"bench:soak:debug": "bun run ./scripts/run-session-soak-debug.ts",
|
|
156
|
+
"bench:soak:debug:corrected": "bun run ./scripts/run-session-soak-debug.ts corrected",
|
|
157
|
+
"bench:soak:series:debug": "bun run ./scripts/run-session-soak-series-debug.ts raw",
|
|
158
|
+
"bench:soak:series:debug:corrected": "bun run ./scripts/run-session-soak-series-debug.ts corrected",
|
|
26
159
|
"bench:sessions": "bun run ./scripts/benchmark-session.ts all",
|
|
27
160
|
"bench:stt": "bun run ./scripts/benchmark-stt.ts all",
|
|
28
161
|
"bench:assemblyai:sessions": "bun run ./scripts/benchmark-session.ts assemblyai",
|
|
162
|
+
"bench:openai:sessions": "bun run ./scripts/benchmark-session.ts openai",
|
|
29
163
|
"build": "rm -rf dist && bun build ./src/index.ts ./src/client/index.ts ./src/react/index.ts ./src/vue/index.ts ./src/svelte/index.ts ./src/angular/index.ts ./src/testing/index.ts --outdir dist --target bun --external elysia --external react --external vue --external @angular/core --external @absolutejs/absolute && bun build ./src/client/htmxBootstrap.ts --outdir dist/client --target browser --format esm && tsc --emitDeclarationOnly --project tsconfig.json",
|
|
30
164
|
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,json,md}\"",
|
|
31
165
|
"lint": "eslint ./src",
|