TenzinGayche
commited on
Commit
·
19ca4e3
1
Parent(s):
e3092d1
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -89,6 +89,6 @@ class EndpointHandler():
|
|
89 |
speech = nr.reduce_noise(y=speech.to('cpu'), sr=16000)
|
90 |
return {
|
91 |
"sample_rate": 16000,
|
92 |
-
"audio": base64.b64encode(speech.
|
93 |
|
94 |
}
|
|
|
89 |
speech = nr.reduce_noise(y=speech.to('cpu'), sr=16000)
|
90 |
return {
|
91 |
"sample_rate": 16000,
|
92 |
+
"audio": base64.b64encode(speech.tostring()).decode("utf-8"),
|
93 |
|
94 |
}
|