shniranjan
commited on
Commit
•
b8860f9
1
Parent(s):
6171fec
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import soundfile as sf
|
2 |
import torch
|
3 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
@@ -17,3 +20,4 @@ def parse_transcription(wav_file):
|
|
17 |
# transcribe
|
18 |
transcription = processor.decode(predicted_ids[0], skip_special_tokens=True)
|
19 |
print(transcription)
|
|
|
|
1 |
+
## Usage
|
2 |
+
The model can be used directly (without a language model) as follows:
|
3 |
+
```python
|
4 |
import soundfile as sf
|
5 |
import torch
|
6 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
|
|
20 |
# transcribe
|
21 |
transcription = processor.decode(predicted_ids[0], skip_special_tokens=True)
|
22 |
print(transcription)
|
23 |
+
```
|