I am working on a requirement where I have to embed azure chat bot into React. I need to enable audio input and output functionality and also detection of user language and translation. I have seen Microsoft documentations where this is done from server side ( C# ) using speech and translator services. I am a beginner in react and would like to know if this can be achieved purely from React. Below is the way how I call Directline echo bot from React.
BotChat.App({
bot: bot,
locale: 'en-us',
user: user,
directLine: {
secret: 'XXXXXXXXXXXXXXXXXXXXXX',
webSocket: true,
},
},
document.getElementById('bot')
);
Since I already have an echo bot and speech, translator services created in Azure, I would like to know if these cognitive services be triggered from React Web chat bot.