start to integrate whisper.

This commit is contained in:
Jordan
2025-02-02 06:09:21 -08:00
parent 718d8e034f
commit 013578778c
7 changed files with 115 additions and 24 deletions

View File

@ -76,5 +76,6 @@ export class CachedTranslator extends Translator {
const tr2 = await super.translate(text, target);
const key2 = `${this.source}::${targetKey}::${text}`
await cache.set(key2, tr2);
return tr2;
}
}