The simple application for logging (and translating) all speech from your microphone and speaker.
I think it would be very useful when you communicate with somebody foreign person by Discord or else app. It can help you to have better understanding your interlocutor if you know his language like I do english)
Scope:
-
Translation messages from any languages supported by Google into certain choosen languages at once
-
Recognition and translation the speech on choosen language from microphone
TODO:
-
recognize all speech from microphone automatically (not only on demand)
-
recognize speech from speakers (it will be hard to do)
-
write program into desktop app
-
add text logging in file
You can download this app as compiled (see releases). Unpack and run .exe file.
- Not correct showing of arabic words (reversed and upper-cased) exists because of bags with windows terminal. But if u will copy this text and paste it into text editor / google / messanger, it would be normal.
What's new:
- recognition speech from speakers too (if u have a speaker supported callbacks)
I cannot compile it now because of problems with soundcard, but u can run it by Python:
-
Download Python from official site (choose correct operation system)
-
Open cmd.exe
-
Install necessary packages via commands:
pip install numpy
pip install scipy
pip install textblob
pip install pyaudio
pip install soundcard==0.3.3
pip install speechrecognition
pip install termcolor
pip install colorama
- download and run this file
- if u have some problems with installing pyaudio, try to get solutions here
What's new:
- json files with basic settings and supported languages
- trancription (grapheme to phoneme) by epitran
TODO firstly:
- transcript persian words better
- also install epitran by command (cmd.exe):
pip install epitran
-
download release
-
unpuck and run .py file
What's new:
- TextBlob API was replaced with better googletrans API
- English is transliterated by pysle, farsi --- by PersianG2p
pip install googletrans
pip install pysle
pip install PersianG2p
Download release, unpuck and run .py file.
Since 2 June 2020 I'm working with this Telegram translator bot.