fixing access of results

This commit is contained in:
talksik
2023-04-29 11:32:33 -07:00
parent 99b2de2e21
commit 5fffe2abee
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -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():