ACS Call Automation Misses Final Speech When Call Ends Immediately

Kino Matuguina 20 Reputation points
2025-05-06T03:28:13.8633333+00:00

We are using Azure Communication Services (ACS) Call Automation to make outbound calls to our contact center provider (Talkdesk). Our ACS bot does not play any prompts or speak. It only listens and sends DTMF tones in response to Talkdesk's IVR.

We are encountering an issue in the final step of our test flow. When we attempt to recognize speech, and Talkdesk ends the call immediately after responding, we receive the following error:

ERROR - An error occurred: (8522) Call not found.
Code: 8522
Message: Call not found.

It seems that if Talkdesk ends the call right after providing a spoken response, the recognize action fails, and we do not receive any transcription of what was said.

Our questions:

  1. Is there a way for ACS to still return the recognized speech if the callee ends the call shortly after speaking, assuming the audio was already received?

We are using this setup for automated IVR testing and need to confirm each step in the call flow. Any guidance or best practices would be appreciated.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,239 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bhargavi Naragani 6,050 Reputation points Microsoft External Staff Moderator
    2025-05-06T06:28:38.64+00:00

    Hi @Kino Matuguina,

    It seems like you're using Azure Communication Services (ACS) Call Automation to interact with Talkdesk’s IVR system. Your ACS bot listens for speech and sends DTMF tones in response. Everything works until the final step: Talkdesk provides a voice response and then immediately ends the call.

    The error typically means the ACS platform has lost track of the call because it was terminated before the speech recognition process could complete. Since ACS needs the call to remain active while it processes audio data, the instant disconnection causes it to drop the speech recognition task and return that error.

    To ensure you capture the final speech from Talkdesk before the call ends, we recommend the following approach:

    Make sure you're listening for the RecognizeCompleted event and handling it as soon as it's raised. This helps in processing the recognition before the call gets disconnected. If the call ends before this event is fired, you won’t get any result.

    If you have control over Talkdesk’s IVR or can work with their team, request a short delay (e.g., 1–2 seconds) after speaking the final phrase before the call is dropped. This gives ACS enough time to capture and process the final audio input.

    If you’re open to another strategy, you can enable call recording and post-process the final recording to analyze speech. This is especially useful for IVR testing when exact timing is unpredictable.

    Gather user input
    Handle events with Event Processor
    Call Recording overview

    I hope you find this information useful. Let me know if you have any further questions.


0 additional answers

Sort by: Most helpful

Your answer

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