Update README.md
Browse files
README.md
CHANGED
@@ -33,6 +33,9 @@ ECAPA2 is a hybrid neural network architecture and training strategy for speaker
|
|
33 |
|
34 |
Extracting speaker embeddings is easy and only requires a few lines of code:
|
35 |
```
|
|
|
|
|
|
|
36 |
audio = torchaudio.load('sample.wav')
|
37 |
ecapa2_model = torch.load('model.pt')
|
38 |
embedding = ecapa2_model.extract_embedding(audio)
|
|
|
33 |
|
34 |
Extracting speaker embeddings is easy and only requires a few lines of code:
|
35 |
```
|
36 |
+
import torch
|
37 |
+
import torchaudio
|
38 |
+
|
39 |
audio = torchaudio.load('sample.wav')
|
40 |
ecapa2_model = torch.load('model.pt')
|
41 |
embedding = ecapa2_model.extract_embedding(audio)
|