question

PaoloScomparin-9848 avatar image
0 Votes"
PaoloScomparin-9848 asked ramr-msft answered

Speech Custom Commands: send activity to client with confirm of the result

Hello,

i am exploring a custom command solution for a project, i see it is possible to send a activity (like json) to the client and this works fine. However, I have not found a way to give confirmation by the client of the execution of the activity.
The idea is to conditioning the response depending on the state of the client or some condition (always client side).

I imagine a flow like this:

1) The user invokes the command
2) It is recognized
3) The activity is sent to the client
4) the client gives OK or KO via an activity sent to the session channel
5) The result is reproduced through speech sentence

There is a way to implement this flow ?
(some cases can be resolved to update the context or global params from client , and check this params with conditions, but is not the right way for all situations)

It's maybe more correct for this type of solution to use a bot (DirectSpeechLine) project ?

Thanks,

Paolo

P.s. This approch is present for an invokation of an webendpoint.

117444-image.png


azure-cognitive-servicesazure-speech
image.png (30.3 KiB)
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.

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered

@PaoloScomparin-9848 Thanks for the question. Can you please share the sample that you are trying.
Client applications use the Speech Services SDK to connect to Direct Line Speech channel and their Bot. See “Custom voice-first virtual assistants” for more info and faq for voice assistants.

https://fasstassistant-rhw.azurewebsites.net/Index


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.