Azure Percept Ear Direct Method call

Ray Crawford 56 Reputation points
2021-05-06T04:58:31.637+00:00

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.

Azure Percept
Azure Percept
A comprehensive Azure platform with added security for creating edge artificial intelligence solutions.
72 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,191 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Mike McCoy - MSFT 606 Reputation points
    2021-05-07T03:20:27.227+00:00

    Hi @Ray Crawford - I'm looking into this and will respond back with an answer. Thanks!

    1 person found this answer helpful.

  2. 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.