Spaces:
Build error
Build error
Commit
·
32fedd3
1
Parent(s):
1476717
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,12 @@ def inference(text,lang):
|
|
38 |
scipy.io.wavfile.write("out.wav", gos_text2speech.fs , wav.view(-1).cpu().numpy())
|
39 |
elif lang == "gronings westerkwartiers":
|
40 |
wav = westerkwartiers_text2speech(text)["wav"]
|
41 |
-
wav
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
elif lang == "gronings oldambster":
|
44 |
wav = oldambster_text2speech(text)["wav"]
|
45 |
scipy.io.wavfile.write("out.wav", oldambster_text2speech.fs , wav.view(-1).cpu().numpy())
|
|
|
38 |
scipy.io.wavfile.write("out.wav", gos_text2speech.fs , wav.view(-1).cpu().numpy())
|
39 |
elif lang == "gronings westerkwartiers":
|
40 |
wav = westerkwartiers_text2speech(text)["wav"]
|
41 |
+
scipy.io.wavfile.write("output.wav", westerkwartiers_text2speech.fs , wav.view(-1).cpu().numpy())
|
42 |
+
data, sr = librosa.load("output.wav")
|
43 |
+
factor = 2.0
|
44 |
+
data *= factor
|
45 |
+
sf.write("out.wav", data, sr)
|
46 |
+
|
47 |
elif lang == "gronings oldambster":
|
48 |
wav = oldambster_text2speech(text)["wav"]
|
49 |
scipy.io.wavfile.write("out.wav", oldambster_text2speech.fs , wav.view(-1).cpu().numpy())
|