Sending audio to Direct Line Speech from ASP.NET application?

Muhammad Faizan Badar 21 Reputation points

We're building out a custom integration for a Telefony provider to integrate with Azure Cognitive Services bot via the Direct Line channel.

The REST relay endpoint, which will basically be the client for the bot, is able to receive the audio as a in-memory variable (encoded in base64).

How can this audio be transmitted to the bot into the Direct Line Speech channel and fetch a response with the response from the Bot in audio?

The catch is that, the relay has to be maintained in REST: querying bot and sending response back. We've concluded that the websocket connection will not persist throughout the interaction.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
769 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,520 questions
{count} votes

Accepted answer
  1. GiftA-MSFT 11,161 Reputation points

    Hi, quick follow-up. Your scenario may not be fully supported as our systems are currently architected. DirectLine Speech doesn't have provisions for non-streamed audio. However, if you're looking for telephony, consider using our existing public preview telephony channel (which uses ACS & Speech Services already). Hope this helps.

    0 comments No comments

0 additional answers

Sort by: Most helpful