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

Paolo Scomparin 51 Reputation points
2021-07-23T11:23:58.737+00:00

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 AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,601 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,826 Reputation points
    2021-07-26T06:29:58.677+00:00

    @Paolo Scomparin 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

    0 comments No comments

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.