Commit
·
f5a79b7
1
Parent(s):
8924ed5
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,6 +36,17 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
| 36 |
[SpeechBrain](https://speechbrain.github.io).
|
| 37 |
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
### Limitations
|
| 41 |
The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
|
|
|
|
| 36 |
[SpeechBrain](https://speechbrain.github.io).
|
| 37 |
|
| 38 |
|
| 39 |
+
### Perform Classification on your own file
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from speechbrain.pretrained import AudioClassifier
|
| 43 |
+
|
| 44 |
+
model = AudioClassifier.from_hparams(source="speechbrain/cnn14-esc50", savedir='pretrained_models/cnn14-esc50')
|
| 45 |
+
out_probs, score, index, text_lab = model.classify_file('speechbrain/cnn14-esc50/1-100032-A-0.wav')
|
| 46 |
+
|
| 47 |
+
print(text_lab)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
|
| 51 |
### Limitations
|
| 52 |
The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
|