Update README.md
Browse files
README.md
CHANGED
|
@@ -31,7 +31,7 @@ conda install -c conda-forge huggingface_hub
|
|
| 31 |
|
| 32 |
Extracting speaker embeddings is easy and only requires a few lines of code:
|
| 33 |
|
| 34 |
-
```
|
| 35 |
import torch
|
| 36 |
import torchaudio
|
| 37 |
from huggingface_hub import hf_hub_download
|
|
@@ -49,7 +49,7 @@ embedding = ecapa2_model(audio)
|
|
| 49 |
|
| 50 |
For the extraction of other hierachical features, the 'label' argument can be used, which accepts a string containing the feature ids separated with '|':
|
| 51 |
|
| 52 |
-
```
|
| 53 |
# only extracts embedding, same as previous example
|
| 54 |
feature = ecapa2_model(audio, label='embedding')
|
| 55 |
|
|
|
|
| 31 |
|
| 32 |
Extracting speaker embeddings is easy and only requires a few lines of code:
|
| 33 |
|
| 34 |
+
```python
|
| 35 |
import torch
|
| 36 |
import torchaudio
|
| 37 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 49 |
|
| 50 |
For the extraction of other hierachical features, the 'label' argument can be used, which accepts a string containing the feature ids separated with '|':
|
| 51 |
|
| 52 |
+
```python
|
| 53 |
# only extracts embedding, same as previous example
|
| 54 |
feature = ecapa2_model(audio, label='embedding')
|
| 55 |
|