Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ const model = await AutoModel.from_pretrained('Xenova/wavlm-base-plus-sv');
|
|
22 |
|
23 |
// Helper function to compute speaker embedding from audio URL
|
24 |
async function compute_embedding(url) {
|
25 |
-
const audio = await read_audio(url);
|
26 |
const inputs = await processor(audio);
|
27 |
const { embeddings } = await model(inputs);
|
28 |
return embeddings.data;
|
|
|
22 |
|
23 |
// Helper function to compute speaker embedding from audio URL
|
24 |
async function compute_embedding(url) {
|
25 |
+
const audio = await read_audio(url, 16000);
|
26 |
const inputs = await processor(audio);
|
27 |
const { embeddings } = await model(inputs);
|
28 |
return embeddings.data;
|