emon-j commited on
Commit
4ade5d7
·
verified ·
1 Parent(s): dc7e9ad

fix load instruction

Browse files
Files changed (1) hide show
  1. README.md +11 -9
README.md CHANGED
@@ -39,12 +39,12 @@ The `wsi` library provides a simple interface to use the WSI model for embedding
39
  ### Generate Speaker Embeddings
40
 
41
  ```python
42
- from wsi import load_model, process_single_audio
43
-
44
- # Load the model and feature extractor
45
- model, feature_extractor = load_model("path/to/wsi.pth")
46
-
47
- # Generate embeddings for an audio file
48
  embedding = process_single_audio(model, feature_extractor, "path/to/audio.wav")
49
  print("Speaker Embedding:", embedding)
50
  ```
@@ -52,10 +52,12 @@ print("Speaker Embedding:", embedding)
52
  ### Calculate Similarity Between Two Audio Files
53
 
54
  ```python
55
- from wsi import load_model, process_audio_pair
56
 
57
- # Load the model and feature extractor
58
- model, feature_extractor = load_model("path/to/wsi.pth")
 
 
59
 
60
  # Compute similarity between two audio files
61
  similarity = process_audio_pair(
 
39
  ### Generate Speaker Embeddings
40
 
41
  ```python
42
+ from whisper-speaker-id import load_model, process_single_audio
43
+ model, feature_extractor = load_model(
44
+ model_path_or_repo_id="emon-j/WSI",
45
+ filename="wsi.pth"
46
+ )
47
+ # Process an audio file
48
  embedding = process_single_audio(model, feature_extractor, "path/to/audio.wav")
49
  print("Speaker Embedding:", embedding)
50
  ```
 
52
  ### Calculate Similarity Between Two Audio Files
53
 
54
  ```python
55
+ from whisper-speaker-id import load_model, process_audio_pair
56
 
57
+ model, feature_extractor = load_model(
58
+ model_path_or_repo_id="emon-j/WSI",
59
+ filename="wsi.pth"
60
+ )
61
 
62
  # Compute similarity between two audio files
63
  similarity = process_audio_pair(