fix errors in lesson05 and lesson06

This commit is contained in:
Daniel Tsvetkov 2019-04-15 10:23:36 +02:00
parent 39e6716b90
commit 41381e027c
7 changed files with 37 additions and 11 deletions

4
INSTALL.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

19
README.md Normal file
View File

@ -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
```

4
RUN.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
source venv/bin/activate
export GOOGLE_APPLICATION_CREDENTIALS="pi2-tts-svc-acc.json"
python generate.py

View File

@ -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)

View File

@ -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

View File

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

1 1 de was
968 506 en Let's go out?
969 507 de Gehen wir ins Konzert?
970 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
971 509 de 75
972 509 en 75
973 510 de das Prozent
1102 582 de Jan ist mein Bruder
1103 582 en Jan is my brother
1104 584 de Wer ist Nicole?
584 en Nicole ist meine Mutter
1105 586 de Was glaubst du?
1106 587 de Ich glaube Sascha ist dein Vater
587 en I think Sascha ist your father
1107 588 de vorstellen
1108 588 en to introduce
1109 589 de Julia und Jan stellen ihre Familien vor.
1194 638 en I speak German
1195 639 de Ich bin Deutcher
1196 639 en I am German
1197 584 en Who is Nicole?
1198 587 en I think Sascha is your father
1199 508 de In der Schweiz liest man sehr gern und oft.
1200 508 en In Switzerland one reads very much and often.

View File

@ -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,
639,Ich bin Deutcher,I am German,phrase,lesson06,

Can't render this file because it has a wrong number of fields in line 508.