worker fix?
All checks were successful
Publish Library / Build NPM Project (push) Successful in 29s
Publish Library / Tag Version (push) Successful in 5s

This commit is contained in:
2026-02-12 20:17:31 -05:00
parent e4399e1b7b
commit 5bd41f8c6a
3 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ export class Audio {
constructor(private ai: Ai) {}
asr(file: string, options: { model?: string; speaker?: boolean } = {}): AbortablePromise<string | null> {
console.log('audio', file);
const { model = this.ai.options.asr || 'whisper-base', speaker = false } = options;
let aborted = false;
const abort = () => { aborted = true; };