speech_recognition with Farsi and other language

Speech Recognition with Farsi and other language

Install Packages

pip install SpeechRecognition

Change language

Persian(Farsi)

text = r.recognize_google(audio, language='fa-IR')

English

text = r.recognize_google(audio, language='en-US')