0
How to save output in text
3 Réponses
0
Text=r.recognition_google(audio,
language=zh-CN
0
Import speech_recognition as sr
r = sr.Recognizer()
With sr.AudioFile(file name.wav) as source:
audio=r.record(source)
Text=r.recognize_google(audio,language=zh-CN)
Print(text)