Description
Library name and version
Azure.Communication.CallAutomation 1.1.0
Query/Question
We are using the Call Automation Api und Sdk and have set up Event for Incoming Call. Event is received. When event is received, we:
-
Instantiate CallAutomationClient:
var client = new CallAutomationClient(''); -
Answer the call:
var options = new AnswerCallOptions(incomingCallContext, callbackUri)
{CallIntelligenceOptions = new CallIntelligenceOptions() { CognitiveServicesEndpoint = new Uri(<**??????**>) } }; AnswerCallResult answerCallResult = await client.AnswerCallAsync(options);
-
Call is answered and we receive the corresponding event.
-
We try to play text to all participants:
var playSource = new TextSource(textToPlay)
{
VoiceName = "en-US-NancyNeural"
};var playOptions = new PlayToAllOptions(playSource);
answerCallResult.CallConnection.GetCallMedia().PlayToAllAsync(playOptions); -
As event after PlayToAllAsync, we receive PlayFailed event with code "8536" Action failed, file could not be downloaded.
We are following the documentation and sample in https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/callautomation-openai-sample-csharp and just replaced the connection strings.
We suppose may be the cognitive services endpoint is not the correct one. Which connection string for Cognitive Services should be used? Or how should we set up the Congnitive Services?
We have tried using following connection strings:
Environment
No response