Instructions to use nguyenvulebinh/wav2vec2-bartpho with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nguyenvulebinh/wav2vec2-bartpho with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="nguyenvulebinh/wav2vec2-bartpho")# Load model directly from transformers import AutoTokenizer, AutoModelForSpeechSeq2Seq tokenizer = AutoTokenizer.from_pretrained("nguyenvulebinh/wav2vec2-bartpho") model = AutoModelForSpeechSeq2Seq.from_pretrained("nguyenvulebinh/wav2vec2-bartpho") - Notebooks
- Google Colab
- Kaggle
Commit ·
5eaef57
1
Parent(s): d5f441b
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,9 +66,11 @@ def decode_wav(audio_wavs, asr_model, prefix=""):
|
|
| 66 |
|
| 67 |
return output_text
|
| 68 |
|
|
|
|
|
|
|
| 69 |
print(decode_wav([torchaudio.load('sample_news.wav')[0].squeeze()], model))
|
| 70 |
|
| 71 |
# <|0.00| Gia đình cho biết, nhiều lần đã từng gọi điện báo chính quyền và lực lượng an ninh địa phương nhưng đều không có tác dụng |7.00|>
|
| 72 |
-
# <|8.14| Không ai giúp đỡ được mình một chút nào cả, nên là lúc đó là lúc tuyệt vọng nhất, nó tra tấn mình cực kỳ khổ, gây cái tâm lý ức chế rất là nhiều, rất là lớn |19.02|>
|
| 73 |
|
| 74 |
```
|
|
|
|
| 66 |
|
| 67 |
return output_text
|
| 68 |
|
| 69 |
+
|
| 70 |
+
# https://huggingface.co/nguyenvulebinh/wav2vec2-bartpho/resolve/main/sample_news.wav
|
| 71 |
print(decode_wav([torchaudio.load('sample_news.wav')[0].squeeze()], model))
|
| 72 |
|
| 73 |
# <|0.00| Gia đình cho biết, nhiều lần đã từng gọi điện báo chính quyền và lực lượng an ninh địa phương nhưng đều không có tác dụng |7.00|>
|
| 74 |
+
# <|8.14| Không ai giúp đỡ được mình một chút nào cả, nên là lúc đó là lúc tuyệt vọng nhất, nó tra tấn mình cực kỳ khổ, gây cái tâm lý ức chế rất là nhiều, rất là lớn |19.02|>
|
| 75 |
|
| 76 |
```
|