Create a mp3 file include English words and translated Traditional Chinese and its example sentenses.
Project description
""IMPORTANT"" Browser driver is essential to work, please go to pypi.org/project/selenium/ find suitable driver under "Drivers" and put in the same directory you execute this program or in your $PATH Default browser is Chrome, to change, please add -d firefox/edge/safari after command, or --driver
Input can be any type of text file, as long as it can be read. gtranstomp3 is a tool that can translate English word or sentence into Traditional Chinese and get the example sentences if existed. Then combine the text by the order of 3 English word, 1 Chinese word and all example sentences. After combination, the result will be pronounced by 'Miss Google' and store into mp3 file.
All the input files must be store in 'input' directory where is the same directory you execute the file. To use this function, add -i or --input
Batch of copy and paste is available, for example, you can copy the following words or phrases:
old new milk apple umbrella momentum Newton make up look into
But the word should be in the next line, otherwise it would be seen as a sentence.
To finish entering, just press enter for none input to start translating and formatting. The mp3 file will be store in the 'output' directorry, where is the same directory you execute the file.
HOW TO USE python main.py -option -i --input use file as input word -d --driver change browser
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gtranstomp3-0.1.1.tar.gz
.
File metadata
- Download URL: gtranstomp3-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e19114814eb29e836b0fb3b8ce57c2d91a654f2238343bd2774d3901911d910 |
|
MD5 | da1a8682b1e7ffda1bd72b722fc04374 |
|
BLAKE2b-256 | 74ea78630fb02108f91831404ea2b71978bf004570b348752840ea41a6ab708e |
File details
Details for the file gtranstomp3-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gtranstomp3-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 148917c7ad7b529ce9967b9e883f7ca2f96028391cc1bd382a3762f0a0e2d2ec |
|
MD5 | cd1e625b86976696e89e50ba9dfad5b3 |
|
BLAKE2b-256 | 1dcdac36a0d3ac85450bd8f1f62b663175117839b6c602915b1667d5f6ccdbc7 |