Quickly translate the selected words.
- Translate the selected text using translate-shell
- Speak the selected text using google-speech
This tool uses translate-shell to translate text. So you must install trans first.
sudo apt install translate-shell
Run
go install github.com/thuan1412/quick-dict@latest
to install the executable file.
Or build from source code.
In order to listen to the speak of the text, install google-speech and its dependencies
pip install google-speech
sudo apt-get install sox
sudo apt-get install libsox-fmt-mp3
And create a shortcut to run the command.
Then, you can use the shortcut to open the popup window to translate the selected text to Vietnamese.
After install successfully, you can use the shortcut the translate the selected text