Unable to create a Multi-device Conversation

Hoa Vu 0 Reputation points
2023-07-25T03:58:53.4366667+00:00

I follow this intruction for Multi-device Conversation, but can't create a conversation.

Keep receiving error:

Failed with error: HTTPAPI_READ_DATA_FAILED [0x9]
POST [https://dev.microsofttranslator.com/capito/room?api-version=2.0&language=en-US&translateTo=en]at Microsoft.CognitiveServices.Speech.Internal.SpxExceptionThrower.ThrowIfFail(IntPtr hr) at Microsoft.CognitiveServices.Speech.Transcription.Conversation.<>c__DisplayClass0_0.<CreateConversationAsync>b__0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) End of stack trace from previous location --- at Program.<CreateConversationAsync>d__1.MoveNext() in D:\Users\F2JBCTG\source\Research\AzureSTTApp\Program.cs:line 120 at Program.<Main>d__4.MoveNext() in D:\Users\F2JBCTG\source\Research\AzureSTTApp\Program.cs:line 413

I use keys from Azure AI services (https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne)

key = "84.................0f"

region = "eastus"

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,101 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,526 Reputation points Microsoft Employee
    2023-07-25T11:05:06.9633333+00:00

    @Hoa Vu I tried the same code with my resource in West Europe and it works as expected. Have you used both CreateConversationAsync() and JoinConversationAsync() samples in your Program.cs? Based on the line number in your error message I think you have added both. Try only using the CreateConversationAsync() method first to run the sample and then create a conversation from [ https://translator.microsoft.com] and replace CreateConversationAsync() with JoinConversationAsync()

    Also, the parameter in your request to create a conversation seems to use en-US as from language and en as to language. Try to use different languages as mentioned in the sample in the config.

                string fromLanguage = "en-US";
                string toLanguage = "de";
    

    Screen shot of the run from my machine:

    User's image

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

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.