jeremyandrews / kakaia

Kakaia personal assistant
MIT License
13 stars 0 forks source link

Set command to "none" on error #28

Closed xvxx closed 4 years ago

xvxx commented 4 years ago

Was playing with Kakaia today and noticed this:

$ curl --data @yes.base64 http://127.0.0.1:8088/convert/audio/text
{"command":"simpleCalculation","human":"not understood","raw":"audio file must have exactly 1 track, not 2","result":0.0}

I assume the command should be "none" as it is in other places in the source, and this was just a copy/paste typo. Now it looks like:

$ curl --data @yes2.base64 http://127.0.0.1:8088/convert/audio/text
{"command":"none","human":"not understood","raw":"audio file must have exactly 1 track, not 2","result":0.0}
jeremyandrews commented 4 years ago

You are correct -- thanks very much for testing it out and fixing this!