Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,8 @@ def translate_speech(audio):
|
|
51 |
return
|
52 |
|
53 |
# Define the max_range variable
|
54 |
-
max_range =
|
55 |
-
synthesised_speech = (synthesised_speech_data * max_range).astype(np.
|
56 |
|
57 |
return 16000, synthesised_speech
|
58 |
|
|
|
51 |
return
|
52 |
|
53 |
# Define the max_range variable
|
54 |
+
max_range = 1.0 # You can adjust this value based on your requirements
|
55 |
+
synthesised_speech = (synthesised_speech_data * max_range).astype(np.float32)
|
56 |
|
57 |
return 16000, synthesised_speech
|
58 |
|