Update README.md
Browse files
README.md
CHANGED
@@ -53,7 +53,7 @@ from speechbrain.inference.interfaces import foreign_class
|
|
53 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
54 |
asr_classifier = foreign_class(source="Macedonian-ASR/wav2vec2-aed-macedonian-asr", pymodule_file="custom_interface.py", classname="ASR")
|
55 |
asr_classifier = asr_classifier.to(device)
|
56 |
-
predictions = asr_classifier.classify_file("
|
57 |
print(predictions)
|
58 |
```
|
59 |
|
|
|
53 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
54 |
asr_classifier = foreign_class(source="Macedonian-ASR/wav2vec2-aed-macedonian-asr", pymodule_file="custom_interface.py", classname="ASR")
|
55 |
asr_classifier = asr_classifier.to(device)
|
56 |
+
predictions = asr_classifier.classify_file("audio_file.wav", device)
|
57 |
print(predictions)
|
58 |
```
|
59 |
|