TenzinGayche commited on
Commit
19ca4e3
1 Parent(s): e3092d1

Update handler.py

Browse files
Files changed (1) hide show
  1. 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.numpy()).decode("utf-8"),
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
  }