diff --git a/INSTALL.sh b/INSTALL.sh new file mode 100755 index 0000000..69a66f8 --- /dev/null +++ b/INSTALL.sh @@ -0,0 +1,4 @@ +#!/bin/bash +virtualenv -p python3 venv +source venv/bin/activate +pip install -r requirements.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d7377e --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# en_de + +Generate audio from a dictionary. + +## install + +``` +./INSTALL.sh +``` + +# run + +You first need a service account secret from [Google Cloud Text-To-Speech API](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries#client-libraries-install-python) (go through the steps of `Before you begin` section, the rest is handled by the app). + +Modify what you need from the `generate.py` file: + +``` +./RUN.sh +``` diff --git a/RUN.sh b/RUN.sh new file mode 100755 index 0000000..9cde251 --- /dev/null +++ b/RUN.sh @@ -0,0 +1,4 @@ +#!/bin/bash +source venv/bin/activate +export GOOGLE_APPLICATION_CREDENTIALS="pi2-tts-svc-acc.json" +python generate.py diff --git a/generate.py b/generate.py index 56770a9..2a44525 100644 --- a/generate.py +++ b/generate.py @@ -115,5 +115,5 @@ def concatenate(filename="lesson1", wordids=None): if __name__ == "__main__": load_sound_cache() - wordids = filter_words("lesson06") - concatenate(filename="lesson06_half", wordids=wordids) + wordids = filter_words("lesson05") + concatenate(filename="lesson05", wordids=wordids) diff --git a/requirements.txt b/requirements.txt index dba4c57..b885777 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,6 @@ google-cloud-texttospeech==0.4.0 googleapis-common-protos==1.5.8 grpcio==1.19.0 idna==2.8 -pkg-resources==0.0.0 protobuf==3.7.1 pyasn1==0.4.5 pyasn1-modules==0.2.4 diff --git a/sound_cache.csv b/sound_cache.csv index 8e9ec48..bd07a88 100644 --- a/sound_cache.csv +++ b/sound_cache.csv @@ -968,8 +968,6 @@ 506,en,Let's go out? 507,de,Gehen wir ins Konzert? 507,en,Are we going to the concert? -508,de,In der Schweiz liest man sehr gern und oft..In Switzerland one reads very much and often. -508,en,phrase 509,de,75 509,en,75 510,de,das Prozent @@ -1104,10 +1102,8 @@ 582,de,Jan ist mein Bruder 582,en,Jan is my brother 584,de,Wer ist Nicole? -584,en,Nicole ist meine Mutter 586,de,Was glaubst du? 587,de,Ich glaube Sascha ist dein Vater -587,en,I think Sascha ist your father 588,de,vorstellen 588,en,to introduce 589,de,Julia und Jan stellen ihre Familien vor. @@ -1198,3 +1194,7 @@ 638,en,I speak German 639,de,Ich bin Deutcher 639,en,I am German +584,en,Who is Nicole? +587,en,I think Sascha is your father +508,de,In der Schweiz liest man sehr gern und oft. +508,en,In Switzerland one reads very much and often. diff --git a/words.csv b/words.csv index 54e8eb6..476f506 100644 --- a/words.csv +++ b/words.csv @@ -505,7 +505,7 @@ 505,Am Freitag habe ich leider auch keine Zeit,Unfortunately I have no time on Friday,phrase,lesson05, 506,Gehen wir aus?,Let's go out?,phrase,lesson05, 507,Gehen wir ins Konzert?,Are we going to the concert?,phrase,lesson05, -508,In der Schweiz liest man sehr gern und oft..In Switzerland one reads very much and often.,phrase,lesson05,, +508,In der Schweiz liest man sehr gern und oft.,In Switzerland one reads very much and often.,phrase,lesson05,, 509,75,75,number,lesson05, 510,das Prozent,percent,noun,lesson05, 511,lesen,to read,verb,lesson05, @@ -581,10 +581,10 @@ 581,der Grossvater,grandfather,noun,lesson06, 582,Jan ist mein Bruder,Jan is my brother,phrase,lesson06, 583,wer,who,,lesson06, -584,Wer ist Nicole?,Nicole ist meine Mutter,phrase,lesson06, +584,Wer ist Nicole?,Who is Nicole?,phrase,lesson06, 585,glauben,to think,verb,lesson06, 586,Was glaubst du?,What do you think?,phrase,lesson06, -587,Ich glaube Sascha ist dein Vater,I think Sascha ist your father,phrase,lesson06, +587,Ich glaube Sascha ist dein Vater,I think Sascha is your father,phrase,lesson06, 588,vorstellen,to introduce,verb,lesson06, 589,Julia und Jan stellen ihre Familien vor.,Julia and Jan introduce their families.,phrase,lesson06, 590,weiter,further,,lesson06, @@ -636,4 +636,4 @@ 636,die Deutsche,female German,noun,lesson06, 637,die Sprache,language,noun,lesson06, 638,Ich spreche Deutch.,I speak German,phrase,lesson06, -639,Ich bin Deutcher,I am German,phrase,lesson06, \ No newline at end of file +639,Ich bin Deutcher,I am German,phrase,lesson06,