Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,8 @@ def speech_to_speech_translation(audio):
|
|
33 |
target_dtype = np.int16
|
34 |
max_range = np.iinfo(target_dtype).max
|
35 |
sr, audio = synthesise(translated_text)
|
36 |
-
audio = (audio *
|
|
|
37 |
return sr, audio
|
38 |
|
39 |
|
|
|
33 |
target_dtype = np.int16
|
34 |
max_range = np.iinfo(target_dtype).max
|
35 |
sr, audio = synthesise(translated_text)
|
36 |
+
audio = (audio * 32767).astype(np.int16)
|
37 |
+
print(audio)
|
38 |
return sr, audio
|
39 |
|
40 |
|