Xenova HF staff commited on
Commit
ff0c1e1
1 Parent(s): 825d51d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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;