0% found this document useful (0 votes)
21 views12 pages

Language Translator in Python

Uploaded by

f23mmg06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views12 pages

Language Translator in Python

Uploaded by

f23mmg06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

LANGUAGE TRANSLATOR

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Agenda

• gTTS Library
• Tkinter Library
• googleTrans Library
• Demo of Language Translator

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
gTTS Library

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
gTTS Library

• gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-
to-speech API.
• Features –
• Customizable speech-specific sentence tokenizer that allows for unlimited lengths of text to be
read, all while keeping proper intonation, abbreviations, decimals and more;
• Customizable text pre-processors which can, for example, provide pronunciation corrections;

Installation : pip install gTTS

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Tkinter Library

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Tkinter Library

• The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit and it
supports a range of Tcl/Tk versions, built either with or without thread support.
• Running python -m tkinter from the command line should open a window demonstrating
a simple Tk interface.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
googleTrans Library

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
googleTrans Library
• googleTrans is a free and unlimited python library that implemented Google Translate API.
• This uses the Google Translate Ajax API to make calls to such methods as detect and translate and is
compatible with Python 3.6+.
• Features
a. This library is fast and reliable as it uses the same servers that translate.google.com uses.
b. It has feature of auto language detection.
c. This library is for bulk translations.
d. This library has customizable service URL.
e. It has HTTP/2 support.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Demo

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Summary

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Summary

Let’s take a recap of all the topics discussed so far.

DO NOT WRITE ANYTHING


HERE. LEAVE THIS SPACE FOR
WEBCAM
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Thank You

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited

Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited

You might also like