Action failed due to a bad request to Cognitive Services. Please check your input parameters

2025-05-26T15:05:36.38+00:00

Hi,

I'm facing issue while connecting to Cognitive service through Azure Communication service (ACS). Can you please guide me? below issue I'm getting when i try to run CallAutomation_OutboundCalling sample provided by Microsoft.

Action failed due to a bad request to Cognitive Services. Please check your input parameters.

Subcode: 8565

I'm using ACS connection string to connect.

Note: "Cognitive Services User" is assigned to the ACS resource.

Azure Session ID: 9f91a0c35514485e8a64017af9401b4f

My Speech Services endpoint
User's image

var cognitiveServiceEndpoint = "https://eastus2.api.cognitive.microsoft.com/";

Once call connected
User's image

Any one please help me on this?

Azure Communication Services

Answer accepted by question author
Laxman Reddy Revuri 5,475 Reputation points Microsoft External Staff Moderator
2025-06-09T07:00:21.1433333+00:00

Hi Venkata Satya Suneel Kumar Sikhakollu,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

Issue:

Action failed due to a bad request to Cognitive Services. Please check your input parameters

Solution:
The problem is not with Azure Speech service integration. We have to create Azure AI Mutli account to link cognitive services to resolve this issue. Once I created Azure AI Multi account and link to ACS Cognitive services its resolved and working now. Thank you.

Below are the links which helps me to create

https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne

Note: This service should create in same region.

Please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

Was this answer helpful?

2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Peyton Smith 0 Reputation points
    2025-07-30T17:01:17.9566667+00:00

    Had similar issue, where the standalone speech service worked as intended but wouldn't when I connected it as a cognitive service through my communication service. After making a new 'Azure AI Service' resource which serves as the multi account one discussed above, I was able to get it resolved.

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2025-05-30T20:43:06.79+00:00

    Hi Venkata Satya Suneel Kumar Sikhakollu,
    please refer below link and verify role has been assigned and follow the screenshots provided in the link
    https://learn.microsoft.com/en-us/azure/communication-services/concepts/call-automation/azure-communication-services-azure-cognitive-services-integration#option-1-add-role-from-azure-cognitive-services-in-the-azure-portal
    if you have any further concerns or queries, please feel free to reach out to us.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.