Views
No views yet
1from transformers import pipeline
2
3# Load the model
4asr = pipeline(
5 "automatic-speech-recognition",
6 model="northtechai/northstt-stageb-300",
7 generate_kwargs={
8 "condition_on_prev_tokens": True,
9 "no_repeat_ngram_size": 2,
10 "temperature": 0.0,
11 "do_sample": False,
12 "language": "tr",
13 }
14)
15
16# Transcribe audio
17result = asr("path/to/audio.wav")
18print(result["text"])1@misc{radford2022robust,
2 title={Robust Speech Recognition via Large-Scale Weak Supervision},
3 author={Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
4 year={2022},
5 eprint={2212.04356},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}