Commit
•
81df6e3
1
Parent(s):
8acd1b8
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -49,6 +49,6 @@ class EndpointHandler:
|
|
49 |
wf.setframerate(sampling_rate)
|
50 |
wf.writeframes(array.array('h', audio_samples).tobytes())
|
51 |
|
52 |
-
audio_base64 = base64.b64encode(audio_io.
|
53 |
|
54 |
return [{'sampling_rate': sampling_rate, 'audio': audio_base64}]
|
|
|
49 |
wf.setframerate(sampling_rate)
|
50 |
wf.writeframes(array.array('h', audio_samples).tobytes())
|
51 |
|
52 |
+
audio_base64 = base64.b64encode(audio_io.getvalue()).decode('utf-8')
|
53 |
|
54 |
return [{'sampling_rate': sampling_rate, 'audio': audio_base64}]
|