Recognizing Speech in Other Languages
Here are some resources for more information about topics covered in this lesson:
00:00 Recognizing speech in languages other than English.
00:05
So far in this course, we’ve been recognizing speech in English, which is the default language for each .recognize_*()
method of the SpeechRecognition package. However, it is absolutely possible to recognize speech in other languages, and it’s quite simple to accomplish.
00:21
To recognize speech in a different language, set the language
keyword argument of the .recognize_*()
method to a string corresponding to the desired language. Most of the methods accept a BCP-47 language tag, such as 'en-US'
for American English or 'fr-FR'
for French. For example, what you’ll see onscreen next recognizes French speech in an audio file.
00:56
Note that only the methods seen onscreen accept a language
keyword argument.
01:02
To find out which language tags are supported by the API you’re using, you’ll need to consult the corresponding documentation. A list of language tags used by .recognize_google()
can be found in Google’s online documentation.
01:17 Now that you’ve gained skills and experience in speech recognition, it’s time to put all that you’ve learned together in the final section of the course.
Become a Member to join the conversation.