Good day guys, I have a bot built on the azure bot framework and have enabled the direct line speech channel. I have a xamarin forms client that communicates with the bot and is able to receive text responses from the bot. I am unable to play the raw audio responses from the bot. Does anyone have experience doing this? I'd really appreciate the help. Thanks!
Code sample below
private void Connector_ActivityReceived
(object sender, ActivityReceivedEventArgs e)
{
try
{
var json = e.Activity;
var activity = JsonConvert.DeserializeObject<Activity>(json);
if (e.HasAudio && activity.Speak != null)
{
var audio = e.Audio; // How do I play the contents of e.Audio in xamarin forms?
}