randusertry commited on
Commit
fce4d4a
·
verified ·
1 Parent(s): 476f263

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -103
Dockerfile CHANGED
@@ -20,109 +20,11 @@ RUN mkdir -p models
20
  # Using a helper script style to keep the Dockerfile clean
21
  # Format: URL_TO_ONNX URL_TO_JSON
22
 
23
- # English (UK) - Alan (Male) & Semaine (Female)
24
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/alan/medium/en_GB-alan-medium.onnx && \
25
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/alan/medium/en_GB-alan-medium.onnx.json && \
26
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/semaine/medium/en_GB-semaine-medium.onnx && \
27
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/semaine/medium/en_GB-semaine-medium.onnx.json
28
-
29
- # Spanish (Spain) - Sharvard (Male) & Carlota (Female)
30
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/es/es_ES/sharvard/medium/es_ES-sharvard-medium.onnx && \
31
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/es/es_ES/sharvard/medium/es_ES-sharvard-medium.onnx.json && \
32
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/es/es_ES/carlota/low/es_ES-carlota-low.onnx && \
33
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/es/es_ES/carlota/low/es_ES-carlota-low.onnx.json
34
-
35
- # French - UPMC (Male) & Siwis (Female)
36
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fr/fr_FR/upmc/medium/fr_FR-upmc-medium.onnx && \
37
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fr/fr_FR/upmc/medium/fr_FR-upmc-medium.onnx.json && \
38
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fr/fr_FR/siwis/low/fr_FR-siwis-low.onnx && \
39
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fr/fr_FR/siwis/low/fr_FR-siwis-low.onnx.json
40
-
41
- # German - Thorsten (Male) & Kerstin (Female)
42
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/de/de_DE/thorsten/medium/de_DE-thorsten-medium.onnx && \
43
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/de/de_DE/thorsten/medium/de_DE-thorsten-medium.onnx.json && \
44
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/de/de_DE/kerstin/low/de_DE-kerstin-low.onnx && \
45
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/de/de_DE/kerstin/low/de_DE-kerstin-low.onnx.json
46
-
47
- # Italian - Riccardo (Male) & Paola (Female)
48
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/it/it_IT/riccardo/x_low/it_IT-riccardo-x_low.onnx && \
49
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/it/it_IT/riccardo/x_low/it_IT-riccardo-x_low.onnx.json && \
50
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/it/it_IT/paola/medium/it_IT-paola-medium.onnx && \
51
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/it/it_IT/paola/medium/it_IT-paola-medium.onnx.json
52
-
53
- # Polish - Dark_ness (Male) & Gosia (Female)
54
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/pl/pl_PL/dark_ness/medium/pl_PL-dark_ness-medium.onnx && \
55
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/pl/pl_PL/dark_ness/medium/pl_PL-dark_ness-medium.onnx.json && \
56
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/pl/pl_PL/gosia/medium/pl_PL-gosia-medium.onnx && \
57
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/pl/pl_PL/gosia/medium/pl_PL-gosia-medium.onnx.json
58
-
59
- # Ukrainian - Ukrainian_tts (Male) & Lada (Female)
60
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/uk/uk_UA/ukrainian_tts/medium/uk_UA-ukrainian_tts-medium.onnx && \
61
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/uk/uk_UA/ukrainian_tts/medium/uk_UA-ukrainian_tts-medium.onnx.json && \
62
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/uk/uk_UA/lada/medium/uk_UA-lada-medium.onnx && \
63
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/uk/uk_UA/lada/medium/uk_UA-lada-medium.onnx.json
64
-
65
- # Dutch - Ronnie (Male) & MLS (Female)
66
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/nl/nl_NL/ronnie/medium/nl_NL-ronnie-medium.onnx && \
67
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/nl/nl_NL/ronnie/medium/nl_NL-ronnie-medium.onnx.json && \
68
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/nl/nl_NL/mls/medium/nl_NL-mls-medium.onnx && \
69
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/nl/nl_NL/mls/medium/nl_NL-mls-medium.onnx.json
70
-
71
- # Bulgarian - Dimitar (M)
72
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/bg/bg_BG/dimitar/medium/bg_BG-dimitar-medium.onnx && \
73
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/bg/bg_BG/dimitar/medium/bg_BG-dimitar-medium.onnx.json
74
-
75
- # Catalan - Ona (F)
76
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/ca/ca_ES/upc_ona/medium/ca_ES-upc_ona-medium.onnx && \
77
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/ca/ca_ES/upc_ona/medium/ca_ES-upc_ona-medium.onnx.json
78
-
79
- # Czech - Jirka (M)
80
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/cs/cs_CZ/jirka/medium/cs_CZ-jirka-medium.onnx && \
81
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/cs/cs_CZ/jirka/medium/cs_CZ-jirka-medium.onnx.json
82
-
83
- # Danish - Talesyntese (M)
84
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/da/da_DK/talesyntese/medium/da_DK-talesyntese-medium.onnx && \
85
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/da/da_DK/talesyntese/medium/da_DK-talesyntese-medium.onnx.json
86
-
87
- # Finnish - Harri (M)
88
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fi/fi_FI/harri/medium/fi_FI-harri-medium.onnx && \
89
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/fi/fi_FI/harri/medium/fi_FI-harri-medium.onnx.json
90
-
91
- # Greek - Rapotakis (M)
92
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/el/el_GR/rapotakis/low/el_GR-rapotakis-low.onnx && \
93
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/el/el_GR/rapotakis/low/el_GR-rapotakis-low.onnx.json
94
-
95
- # Hungarian - MLS (F)
96
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/hu/hu_HU/mls/medium/hu_HU-mls-medium.onnx && \
97
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/hu/hu_HU/mls/medium/hu_HU-mls-medium.onnx.json
98
-
99
- # Icelandic - Ugla (F)
100
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/is/is_IS/ugla/medium/is_IS-ugla-medium.onnx && \
101
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/is/is_IS/ugla/medium/is_IS-ugla-medium.onnx.json
102
-
103
- # Latvian - Sanda (F)
104
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/lv/lv_LV/sanda/medium/lv_LV-sanda-medium.onnx && \
105
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/lv/lv_LV/sanda/medium/lv_LV-sanda-medium.onnx.json
106
-
107
- # Romanian - MLS (M)
108
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/ro/ro_RO/mls/medium/ro_RO-mls-medium.onnx && \
109
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/ro/ro_RO/mls/medium/ro_RO-mls-medium.onnx.json
110
-
111
- # Slovak - SK_TTS (M)
112
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sk/sk_SK/lili/medium/sk_SK-lili-medium.onnx && \
113
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sk/sk_SK/lili/medium/sk_SK-lili-medium.onnx.json
114
-
115
- # Slovenian - Artificer (M)
116
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sl/sl_SI/artificer/medium/sl_SI-artificer-medium.onnx && \
117
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sl/sl_SI/artificer/medium/sl_SI-artificer-medium.onnx.json
118
-
119
- # Swedish - Sprakbanken (F)
120
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sv/sv_SE/extf0/medium/sv_SE-extf0-medium.onnx && \
121
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/sv/sv_SE/extf0/medium/sv_SE-extf0-medium.onnx.json
122
-
123
- # Welsh - Bu-TTS (Multi-speaker)
124
- RUN wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/cy/cy_GB/bu-tts/medium/cy_GB-bu-tts-medium.onnx && \
125
- wget -P models/ https://huggingface.co/rhasspy/piper-voices/resolve/main/cy/cy_GB/bu-tts/medium/cy_GB-bu-tts-medium.onnx.json
126
 
127
 
128
  COPY --chown=user . .
 
20
  # Using a helper script style to keep the Dockerfile clean
21
  # Format: URL_TO_ONNX URL_TO_JSON
22
 
23
+ RUN mkdir -p models && \
24
+ for voice in $(cat voices.txt); do \
25
+ wget -q https://huggingface.co/rhasspy/piper-voices/resolve/main/$voice -P models/; \
26
+ done && \
27
+ chown -R user:user models
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
 
30
  COPY --chown=user . .