Azure-Samples / communication-services-dotnet-quickstarts

Sample code for Azure Communication Services .Net quickstarts
MIT License
79 stars 110 forks source link

Sample "callautomation-openai-sample-csharp" does not play audio #171

Open iliev-ilian opened 2 months ago

iliev-ilian commented 2 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Clone the repo, open sample callautomation-openai-sample-csharp, fill the values in appsettings.json and follow exactly the steps as described. All reosurce are created successfully. EventGrid incoming call event is received. Call is connected. But then when audio should be played to the user a PlayFailed event is received with status code: 8536 and message "Action failed, file could not be downloaded". To test the phone calling we have 2 phone numbers in azure and from one number we call the other.

App Settings Variables look like following: "AcsConnectionString": "endpoint=https://{ name }>.europe.communication.azure.com/;accesskey={ accesskey }" - copied from azure.portal "CognitiveServiceEndpoint": "https://{ name }>.cognitiveservices.azure.com/",

Any log messages given by the failure

staus code 8536 and message "Action failed, file could not be downloaded"

Expected/desired behavior

The audio text should be played and shouldn't receive PlayFailed event.

OS and Version?

Windows 10

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.