question

raycrawford avatar image
1 Vote"
raycrawford asked TimU commented

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.







azure-iot-hubazure-percept
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mimcco avatar image
1 Vote"
mimcco answered TimU commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@mimcco Any news on a source of Percept properties and methods?

0 Votes 0 ·
TimU avatar image
0 Votes"
TimU answered TimU edited

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@TimU

Here is the version of that article on Microsoft Docs: https://docs.microsoft.com/en-us/azure/azure-percept/how-to-configure-voice-assistant

I've captured your request for a TTS tutorial and we are looking at creating one. Thanks!

0 Votes 0 ·

Oh, that is not very exiting - seen it before.
though I do appreciate the eventual TTS tutorial.

But, back to raycrawford's original question.... Any luck with a list of TTS properties and methods? (or the source code?)


0 Votes 0 ·