Sunday, January 19, 2025

Portable Bilingual Translator with Raspberry Pi Zero

This system is designed as a bilingual translator, leveraging the GTTS library to support multiple Indian languages, including English (en), Bengali (bn), Gujarati (gu), Hindi (hi), Kannada (kn), Malayalam (ml), Marathi (mr), Tamil (ta), Telugu (te), and Urdu (ur).

The two-letter codes in brackets specify the target language for speech conversion.

For example: gTTS(text=translated_text, lang=dest_lang).

- Advertisement -

Speech conversion between languages is straightforward—simply adjust the source and target language codes. For instance, Gujarati speech can be translated into Spanish by updating the relevant codes.

Bill of Materials
ComponentsQuantity
Raspberry Pi Zero board (MOD 1)1
SPI TFT display (MOD 2)1
PAM8403 module (MOD 3)1
Switch (S1, S2)2
Resistors 270Ω (R1, R2)2
Resistors 150Ω (R3, R4)2
10µF electrolytic capacitors, 16V (C1, C2)2
0.1µF ceramic capacitors (C3, C4)2
5V DC, 2A power supply adaptor1
Speaker 5W2
USB microphone11

Additionally, Google Text-To-Speech (gTTS) supports numerous international languages, such as Arabic (ar), Chinese Simplified (zh), Chinese Traditional (zh-tw), Czech (cs), Danish (da), Dutch (nl), English (en), Filipino (fil), Finnish (fi), French (fr), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Indonesian (id), Italian (it), Japanese (ja), Korean (ko), Norwegian (no), Polish (pl), Portuguese Brazil (pt-br), Portuguese Portugal (pt), Russian (ru), Spanish (es), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk), Vietnamese (vi), and others.

- Advertisement -

Also Check: Speech Transcription Using Raspberry Pi Zero

The author’s prototype, featuring a 240×320 display and 5W+5W amplifiers, is shown in Fig. 1.

Bilingual Translator with Raspberry Pi Zero
Fig. 1: Author’s prototype of Bilingual Translator with Raspberry Pi Zero

The testing covered English (en), Gujarati (gu), Bengali (bn), and Hindi (hi) for Indian languages, alongside Russian (ru), Spanish (es), and German (de) for international languages.

So, apart from English, Bengali, Gujarati, and Hindi, the accuracy of the outputs in other languages cannot be verified without additional feedback from expert readers.

Configuration

The device requires a Raspberry Pi Zero installed with the latest Raspbian OS. Python 3 must be installed, along with the required libraries. These can be installed via the Linux terminal using the following commands:

EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.

Oops! This is an EFY++ article, which means it's our Premium Content. You need to be a Registered User of our website to read its complete content.

Good News: You can register to our website for FREE! CLICK HERE to register now.

Already a registered member? If YES, then simply login to you account below. (TIP: Use 'forgot password' feature and reset and save your new password in your browser, if you forgot the last one!)

SHARE YOUR THOUGHTS & COMMENTS

Most Popular DIY Projects

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics