pytorch使用speechbrain和huggingface中预训练模型实现语音(中文)转文字的推理例子
importlibrosaimporttorchimportIPython.displayasdisplayfromtransformersimportWav2Vec2ForCTC,Wav2Vec2Tokenizerimportwarningswarnings.filterwarnings("ignore")#!pipinstallspeechbrainaudio_file=f"B31_385.w