worker fix?
This commit is contained in:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user