Porjaz commited on
Commit
8808411
·
verified ·
1 Parent(s): 7335025

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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("your/audio/file.wav", device)
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