16 Use World Languages
So far, we’ve taught Python how to speak and listen in English. But Python can understand many other world languages. In this chapter, you’ll first teach Python to talk in several other languages with the modules we’ve been using. I’ll then introduce a useful module called translate, which can translate one language to another, and you’ll use this to silently translate languages. Then we’ll add the speech recognition and text-to-speech features so you can speak one language to the Python script and the script will say the translation in another language of your choice.
As usual, all scripts in this chapter are available ...
Get Make Python Talk now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.