Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.57k stars 4.82k forks source link

[BUG] ACS Call Automation + Speech Recognition Error 401 Subcode 8565 #38573

Closed romeroej-inch closed 1 year ago

romeroej-inch commented 1 year ago

Library name and version

Azure.Communication.CallAutomation 1.1.0-beta.1

Describe the bug

When using start_recognizing_media on a CallConnection, the server replies with the following error:

Action failed, cognitive services authentication error." 401 - Subcode 8565

or

Action failed, forbidden request to cognitive services, free subscription used by the request ran out of quota.

403 - Subcode 8565

Both resources are S0 (ACS + Azure Multi Cog) and have been properly linked using the new interface.

The error started after feature moved from Private Preview to Public Preview. It was working properly before.

Expected behavior

Speech Playback & Recognition works.

Actual behavior

RecognizeFailed / PlayFailed

Reproduction Steps

Start a Call or Answer a Call. Try to recognice voice or use Play for TTS.

var recognize_result = await callConnectionMedia.StartRecognizingAsync( recognizeOptions );

Environment

WebApp for Container - Net 7.0 Visual Studio Code

github-actions[bot] commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

romeroej-inch commented 1 year ago

I was able to troubleshot this with the Engineering team. The issue was me not correctly setting the Voice (was sending blank). So the error is related to not using a proper neural voice but the log message is innapropiate.

navba-MSFT commented 1 year ago

@romeroej-inch Thanks for getting back. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.