transcribe-cpp 0.4.2 → 0.5.1
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 +31 -2
- package/dist/_generated.d.ts +6 -1
- package/dist/_generated.js +35 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/ffi.js +53 -0
- package/dist/index.d.ts +59 -1
- package/dist/index.js +211 -1
- package/dist/types.d.ts +47 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ model.accepts({ kind: "whisper" }); // does this model take that extension?
|
|
|
119
119
|
### Diarization (DIARIZE role)
|
|
120
120
|
|
|
121
121
|
`model.roles` lists what a model serves (`"asr"`, `"diarize"`, `"langid"`,
|
|
122
|
-
`"vad"`; Sortformer is diarize-only). Calls for a role the model lacks throw
|
|
122
|
+
`"vad"`, `"turn"`; Sortformer is diarize-only). Calls for a role the model lacks throw
|
|
123
123
|
`UnsupportedRole`.
|
|
124
124
|
|
|
125
125
|
```ts
|
|
@@ -179,9 +179,38 @@ const tail = await vad.streamFlush();
|
|
|
179
179
|
A VAD stream is session state, not a stream lease: VAD calls raise `Busy` only
|
|
180
180
|
while an ASR stream on the same model holds the lease.
|
|
181
181
|
|
|
182
|
+
### End-of-turn detection (TURN role)
|
|
183
|
+
|
|
184
|
+
A `"turn"` model (Smart Turn v3.2, SAVA) says whether the speaker has finished
|
|
185
|
+
talking. `run` scores one clip (the audio since the speaker started) and
|
|
186
|
+
returns `p` and `ended` (`p >= threshold`, default `model.turnInfo.threshold`);
|
|
187
|
+
audio longer than `turnInfo.maxAudioMs` is scored on its end.
|
|
188
|
+
|
|
189
|
+
```ts
|
|
190
|
+
using turn = model.createTurnSession();
|
|
191
|
+
const { p, ended } = await turn.run(pcmSinceSpeechStart);
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Models with `turnInfo.frameSamples > 0` (SAVA) also stream: `streamFeed(chunk)`
|
|
195
|
+
returns the turn probabilities of the frames the chunk completes (`probs`, from
|
|
196
|
+
`firstFrame`) and, when `turnInfo.hasSpeech`, the speech probabilities of the
|
|
197
|
+
frames the model judged (`speechProbs`, from `speechFirstFrame`; they may
|
|
198
|
+
trail). `streamFlush()` and `streamReset()` work as for VAD; on a clip model the
|
|
199
|
+
stream calls throw `NotImplementedByModel`. `TurnSession.streamFeedBatch` feeds
|
|
200
|
+
many sessions of one model in one compute, each ending as if fed alone; its
|
|
201
|
+
`signal` cancels (and resets) every listed stream. Like VAD, a turn stream is
|
|
202
|
+
session state, not a stream lease.
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
const [a, b] = await TurnSession.streamFeedBatch([
|
|
206
|
+
{ session: alice, pcm: aliceChunk },
|
|
207
|
+
{ session: bob, pcm: bobChunk },
|
|
208
|
+
]);
|
|
209
|
+
```
|
|
210
|
+
|
|
182
211
|
### Resource management
|
|
183
212
|
|
|
184
|
-
`TranscribeModel`, `Session`, `DiarizeSession`, `LangIdSession`, `VadSession`, and `Stream` all implement
|
|
213
|
+
`TranscribeModel`, `Session`, `DiarizeSession`, `LangIdSession`, `VadSession`, `TurnSession`, and `Stream` all implement
|
|
185
214
|
`Symbol.dispose`, so `using` works (TypeScript 5.2+ / Node 22+):
|
|
186
215
|
|
|
187
216
|
```ts
|
package/dist/_generated.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PUBLIC_HEADER_HASH = "
|
|
1
|
+
export declare const PUBLIC_HEADER_HASH = "4393f89c866cc70d";
|
|
2
2
|
export declare const TRANSCRIBE_OK = 0;
|
|
3
3
|
export declare const TRANSCRIBE_ERR_INVALID_ARG = 1;
|
|
4
4
|
export declare const TRANSCRIBE_ERR_NOT_IMPLEMENTED = 2;
|
|
@@ -50,6 +50,10 @@ export declare const TRANSCRIBE_ABI_VAD_SESSION_PARAMS = 25;
|
|
|
50
50
|
export declare const TRANSCRIBE_ABI_VAD_PARAMS = 26;
|
|
51
51
|
export declare const TRANSCRIBE_ABI_VAD_RESULT = 27;
|
|
52
52
|
export declare const TRANSCRIBE_ABI_VAD_SEGMENT = 28;
|
|
53
|
+
export declare const TRANSCRIBE_ABI_TURN_INFO = 29;
|
|
54
|
+
export declare const TRANSCRIBE_ABI_TURN_SESSION_PARAMS = 30;
|
|
55
|
+
export declare const TRANSCRIBE_ABI_TURN_PARAMS = 31;
|
|
56
|
+
export declare const TRANSCRIBE_ABI_TURN_RESULT = 32;
|
|
53
57
|
export declare const TRANSCRIBE_LOG_LEVEL_NONE = 0;
|
|
54
58
|
export declare const TRANSCRIBE_LOG_LEVEL_INFO = 1;
|
|
55
59
|
export declare const TRANSCRIBE_LOG_LEVEL_WARN = 2;
|
|
@@ -94,6 +98,7 @@ export declare const TRANSCRIBE_ROLE_ASR = 1;
|
|
|
94
98
|
export declare const TRANSCRIBE_ROLE_DIARIZE = 2;
|
|
95
99
|
export declare const TRANSCRIBE_ROLE_LANGID = 4;
|
|
96
100
|
export declare const TRANSCRIBE_ROLE_VAD = 8;
|
|
101
|
+
export declare const TRANSCRIBE_ROLE_TURN = 16;
|
|
97
102
|
export declare const TRANSCRIBE_FEATURE_INITIAL_PROMPT = 0;
|
|
98
103
|
export declare const TRANSCRIBE_FEATURE_TEMPERATURE_FALLBACK = 1;
|
|
99
104
|
export declare const TRANSCRIBE_FEATURE_LONG_FORM = 2;
|
package/dist/_generated.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// Stable digest of the ABI surface (structs, enums, macros, layout,
|
|
11
11
|
// prototypes), computed by the Python oracle and pinned here so a header
|
|
12
12
|
// ABI change turns this binding's drift check red for conscious review.
|
|
13
|
-
export const PUBLIC_HEADER_HASH = "
|
|
13
|
+
export const PUBLIC_HEADER_HASH = "4393f89c866cc70d";
|
|
14
14
|
// === enum constants ===
|
|
15
15
|
export const TRANSCRIBE_OK = 0;
|
|
16
16
|
export const TRANSCRIBE_ERR_INVALID_ARG = 1;
|
|
@@ -63,6 +63,10 @@ export const TRANSCRIBE_ABI_VAD_SESSION_PARAMS = 25;
|
|
|
63
63
|
export const TRANSCRIBE_ABI_VAD_PARAMS = 26;
|
|
64
64
|
export const TRANSCRIBE_ABI_VAD_RESULT = 27;
|
|
65
65
|
export const TRANSCRIBE_ABI_VAD_SEGMENT = 28;
|
|
66
|
+
export const TRANSCRIBE_ABI_TURN_INFO = 29;
|
|
67
|
+
export const TRANSCRIBE_ABI_TURN_SESSION_PARAMS = 30;
|
|
68
|
+
export const TRANSCRIBE_ABI_TURN_PARAMS = 31;
|
|
69
|
+
export const TRANSCRIBE_ABI_TURN_RESULT = 32;
|
|
66
70
|
export const TRANSCRIBE_LOG_LEVEL_NONE = 0;
|
|
67
71
|
export const TRANSCRIBE_LOG_LEVEL_INFO = 1;
|
|
68
72
|
export const TRANSCRIBE_LOG_LEVEL_WARN = 2;
|
|
@@ -107,6 +111,7 @@ export const TRANSCRIBE_ROLE_ASR = 1;
|
|
|
107
111
|
export const TRANSCRIBE_ROLE_DIARIZE = 2;
|
|
108
112
|
export const TRANSCRIBE_ROLE_LANGID = 4;
|
|
109
113
|
export const TRANSCRIBE_ROLE_VAD = 8;
|
|
114
|
+
export const TRANSCRIBE_ROLE_TURN = 16;
|
|
110
115
|
export const TRANSCRIBE_FEATURE_INITIAL_PROMPT = 0;
|
|
111
116
|
export const TRANSCRIBE_FEATURE_TEMPERATURE_FALLBACK = 1;
|
|
112
117
|
export const TRANSCRIBE_FEATURE_LONG_FORM = 2;
|
|
@@ -174,6 +179,10 @@ export const STRUCT_LAYOUT = {
|
|
|
174
179
|
'transcribe_parakeet_stream_ext': { size: 24, align: 8, offsets: { 'ext': 0, 'att_context_right': 16 } },
|
|
175
180
|
'transcribe_parakeet_buffered_stream_ext': { size: 32, align: 8, offsets: { 'ext': 0, 'left_ms': 16, 'chunk_ms': 20, 'right_ms': 24 } },
|
|
176
181
|
'transcribe_sortformer_diarize_ext': { size: 24, align: 8, offsets: { 'ext': 0, 'preset': 16 } },
|
|
182
|
+
'transcribe_turn_info': { size: 32, align: 8, offsets: { 'struct_size': 0, 'sample_rate': 8, 'max_audio_ms': 12, 'frame_samples': 16, 'has_speech': 20, 'threshold': 24 } },
|
|
183
|
+
'transcribe_turn_session_params': { size: 16, align: 8, offsets: { 'struct_size': 0, 'n_threads': 8 } },
|
|
184
|
+
'transcribe_turn_params': { size: 16, align: 8, offsets: { 'struct_size': 0, 'threshold': 8 } },
|
|
185
|
+
'transcribe_turn_result': { size: 48, align: 8, offsets: { 'struct_size': 0, 'p': 8, 'ended': 12, 'n_probs': 16, 'first_frame': 24, 'n_speech_probs': 32, 'speech_first_frame': 40 } },
|
|
177
186
|
'transcribe_vad_info': { size: 16, align: 8, offsets: { 'struct_size': 0, 'sample_rate': 8, 'frame_samples': 12 } },
|
|
178
187
|
'transcribe_vad_session_params': { size: 16, align: 8, offsets: { 'struct_size': 0, 'n_threads': 8 } },
|
|
179
188
|
'transcribe_vad_params': { size: 40, align: 8, offsets: { 'struct_size': 0, 'threshold': 8, 'neg_threshold': 16, 'min_speech_ms': 24, 'min_silence_ms': 28, 'speech_pad_ms': 32, 'max_speech_ms': 36 } },
|
|
@@ -208,6 +217,10 @@ export const ABI_STRUCT_IDS = {
|
|
|
208
217
|
'transcribe_langid_params': 21,
|
|
209
218
|
'transcribe_langid_result': 22,
|
|
210
219
|
'transcribe_langid_candidate': 23,
|
|
220
|
+
'transcribe_turn_info': 29,
|
|
221
|
+
'transcribe_turn_session_params': 30,
|
|
222
|
+
'transcribe_turn_params': 31,
|
|
223
|
+
'transcribe_turn_result': 32,
|
|
211
224
|
'transcribe_vad_info': 24,
|
|
212
225
|
'transcribe_vad_session_params': 25,
|
|
213
226
|
'transcribe_vad_params': 26,
|
|
@@ -245,6 +258,10 @@ export function defineTypes(koffi) {
|
|
|
245
258
|
T['transcribe_parakeet_stream_ext'] = koffi.struct({ ext: T['transcribe_ext'], att_context_right: 'int32_t' });
|
|
246
259
|
T['transcribe_parakeet_buffered_stream_ext'] = koffi.struct({ ext: T['transcribe_ext'], left_ms: 'int32_t', chunk_ms: 'int32_t', right_ms: 'int32_t' });
|
|
247
260
|
T['transcribe_sortformer_diarize_ext'] = koffi.struct({ ext: T['transcribe_ext'], preset: 'int' });
|
|
261
|
+
T['transcribe_turn_info'] = koffi.struct({ struct_size: 'uint64_t', sample_rate: 'int32_t', max_audio_ms: 'int32_t', frame_samples: 'int32_t', has_speech: 'bool', threshold: 'double' });
|
|
262
|
+
T['transcribe_turn_session_params'] = koffi.struct({ struct_size: 'uint64_t', n_threads: 'int32_t' });
|
|
263
|
+
T['transcribe_turn_params'] = koffi.struct({ struct_size: 'uint64_t', threshold: 'double' });
|
|
264
|
+
T['transcribe_turn_result'] = koffi.struct({ struct_size: 'uint64_t', p: 'float', ended: 'bool', n_probs: 'int32_t', first_frame: 'int64_t', n_speech_probs: 'int32_t', speech_first_frame: 'int64_t' });
|
|
248
265
|
T['transcribe_vad_info'] = koffi.struct({ struct_size: 'uint64_t', sample_rate: 'int32_t', frame_samples: 'int32_t' });
|
|
249
266
|
T['transcribe_vad_session_params'] = koffi.struct({ struct_size: 'uint64_t', n_threads: 'int32_t' });
|
|
250
267
|
T['transcribe_vad_params'] = koffi.struct({ struct_size: 'uint64_t', threshold: 'double', neg_threshold: 'double', min_speech_ms: 'int32_t', min_silence_ms: 'int32_t', speech_pad_ms: 'int32_t', max_speech_ms: 'int32_t' });
|
|
@@ -378,6 +395,23 @@ export const FUNCTION_SIGNATURES = {
|
|
|
378
395
|
'transcribe_timings_init': { ret: 'void', args: ['struct transcribe_timings *'] },
|
|
379
396
|
'transcribe_token_init': { ret: 'void', args: ['struct transcribe_token *'] },
|
|
380
397
|
'transcribe_tokenize': { ret: 'int', args: ['const struct transcribe_model *', 'const char *', 'int32_t *', 'size_t'] },
|
|
398
|
+
'transcribe_turn_get_info': { ret: 'transcribe_status', args: ['const struct transcribe_model *', 'struct transcribe_turn_info *'] },
|
|
399
|
+
'transcribe_turn_get_result': { ret: 'transcribe_status', args: ['const struct transcribe_turn_session *', 'struct transcribe_turn_result *'] },
|
|
400
|
+
'transcribe_turn_get_timings': { ret: 'transcribe_status', args: ['const struct transcribe_turn_session *', 'struct transcribe_timings *'] },
|
|
401
|
+
'transcribe_turn_info_init': { ret: 'void', args: ['struct transcribe_turn_info *'] },
|
|
402
|
+
'transcribe_turn_params_init': { ret: 'void', args: ['struct transcribe_turn_params *'] },
|
|
403
|
+
'transcribe_turn_probs': { ret: 'const float *', args: ['const struct transcribe_turn_session *'] },
|
|
404
|
+
'transcribe_turn_result_init': { ret: 'void', args: ['struct transcribe_turn_result *'] },
|
|
405
|
+
'transcribe_turn_run': { ret: 'transcribe_status', args: ['struct transcribe_turn_session *', 'const float *', 'int', 'const struct transcribe_turn_params *'] },
|
|
406
|
+
'transcribe_turn_session_free': { ret: 'void', args: ['struct transcribe_turn_session *'] },
|
|
407
|
+
'transcribe_turn_session_init': { ret: 'transcribe_status', args: ['struct transcribe_model *', 'const struct transcribe_turn_session_params *', 'struct transcribe_turn_session **'] },
|
|
408
|
+
'transcribe_turn_session_params_init': { ret: 'void', args: ['struct transcribe_turn_session_params *'] },
|
|
409
|
+
'transcribe_turn_set_abort_callback': { ret: 'void', args: ['struct transcribe_turn_session *', 'transcribe_abort_callback', 'void *'] },
|
|
410
|
+
'transcribe_turn_speech_probs': { ret: 'const float *', args: ['const struct transcribe_turn_session *'] },
|
|
411
|
+
'transcribe_turn_stream_feed': { ret: 'transcribe_status', args: ['struct transcribe_turn_session *', 'const float *', 'int'] },
|
|
412
|
+
'transcribe_turn_stream_feed_batch': { ret: 'transcribe_status', args: ['struct transcribe_turn_session *const *', 'const float *const *', 'const int *', 'int'] },
|
|
413
|
+
'transcribe_turn_stream_flush': { ret: 'transcribe_status', args: ['struct transcribe_turn_session *'] },
|
|
414
|
+
'transcribe_turn_stream_reset': { ret: 'void', args: ['struct transcribe_turn_session *'] },
|
|
381
415
|
'transcribe_vad_get_info': { ret: 'transcribe_status', args: ['const struct transcribe_model *', 'struct transcribe_vad_info *'] },
|
|
382
416
|
'transcribe_vad_get_result': { ret: 'transcribe_status', args: ['const struct transcribe_vad_session *', 'struct transcribe_vad_result *'] },
|
|
383
417
|
'transcribe_vad_get_segment': { ret: 'transcribe_status', args: ['const struct transcribe_vad_session *', 'int', 'struct transcribe_vad_segment *'] },
|
package/dist/errors.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare class VersionMismatch extends TranscribeError {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare class BackendInitializing extends TranscribeError {
|
|
48
48
|
}
|
|
49
|
-
/** Raised when the model does not serve the role (ASR, diarize, langid, vad) the call needs. */
|
|
49
|
+
/** Raised when the model does not serve the role (ASR, diarize, langid, vad, turn) the call needs. */
|
|
50
50
|
export declare class UnsupportedRole extends TranscribeError {
|
|
51
51
|
}
|
|
52
52
|
/** Raised when a run is cancelled; carries any partial transcript in `partialResult`. */
|
package/dist/errors.js
CHANGED
|
@@ -50,7 +50,7 @@ export class VersionMismatch extends TranscribeError {
|
|
|
50
50
|
*/
|
|
51
51
|
export class BackendInitializing extends TranscribeError {
|
|
52
52
|
}
|
|
53
|
-
/** Raised when the model does not serve the role (ASR, diarize, langid, vad) the call needs. */
|
|
53
|
+
/** Raised when the model does not serve the role (ASR, diarize, langid, vad, turn) the call needs. */
|
|
54
54
|
export class UnsupportedRole extends TranscribeError {
|
|
55
55
|
}
|
|
56
56
|
/** Raised when a run is cancelled; carries any partial transcript in `partialResult`. */
|
package/dist/ffi.js
CHANGED
|
@@ -296,6 +296,59 @@ export function bindLibrary(libraryPath) {
|
|
|
296
296
|
"void *",
|
|
297
297
|
iop(T.transcribe_timings),
|
|
298
298
|
]),
|
|
299
|
+
// turn role
|
|
300
|
+
turnInfoInit: lib.func("transcribe_turn_info_init", "void", [outp(T.transcribe_turn_info)]),
|
|
301
|
+
turnGetInfo: lib.func("transcribe_turn_get_info", "int", [
|
|
302
|
+
"void *",
|
|
303
|
+
iop(T.transcribe_turn_info),
|
|
304
|
+
]),
|
|
305
|
+
turnSessionParamsInit: lib.func("transcribe_turn_session_params_init", "void", [
|
|
306
|
+
outp(T.transcribe_turn_session_params),
|
|
307
|
+
]),
|
|
308
|
+
turnSessionInit: lib.func("transcribe_turn_session_init", "int", [
|
|
309
|
+
"void *",
|
|
310
|
+
inp(T.transcribe_turn_session_params),
|
|
311
|
+
handleOut,
|
|
312
|
+
]),
|
|
313
|
+
turnSessionFree: lib.func("transcribe_turn_session_free", "void", ["void *"]),
|
|
314
|
+
turnSetAbortCallback: lib.func("transcribe_turn_set_abort_callback", "void", [
|
|
315
|
+
"void *",
|
|
316
|
+
"void *",
|
|
317
|
+
"void *",
|
|
318
|
+
]),
|
|
319
|
+
turnParamsInit: lib.func("transcribe_turn_params_init", "void", [
|
|
320
|
+
outp(T.transcribe_turn_params),
|
|
321
|
+
]),
|
|
322
|
+
turnRun: lib.func("transcribe_turn_run", "int", [
|
|
323
|
+
"void *",
|
|
324
|
+
inp("float"),
|
|
325
|
+
"int",
|
|
326
|
+
inp(T.transcribe_turn_params),
|
|
327
|
+
]),
|
|
328
|
+
turnStreamFeed: lib.func("transcribe_turn_stream_feed", "int", ["void *", inp("float"), "int"]),
|
|
329
|
+
// sessions[] / pcm[] / n_samples[]: marshalled in for the call's duration.
|
|
330
|
+
turnStreamFeedBatch: lib.func("transcribe_turn_stream_feed_batch", "int", [
|
|
331
|
+
"void **",
|
|
332
|
+
"float **",
|
|
333
|
+
"int *",
|
|
334
|
+
"int",
|
|
335
|
+
]),
|
|
336
|
+
turnStreamFlush: lib.func("transcribe_turn_stream_flush", "int", ["void *"]),
|
|
337
|
+
turnStreamReset: lib.func("transcribe_turn_stream_reset", "void", ["void *"]),
|
|
338
|
+
turnResultInit: lib.func("transcribe_turn_result_init", "void", [
|
|
339
|
+
outp(T.transcribe_turn_result),
|
|
340
|
+
]),
|
|
341
|
+
turnGetResult: lib.func("transcribe_turn_get_result", "int", [
|
|
342
|
+
"void *",
|
|
343
|
+
iop(T.transcribe_turn_result),
|
|
344
|
+
]),
|
|
345
|
+
// Session-owned; decoded (copied) before the compute lock is released.
|
|
346
|
+
turnProbs: lib.func("transcribe_turn_probs", "void *", ["void *"]),
|
|
347
|
+
turnSpeechProbs: lib.func("transcribe_turn_speech_probs", "void *", ["void *"]),
|
|
348
|
+
turnGetTimings: lib.func("transcribe_turn_get_timings", "int", [
|
|
349
|
+
"void *",
|
|
350
|
+
iop(T.transcribe_timings),
|
|
351
|
+
]),
|
|
299
352
|
// batch (offline)
|
|
300
353
|
runBatch: lib.func("transcribe_run_batch", "int", [
|
|
301
354
|
"void *",
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { backendState, initialize, setLogHandler, type BackendState, type LogHandler } from "./native.js";
|
|
9
9
|
import { TranscribeError } from "./errors.js";
|
|
10
|
-
import type { Backend, BackendInfo, BatchItem, Capabilities, DiarizeInfo, DiarizeOptions, DiarizeSessionOptions, FamilyExtension, Feature, LangIdInfo, LangIdOptions, LangIdResult, LangIdSessionOptions, ModelOptions, PcmLike, Role, SpeakerSegment, SessionLimits, SessionOptions, StreamOptions, StreamState, StreamText, StreamUpdate, Timings, Transcript, TranscribeOptions, TranscriptionResult, VadFeedOptions, VadInfo, VadOptions, VadResult, VadSessionOptions } from "./types.js";
|
|
10
|
+
import type { Backend, BackendInfo, BatchItem, Capabilities, DiarizeInfo, DiarizeOptions, DiarizeSessionOptions, FamilyExtension, Feature, LangIdInfo, LangIdOptions, LangIdResult, LangIdSessionOptions, ModelOptions, PcmLike, Role, SpeakerSegment, SessionLimits, SessionOptions, StreamOptions, StreamState, StreamText, StreamUpdate, Timings, Transcript, TranscribeOptions, TranscriptionResult, TurnFeedOptions, TurnInfo, TurnOptions, TurnResult, TurnSessionOptions, TurnStreamResult, VadFeedOptions, VadInfo, VadOptions, VadResult, VadSessionOptions } from "./types.js";
|
|
11
11
|
export * from "./types.js";
|
|
12
12
|
export * from "./errors.js";
|
|
13
13
|
export { backendState, initialize, setLogHandler, type BackendState, type LogHandler };
|
|
@@ -153,6 +153,60 @@ export declare class VadSession {
|
|
|
153
153
|
dispose(): void;
|
|
154
154
|
[Symbol.dispose](): void;
|
|
155
155
|
}
|
|
156
|
+
/** One entry of {@link TurnSession.streamFeedBatch}: this session gets this chunk. */
|
|
157
|
+
export interface TurnBatchItem {
|
|
158
|
+
session: TurnSession;
|
|
159
|
+
pcm: PcmLike;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A TURN-role session: has the speaker finished their turn? Same compute rules
|
|
163
|
+
* as VadSession: a turn stream is session state and does not take the stream
|
|
164
|
+
* lease.
|
|
165
|
+
*/
|
|
166
|
+
export declare class TurnSession {
|
|
167
|
+
#private;
|
|
168
|
+
/**
|
|
169
|
+
* Score one clip (the audio since the speaker started): has the turn ended at
|
|
170
|
+
* its end? Starts fresh (drops any stream in progress); audio longer than
|
|
171
|
+
* maxAudioMs is scored on its end. The input PCM is borrowed, not copied
|
|
172
|
+
* (see Session.run).
|
|
173
|
+
*/
|
|
174
|
+
run(pcm: PcmLike, opts?: TurnOptions): Promise<TurnResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Append audio to the stream; returns the turn probabilities of the frames
|
|
177
|
+
* it completes and the speech probabilities of the frames the model judged
|
|
178
|
+
* (a partial frame waits for the next feed). The chunk is borrowed, not
|
|
179
|
+
* copied (see Stream.feed). NotImplementedByModel if turnInfo.frameSamples
|
|
180
|
+
* is 0. An abort or processing error resets the stream; invalid input leaves
|
|
181
|
+
* it unchanged.
|
|
182
|
+
*/
|
|
183
|
+
streamFeed(pcm: PcmLike, opts?: TurnFeedOptions): Promise<TurnStreamResult>;
|
|
184
|
+
/**
|
|
185
|
+
* Feed several streams of one model in one compute (much faster than one
|
|
186
|
+
* feed per session): each session ends up as if fed its chunk alone; results
|
|
187
|
+
* are in order. InvalidArgument for an empty list, a repeated session or
|
|
188
|
+
* sessions of different models; TranscribeError for a disposed session (also
|
|
189
|
+
* one disposed while the batch waits for the lock). Uses the first session's
|
|
190
|
+
* thread count; `signal` cancels the batch, and an abort or processing error
|
|
191
|
+
* resets every listed stream. The chunks are borrowed, not copied.
|
|
192
|
+
*/
|
|
193
|
+
static streamFeedBatch(items: readonly TurnBatchItem[], opts?: TurnFeedOptions): Promise<TurnStreamResult[]>;
|
|
194
|
+
/**
|
|
195
|
+
* End the stream: score the buffered partial frame (zero padded) and the
|
|
196
|
+
* speech of every frame not yet judged, then reset (the next feed's
|
|
197
|
+
* firstFrame is 0). A processing error also resets it.
|
|
198
|
+
*/
|
|
199
|
+
streamFlush(opts?: TurnFeedOptions): Promise<TurnStreamResult>;
|
|
200
|
+
/**
|
|
201
|
+
* Drop the stream without scoring (the next feed starts at frame 0); queued
|
|
202
|
+
* behind any in-flight call.
|
|
203
|
+
*/
|
|
204
|
+
streamReset(): Promise<void>;
|
|
205
|
+
/** load_ms plus the last call's encode / decode time. */
|
|
206
|
+
get timings(): Timings;
|
|
207
|
+
dispose(): void;
|
|
208
|
+
[Symbol.dispose](): void;
|
|
209
|
+
}
|
|
156
210
|
export declare class TranscribeModel {
|
|
157
211
|
#private;
|
|
158
212
|
private constructor();
|
|
@@ -179,6 +233,10 @@ export declare class TranscribeModel {
|
|
|
179
233
|
get vadInfo(): VadInfo;
|
|
180
234
|
/** Open a VAD-role session; UnsupportedRole on a model without "vad". */
|
|
181
235
|
createVadSession(opts?: VadSessionOptions): VadSession;
|
|
236
|
+
/** Static facts of a "turn" model; UnsupportedRole otherwise. */
|
|
237
|
+
get turnInfo(): TurnInfo;
|
|
238
|
+
/** Open a TURN-role session; UnsupportedRole on a model without "turn". */
|
|
239
|
+
createTurnSession(opts?: TurnSessionOptions): TurnSession;
|
|
182
240
|
get capabilities(): Capabilities;
|
|
183
241
|
supports(feature: Feature): boolean;
|
|
184
242
|
/** Whether this model accepts the given family extension on its slot. */
|
package/dist/index.js
CHANGED
|
@@ -73,6 +73,7 @@ const ROLES = {
|
|
|
73
73
|
diarize: g.TRANSCRIBE_ROLE_DIARIZE,
|
|
74
74
|
langid: g.TRANSCRIBE_ROLE_LANGID,
|
|
75
75
|
vad: g.TRANSCRIBE_ROLE_VAD,
|
|
76
|
+
turn: g.TRANSCRIBE_ROLE_TURN,
|
|
76
77
|
};
|
|
77
78
|
// ---- helpers ---------------------------------------------------------------
|
|
78
79
|
function lookup(map, key, what) {
|
|
@@ -626,7 +627,7 @@ const STREAM_TEARDOWN = new WeakMap();
|
|
|
626
627
|
const SESSION_CONTROL = new WeakMap();
|
|
627
628
|
/**
|
|
628
629
|
* One native session handle under the model's compute rules, shared by Session,
|
|
629
|
-
* DiarizeSession, LangIdSession, and
|
|
630
|
+
* DiarizeSession, LangIdSession, VadSession, and TurnSession. Each holds it in a private
|
|
630
631
|
* field, so none of this is reachable from user code. `setAbort` is the role's
|
|
631
632
|
* set_abort_callback.
|
|
632
633
|
*/
|
|
@@ -651,6 +652,17 @@ class SessionCore {
|
|
|
651
652
|
get disposed() {
|
|
652
653
|
return this.#disposed;
|
|
653
654
|
}
|
|
655
|
+
/**
|
|
656
|
+
* Mark this session as used by a compute another session's call runs (a
|
|
657
|
+
* batched feed); returns the undo. Call it under the model lock.
|
|
658
|
+
*/
|
|
659
|
+
holdInFlight(kind) {
|
|
660
|
+
this.#inFlight = kind;
|
|
661
|
+
return () => {
|
|
662
|
+
if (this.#inFlight === kind)
|
|
663
|
+
this.#inFlight = null;
|
|
664
|
+
};
|
|
665
|
+
}
|
|
654
666
|
/** Reads touch the session; forbidden while a worker call is in flight. */
|
|
655
667
|
assertNotComputing(what) {
|
|
656
668
|
if (this.#inFlight) {
|
|
@@ -1421,6 +1433,175 @@ export class VadSession {
|
|
|
1421
1433
|
this.dispose();
|
|
1422
1434
|
}
|
|
1423
1435
|
}
|
|
1436
|
+
// ---- TurnSession -----------------------------------------------------------
|
|
1437
|
+
function readProbs(n, count, get, what) {
|
|
1438
|
+
if (count <= 0)
|
|
1439
|
+
return [];
|
|
1440
|
+
const ptr = get();
|
|
1441
|
+
if (!ptr)
|
|
1442
|
+
throw new TranscribeError(`turn result has ${what} but no buffer`);
|
|
1443
|
+
return Array.from(n.koffi.decode(ptr, "float", count));
|
|
1444
|
+
}
|
|
1445
|
+
// Call inside exclusive(): the next compute replaces the session's result.
|
|
1446
|
+
function readTurnResult(n, h) {
|
|
1447
|
+
const F = n.F;
|
|
1448
|
+
const res = {};
|
|
1449
|
+
F.turnResultInit(res);
|
|
1450
|
+
check(n, F.turnGetResult(h, res), "transcribe_turn_get_result");
|
|
1451
|
+
return {
|
|
1452
|
+
p: res.p,
|
|
1453
|
+
ended: res.ended,
|
|
1454
|
+
probs: readProbs(n, res.n_probs, () => F.turnProbs(h), "probabilities"),
|
|
1455
|
+
firstFrame: num(res.first_frame),
|
|
1456
|
+
speechProbs: readProbs(n, res.n_speech_probs, () => F.turnSpeechProbs(h), "speech probabilities"),
|
|
1457
|
+
speechFirstFrame: num(res.speech_first_frame),
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
function readTurnStreamResult(n, h) {
|
|
1461
|
+
const { probs, firstFrame, speechProbs, speechFirstFrame } = readTurnResult(n, h);
|
|
1462
|
+
return { probs, firstFrame, speechProbs, speechFirstFrame };
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* A TURN-role session: has the speaker finished their turn? Same compute rules
|
|
1466
|
+
* as VadSession: a turn stream is session state and does not take the stream
|
|
1467
|
+
* lease.
|
|
1468
|
+
*/
|
|
1469
|
+
export class TurnSession {
|
|
1470
|
+
#n;
|
|
1471
|
+
#core;
|
|
1472
|
+
#model; // keep the model alive while this session lives
|
|
1473
|
+
#untrack;
|
|
1474
|
+
/** @internal */
|
|
1475
|
+
constructor(n, model, handle, lock, untrack) {
|
|
1476
|
+
this.#n = n;
|
|
1477
|
+
this.#model = model;
|
|
1478
|
+
this.#core = new SessionCore(n, handle, lock, n.F.turnSetAbortCallback);
|
|
1479
|
+
this.#untrack = untrack;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Score one clip (the audio since the speaker started): has the turn ended at
|
|
1483
|
+
* its end? Starts fresh (drops any stream in progress); audio longer than
|
|
1484
|
+
* maxAudioMs is scored on its end. The input PCM is borrowed, not copied
|
|
1485
|
+
* (see Session.run).
|
|
1486
|
+
*/
|
|
1487
|
+
async run(pcm, opts = {}) {
|
|
1488
|
+
const n = this.#n;
|
|
1489
|
+
const F = n.F;
|
|
1490
|
+
const h = this.#core.handle;
|
|
1491
|
+
const samples = toFloat32(pcm);
|
|
1492
|
+
const p = {};
|
|
1493
|
+
F.turnParamsInit(p);
|
|
1494
|
+
if (opts.threshold !== undefined)
|
|
1495
|
+
p.threshold = opts.threshold;
|
|
1496
|
+
return this.#core.exclusive("run turn detection", async (call) => {
|
|
1497
|
+
const status = await call("run()", opts.signal, F.turnRun, h, samples, samples.length, p);
|
|
1498
|
+
check(n, status, "transcribe_turn_run");
|
|
1499
|
+
return readTurnResult(n, h);
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
/**
|
|
1503
|
+
* Append audio to the stream; returns the turn probabilities of the frames
|
|
1504
|
+
* it completes and the speech probabilities of the frames the model judged
|
|
1505
|
+
* (a partial frame waits for the next feed). The chunk is borrowed, not
|
|
1506
|
+
* copied (see Stream.feed). NotImplementedByModel if turnInfo.frameSamples
|
|
1507
|
+
* is 0. An abort or processing error resets the stream; invalid input leaves
|
|
1508
|
+
* it unchanged.
|
|
1509
|
+
*/
|
|
1510
|
+
async streamFeed(pcm, opts = {}) {
|
|
1511
|
+
const n = this.#n;
|
|
1512
|
+
const h = this.#core.handle;
|
|
1513
|
+
const samples = asFloat32(pcm);
|
|
1514
|
+
return this.#core.exclusive("feed the turn stream", async (call) => {
|
|
1515
|
+
const status = await call("streamFeed()", opts.signal, n.F.turnStreamFeed, h, samples.length > 0 ? samples : null, samples.length);
|
|
1516
|
+
check(n, status, "transcribe_turn_stream_feed");
|
|
1517
|
+
return readTurnStreamResult(n, h);
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Feed several streams of one model in one compute (much faster than one
|
|
1522
|
+
* feed per session): each session ends up as if fed its chunk alone; results
|
|
1523
|
+
* are in order. InvalidArgument for an empty list, a repeated session or
|
|
1524
|
+
* sessions of different models; TranscribeError for a disposed session (also
|
|
1525
|
+
* one disposed while the batch waits for the lock). Uses the first session's
|
|
1526
|
+
* thread count; `signal` cancels the batch, and an abort or processing error
|
|
1527
|
+
* resets every listed stream. The chunks are borrowed, not copied.
|
|
1528
|
+
*/
|
|
1529
|
+
static async streamFeedBatch(items, opts = {}) {
|
|
1530
|
+
if (!Array.isArray(items) || items.length === 0)
|
|
1531
|
+
throw new InvalidArgument("streamFeedBatch requires at least one session");
|
|
1532
|
+
const sessions = [];
|
|
1533
|
+
for (const item of items) {
|
|
1534
|
+
const s = item?.session;
|
|
1535
|
+
if (!(s instanceof TurnSession))
|
|
1536
|
+
throw new InvalidArgument("streamFeedBatch: every item needs a TurnSession");
|
|
1537
|
+
if (sessions.includes(s))
|
|
1538
|
+
throw new InvalidArgument("streamFeedBatch: a session is listed more than once");
|
|
1539
|
+
if (sessions.length > 0 && s.#model !== sessions[0].#model)
|
|
1540
|
+
throw new InvalidArgument("streamFeedBatch: sessions belong to different models");
|
|
1541
|
+
sessions.push(s);
|
|
1542
|
+
}
|
|
1543
|
+
const arrays = items.map((item) => asFloat32(item.pcm));
|
|
1544
|
+
const counts = Int32Array.from(arrays, (a) => a.length);
|
|
1545
|
+
const first = sessions[0];
|
|
1546
|
+
const n = first.#n;
|
|
1547
|
+
// The model lock, taken once through the first session; the others are
|
|
1548
|
+
// checked under it. A dispose meanwhile defers its free behind this lock.
|
|
1549
|
+
return first.#core.exclusive("feed the turn streams", async (call) => {
|
|
1550
|
+
if (sessions.some((s) => s.#core.disposed))
|
|
1551
|
+
throw new TranscribeError("session has been disposed");
|
|
1552
|
+
const handles = sessions.map((s) => s.#core.handle);
|
|
1553
|
+
const releases = sessions.slice(1).map((s) => s.#core.holdInFlight("streamFeedBatch()"));
|
|
1554
|
+
try {
|
|
1555
|
+
const status = await call("streamFeedBatch()", opts.signal, n.F.turnStreamFeedBatch, handles, arrays.map((a) => (a.length > 0 ? a : null)), counts, sessions.length);
|
|
1556
|
+
check(n, status, "transcribe_turn_stream_feed_batch");
|
|
1557
|
+
return handles.map((h) => readTurnStreamResult(n, h));
|
|
1558
|
+
}
|
|
1559
|
+
finally {
|
|
1560
|
+
for (const release of releases)
|
|
1561
|
+
release();
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* End the stream: score the buffered partial frame (zero padded) and the
|
|
1567
|
+
* speech of every frame not yet judged, then reset (the next feed's
|
|
1568
|
+
* firstFrame is 0). A processing error also resets it.
|
|
1569
|
+
*/
|
|
1570
|
+
async streamFlush(opts = {}) {
|
|
1571
|
+
const n = this.#n;
|
|
1572
|
+
const h = this.#core.handle;
|
|
1573
|
+
return this.#core.exclusive("flush the turn stream", async (call) => {
|
|
1574
|
+
const status = await call("streamFlush()", opts.signal, n.F.turnStreamFlush, h);
|
|
1575
|
+
check(n, status, "transcribe_turn_stream_flush");
|
|
1576
|
+
return readTurnStreamResult(n, h);
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Drop the stream without scoring (the next feed starts at frame 0); queued
|
|
1581
|
+
* behind any in-flight call.
|
|
1582
|
+
*/
|
|
1583
|
+
async streamReset() {
|
|
1584
|
+
const h = this.#core.handle;
|
|
1585
|
+
return this.#core.exclusive(null, async () => {
|
|
1586
|
+
this.#n.F.turnStreamReset(h);
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
/** load_ms plus the last call's encode / decode time. */
|
|
1590
|
+
get timings() {
|
|
1591
|
+
this.#core.assertNotComputing("session timings");
|
|
1592
|
+
const h = this.#core.handle;
|
|
1593
|
+
return readTimings(this.#n, (o) => this.#n.F.turnGetTimings(h, o));
|
|
1594
|
+
}
|
|
1595
|
+
dispose() {
|
|
1596
|
+
if (this.#core.disposed)
|
|
1597
|
+
return;
|
|
1598
|
+
this.#untrack(this);
|
|
1599
|
+
this.#core.dispose(this.#n.F.turnSessionFree);
|
|
1600
|
+
}
|
|
1601
|
+
[Symbol.dispose]() {
|
|
1602
|
+
this.dispose();
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1424
1605
|
// ---- Model -----------------------------------------------------------------
|
|
1425
1606
|
export class TranscribeModel {
|
|
1426
1607
|
#n;
|
|
@@ -1590,6 +1771,35 @@ export class TranscribeModel {
|
|
|
1590
1771
|
this.#sessions.add(session);
|
|
1591
1772
|
return session;
|
|
1592
1773
|
}
|
|
1774
|
+
/** Static facts of a "turn" model; UnsupportedRole otherwise. */
|
|
1775
|
+
get turnInfo() {
|
|
1776
|
+
const n = this.#n;
|
|
1777
|
+
const info = {};
|
|
1778
|
+
n.F.turnInfoInit(info);
|
|
1779
|
+
check(n, n.F.turnGetInfo(this.handle, info), "reading turn info");
|
|
1780
|
+
return {
|
|
1781
|
+
sampleRate: info.sample_rate,
|
|
1782
|
+
maxAudioMs: info.max_audio_ms,
|
|
1783
|
+
frameSamples: info.frame_samples,
|
|
1784
|
+
hasSpeech: info.has_speech,
|
|
1785
|
+
threshold: info.threshold,
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
/** Open a TURN-role session; UnsupportedRole on a model without "turn". */
|
|
1789
|
+
createTurnSession(opts = {}) {
|
|
1790
|
+
const n = this.#n;
|
|
1791
|
+
const p = {};
|
|
1792
|
+
n.F.turnSessionParamsInit(p);
|
|
1793
|
+
if (opts.nThreads !== undefined)
|
|
1794
|
+
p.n_threads = opts.nThreads;
|
|
1795
|
+
const out = [null];
|
|
1796
|
+
check(n, n.F.turnSessionInit(this.handle, p, out), "opening turn session");
|
|
1797
|
+
if (!out[0])
|
|
1798
|
+
throw new TranscribeError("turn session init returned a null handle");
|
|
1799
|
+
const session = new TurnSession(n, this, out[0], this.#lock, (s) => this.#sessions.delete(s));
|
|
1800
|
+
this.#sessions.add(session);
|
|
1801
|
+
return session;
|
|
1802
|
+
}
|
|
1593
1803
|
get capabilities() {
|
|
1594
1804
|
const n = this.#n;
|
|
1595
1805
|
const c = {};
|
package/dist/types.d.ts
CHANGED
|
@@ -264,9 +264,9 @@ export type FamilyExtension = ({
|
|
|
264
264
|
} & SortformerDiarizeOptions);
|
|
265
265
|
/**
|
|
266
266
|
* What a model serves: "asr" (transcription), "diarize" (speaker turns),
|
|
267
|
-
* "langid" (language), "vad" (voice activity).
|
|
267
|
+
* "langid" (language), "vad" (voice activity), "turn" (end of turn).
|
|
268
268
|
*/
|
|
269
|
-
export type Role = "asr" | "diarize" | "langid" | "vad";
|
|
269
|
+
export type Role = "asr" | "diarize" | "langid" | "vad" | "turn";
|
|
270
270
|
export interface DiarizeInfo {
|
|
271
271
|
/** Input PCM rate. */
|
|
272
272
|
sampleRate: number;
|
|
@@ -371,3 +371,48 @@ export interface VadResult {
|
|
|
371
371
|
/** Speech segments; run only, empty after a feed or flush. */
|
|
372
372
|
segments: VadSegment[];
|
|
373
373
|
}
|
|
374
|
+
export interface TurnInfo {
|
|
375
|
+
/** Input PCM rate (16000). */
|
|
376
|
+
sampleRate: number;
|
|
377
|
+
/** The longest audio run looks at; longer audio is scored on its end. 0 = no limit. */
|
|
378
|
+
maxAudioMs: number;
|
|
379
|
+
/** Samples per streamed frame; 0 = the model cannot stream (use run). */
|
|
380
|
+
frameSamples: number;
|
|
381
|
+
/** Whether the model also returns per-frame speech probabilities. */
|
|
382
|
+
hasSpeech: boolean;
|
|
383
|
+
/** The model's default cut-off: the turn has ended when p >= threshold. */
|
|
384
|
+
threshold: number;
|
|
385
|
+
}
|
|
386
|
+
export interface TurnSessionOptions {
|
|
387
|
+
/** CPU threads; 0 = library default. */
|
|
388
|
+
nThreads?: number;
|
|
389
|
+
}
|
|
390
|
+
/** Options for TurnSession.run. */
|
|
391
|
+
export interface TurnOptions {
|
|
392
|
+
/** Cancel the run cooperatively. */
|
|
393
|
+
signal?: AbortSignal;
|
|
394
|
+
/** Cut-off for `ended`, 0 to 1; omitted (or negative) = the model's TurnInfo.threshold. */
|
|
395
|
+
threshold?: number;
|
|
396
|
+
}
|
|
397
|
+
export interface TurnFeedOptions {
|
|
398
|
+
/** Cancel the feed / flush cooperatively (a batch feed: every session's stream resets). */
|
|
399
|
+
signal?: AbortSignal;
|
|
400
|
+
}
|
|
401
|
+
/** Per-frame probabilities from a stream feed or flush (copied). */
|
|
402
|
+
export interface TurnStreamResult {
|
|
403
|
+
/** Turn-end probability of each frame this call completed. */
|
|
404
|
+
probs: number[];
|
|
405
|
+
/** Stream frame index of probs[0] (0 after run). */
|
|
406
|
+
firstFrame: number;
|
|
407
|
+
/** Speech probability of each frame the model judged in this call; empty without hasSpeech. */
|
|
408
|
+
speechProbs: number[];
|
|
409
|
+
/** Stream frame index of speechProbs[0]; may trail firstFrame (speech is judged late). */
|
|
410
|
+
speechFirstFrame: number;
|
|
411
|
+
}
|
|
412
|
+
/** A scored clip (copied). Streaming models also return every frame's probabilities. */
|
|
413
|
+
export interface TurnResult extends TurnStreamResult {
|
|
414
|
+
/** Probability that the turn has ended at the end of the clip. */
|
|
415
|
+
p: number;
|
|
416
|
+
/** Whether p is at or above the threshold. */
|
|
417
|
+
ended: boolean;
|
|
418
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transcribe-cpp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "TypeScript/Node.js bindings for transcribe.cpp — a C/C++ speech-to-text library built on ggml",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"koffi": "^3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@transcribe-cpp/darwin-arm64-metal": "0.
|
|
55
|
-
"@transcribe-cpp/darwin-x64-cpu": "0.
|
|
56
|
-
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.
|
|
57
|
-
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.
|
|
58
|
-
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.
|
|
54
|
+
"@transcribe-cpp/darwin-arm64-metal": "0.5.1",
|
|
55
|
+
"@transcribe-cpp/darwin-x64-cpu": "0.5.1",
|
|
56
|
+
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.5.1",
|
|
57
|
+
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.5.1",
|
|
58
|
+
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.5.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^22.0.0",
|