diff --git a/voice-server/output.wav b/voice-server/output.wav index dec4563..8832d8a 100644 Binary files a/voice-server/output.wav and b/voice-server/output.wav differ diff --git a/youwilldie/app.py b/youwilldie/app.py index a2d9cb1..a0a5c76 100644 --- a/youwilldie/app.py +++ b/youwilldie/app.py @@ -74,8 +74,8 @@ if __name__ == '__main__': "POST", API_URL, files={"file": open(savedFileName, "rb")} ) print(response.json()) - results = response.json().get("results") - command = results[0].transcript + results = response.json()["results"] + command = results[0]["transcript"] process(command) else: if not audioInstance.isRecording():