https://github.com/chasmack/translate
Translation and Text-to-Speech for Anki Card Decks
https://github.com/chasmack/translate
anki-text-import google-cloud-texttospeech google-cloud-translate russian-english text-to-speech translate
Last synced: 3 months ago
JSON representation
Translation and Text-to-Speech for Anki Card Decks
- Host: GitHub
- URL: https://github.com/chasmack/translate
- Owner: chasmack
- Created: 2025-02-15T23:15:15.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-22T23:23:14.000Z (3 months ago)
- Last Synced: 2025-02-23T00:27:01.610Z (3 months ago)
- Topics: anki-text-import, google-cloud-texttospeech, google-cloud-translate, russian-english, text-to-speech, translate
- Language: Python
- Homepage:
- Size: 1.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# translate
Translate Russian words and phrases to English with Google Cloud Translate
and Text-to-Speech. The results are used to create Russian-English note data
for Anki flashcards.The input text file consists of Russian words and phrases to be translated.
Each line can have one or more words or phrases separated by commas.
Blank lines and lines starting with hash (#) are ignored.The output file is a semicolon delimited text file compatible with Anki text import.
The Anki note records should have following fields -
* Russian - the Russian word or phrase to be translated from the input textfile
* Romanize - a romanized representation of the Russian generated by Translate
* Audio - an MP3 sound clip of the Russian generated by Text-to-Speech
* English - an English translation of the Russian generated by Translate
* Notes - additional information on translation and usage not populated by this appSound files are saved to the default Anki Media Folder (collection.media) or a
location specified on the command line. A sound filename prefix must be specified
on the command line. A sequential numerical index is added to the sound filename.