Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,13 @@ def chatgpt(apikey, audio):
|
|
169 |
|
170 |
synthesizer.save_wav(wavs, "output.wav")
|
171 |
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
174 |
def compute_spec(ref_file):
|
175 |
y, sr = librosa.load(ref_file, sr=ap.sample_rate)
|
|
|
169 |
|
170 |
synthesizer.save_wav(wavs, "output.wav")
|
171 |
|
172 |
+
a1, b1 = read("output.wav")
|
173 |
+
|
174 |
+
audio_out = "audio_out.wav"
|
175 |
+
|
176 |
+
write(audio_out, a1, b1)
|
177 |
+
|
178 |
+
return [result.text, chat_response, audio_out]
|
179 |
|
180 |
def compute_spec(ref_file):
|
181 |
y, sr = librosa.load(ref_file, sr=ap.sample_rate)
|