[feat] add hf tts

This commit is contained in:
kwaroran
2023-11-28 02:48:47 +09:00
parent cecc1731bc
commit a6b11c22de
8 changed files with 668 additions and 564 deletions

View File

@@ -52,4 +52,4 @@ export const runEmbedding = async (text: string):Promise<Float32Array> => {
let extractor = await pipeline('feature-extraction', 'Xenova/all-MiniLM-L6-v2');
let result = await extractor(text, { pooling: 'mean', normalize: true });
return result?.data ?? null;
}
}