This technique is designed as a bilingual translator, leveraging the GTTS library to assist a number of Indian languages, together with English (en), Bengali (bn), Gujarati (gu), Hindi (hello), Kannada (kn), Malayalam (ml), Marathi (mr), Tamil (ta), Telugu (te), and Urdu (ur).
The 2-letter codes in brackets specify the goal language for speech conversion.
For instance: gTTS(textual content=translated_text, lang=dest_lang).
Speech conversion between languages is simple—merely modify the supply and goal language codes. As an example, Gujarati speech may be translated into Spanish by updating the related codes.
Invoice of Supplies | |
Elements | Amount |
Raspberry Pi Zero board (MOD 1) | 1 |
SPI TFT show (MOD 2) | 1 |
PAM8403 module (MOD 3) | 1 |
Swap (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 energy provide adaptor | 1 |
Speaker 5W | 2 |
USB microphone1 | 1 |
Moreover, Google Textual content-To-Speech (gTTS) helps quite a few worldwide languages, resembling Arabic (ar), Chinese language Simplified (zh), Chinese language Conventional (zh-tw), Czech (cs), Danish (da), Dutch (nl), English (en), Filipino (fil), Finnish (fi), French (fr), German (de), Greek (el), Hebrew (he), Hindi (hello), 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.
Additionally Verify: Speech Transcription Utilizing Raspberry Pi Zero
The writer’s prototype, that includes a 240×320 show and 5W+5W amplifiers, is proven in Fig. 1.
The testing lined English (en), Gujarati (gu), Bengali (bn), and Hindi (hello) for Indian languages, alongside Russian (ru), Spanish (es), and German (de) for worldwide languages.
So, other than English, Bengali, Gujarati, and Hindi, the accuracy of the outputs in different languages can’t be verified with out extra suggestions from skilled readers.
Configuration
The system requires a Raspberry Pi Zero put in with the newest Raspbian OS. Python 3 have to be put in, together with the required libraries. These may be put in through the Linux terminal utilizing the next instructions:
Please register to view this text or log in beneath. Tip: Please subscribe to EFY Prime to learn the Prime articles.