An open API service indexing awesome lists of open source software.

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

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 app

Sound 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.