Hi @Ray Crawford - I'm looking into this and will respond back with an answer. Thanks!
Azure Percept Ear Direct Method call
I'm playing with the Percept DK... I'm trying to send a direct method call to a module, but I can't figure out what the available methods are... Is there a way to see this in the portal or query the module directly for it's methods?
Thanks... here's the method so far:
curl -X POST \
https://REMOVED.azure-devices.net/twins/percept001/modules/azureearspeechclientmodule/methods?api-version=2020-05-31-preview \
-H 'Authorization: SharedAccessSignature REMOVED' \
-H 'Content-Type: application/json' \
-d '{
"methodName": "listMethods",
"responseTimeoutInSeconds": 200,
"payload": {}
}'
I've gotten the following to respond with a 200 and show up in the logs... but it doesn't return anything useful:
curl -X POST \
https://<REMOVED>.azure-devices.net/twins/percept001/modules/azureearspeechclientmodule/methods?api-version=2020-05-31-preview \
-H 'Authorization: SharedAccessSignature sr=<REMOVED>.azure-devices.net&sig=<REMOVED>&skn=iothubowner' \
-H 'Content-Type: application/json' \
-d '{"methodName": "GetModuleState", "responseTimeoutInSeconds": 200, "payload": {} }'
Response: {"status":200,"payload":"SpeechStarted"}
Where/how can I find a list of azureearspeechclientmodule methods so that I can send it a message to speak or listen from the cloud? Should I be using Direct Method calls or some other technique?
Thanks!
Useful az-cli commands (just captured here so I remember...):
az account set --subscription
az iot hub generate-sas-token -n
Then the curl command with the token, shown above.
2 answers
Sort by: Most helpful
-
-
TimU 1 Reputation point
2021-05-17T20:27:00.823+00:00 plus 1 (me too, Mike)
google returns a dead link to the private preview files.I am especially interested in text-to-speech on the edge (no internet). An example/tutorial would be much appreciated.