Skip to main content

Speech translation assistant

Project description

The code uses speech recognition to capture user input through a microphone. It then recognizes the speech using Google's Speech-to-Text API. The user is prompted to specify a language, and their subsequent speech is translated into multiple languages. The translations are displayed in the console. The speech translation assistant allows users to communicate in different languages by converting their spoken input into written text and providing translations in various supported languages.

https://github.com/Tejass0/SwarAnuvad

Make sure you have upgraded version of pip

Windows

py -m pip install --upgrade pip

Linux/MAC OS

python3 -m pip install --upgrade pip

Requirements

Python 3.9+

Installation

Install using pip...

pip install SwarAnuvad
pip3 install SwarAnuvad

Example

from SwarAnuvad import SwarAnuvad

s = SwarAnuvad()
pop = s.lantrans()
print(pop, "++++")

Output

['GREEK: Πώς είσαι', 'ESPERANTO: kiel vi fartas', 'ENGLISH: how are you', 'AFRIKAANS: Hoe gaan dit', 'SWAHILI: habari yako', 'CATALAN: Com estàs', 'ITALIAN: Come stai', 'HEBREW: מה שלומך', 'SWEDISH: Hur mår du', 'CZECH: jak se máte', 'WELSH: Sut wyt ti', 'ARABIC: كيف حالك', 'URDU: آپ کیسے ہو', 'IRISH: Conas tá tú', 'BASQUE: zelan zaude', 'ESTONIAN: kuidas sul läheb', 'AZERBAIJANI: necəsən', 'INDONESIAN: Apa kabarmu', 'SPANISH: Cómo estás', 'RUSSIAN: Как вы', 'GALICIAN: como estás', 'DUTCH: Hoe is het', 'PORTUGUESE: como vai', 'LATIN: quid agis', 'TURKISH: Nasılsın', 'FILIPINO: Kamusta ka', 'LATVIAN: kā tev iet', 'LITHUANIAN: kaip laikaisi', 'THAI: คุณเป็นอย่างไร', 'VIETNAMESE: Bạn khỏe không', 'ROMANIAN: ce mai faci', 'ICELANDIC: hvernig hefurðu það', 'POLISH: Jak się masz', 'TAMIL: எப்படி இருக்கிறீர்கள்', 'YIDDISH: וואס מאכסטו', 'BELARUSIAN: як ты', 'FRENCH: comment allez-vous', 'BULGARIAN: Как си', 'UKRAINIAN: як справи', 'CROATIAN: kako si', 'BENGALI: আপনি কেমন আছেন', 'SLOVENIAN: Kako si', 'HAITIAN CREOLE: koman ou ye', 'DANISH: Hvordan har du det', 'PERSIAN: چطور هستید', 'HINDI: आप कैसे हैं', 'FINNISH: mitä kuuluu', 'HUNGARIAN: hogy vagy', 'JAPANESE: 元気ですか', 'GEORGIAN: როგორ ხარ', 'TELUGU: మీరు ఎలా ఉన్నారు', 'CHINESE TRADITIONAL: 你好嗎', 'ALBANIAN: si jeni', 'NORWEGIAN: hvordan har du det', 'KOREAN: 어떻게 지내세요', 'KANNADA: ನೀವು ಹೇಗಿದ್ದೀರಿ', 'MACEDONIAN: како си', 'CHINESE SIMPLIFIED: 你好吗', 'SLOVAK: ako sa máš', 'MALTESE: kif int', 'MARATHI: तू कसा आहेस', 'GERMAN: Wie geht es dir', 'MALAY: apa khabar', 'SERBIAN: како си'] ++++

Please wait at-least 20 seconds to see the output.

Currently, this package is on upgrade.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SwarAnuvad-0.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SwarAnuvad-0.0.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file SwarAnuvad-0.0.0.tar.gz.

File metadata

  • Download URL: SwarAnuvad-0.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for SwarAnuvad-0.0.0.tar.gz
Algorithm Hash digest
SHA256 49c1c9b12414253bdad246ac7415de5f7d0bd5f19c75e376a2d200aa70f7fe94
MD5 ec0172d328bab1c06b041d39de1657e0
BLAKE2b-256 0fe8a6ee9b07844568604d4f2410714a5c69d80ebff5f21a6ad4ce8bd858e1b1

See more details on using hashes here.

File details

Details for the file SwarAnuvad-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: SwarAnuvad-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for SwarAnuvad-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 127500d899f2fb5186478fe594ad972d7c12cda95a0235b7fc63ae085e218538
MD5 1bfb72f1b333df2c92dc6e55f8edc274
BLAKE2b-256 adb078946905ef1750e71d3a9328b475de44bc72b9d02f4e973a80c1746b1633

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page