pinot commited on
Commit
05ccf82
1 Parent(s): 300d6c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -0
README.md CHANGED
@@ -39,6 +39,21 @@ It achieves the following results on the evaluation set:
39
 
40
  More information needed
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ## Intended uses & limitations
43
 
44
  More information needed
 
39
 
40
  More information needed
41
 
42
+ ## Usage
43
+
44
+ The model can be used directly (without a language model) as follows...
45
+
46
+ Using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
47
+
48
+ ```python
49
+ from huggingsound import SpeechRecognitionModel
50
+
51
+ model = SpeechRecognitionModel("pinot/wav2vec2-xls-r-300m-ja-cv-14_4")
52
+ audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
53
+
54
+ transcriptions = model.transcribe(audio_paths)
55
+ ```
56
+
57
  ## Intended uses & limitations
58
 
59
  More information needed