Implémentation de speech_recognition

This commit is contained in:
Quentin Roussel
2023-05-03 16:01:12 +02:00
parent 0e8c27e200
commit d16f543056
7 changed files with 61 additions and 30 deletions

View File

@@ -40,13 +40,13 @@ class ApiClient():
self.host = host
self.port = port
def send(self,note,note_autre):
def send(self,note,commentaire):
#Exemple ajout d'un commentaire depuis la borne (site ou geste)
avis = {
"note": note,
"source": "borne",
"commentaire":"",
#Optionel
"notes_autre": '{"proprete":'+str(note_autre)+',"calme":10}',
"commentaire":commentaire,
}
print(self.host, self.port)
return requests.post("http://"+self.host+":"+self.port+"/add_review", data=avis)