Why Am I Getting Connection Failed Error on Android build via Unity?

ZGAli 0 Reputation points
2024-10-17T11:07:36.4+00:00

get an error message on Android build via Unity Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

  • Speech SDK log taken from a run that exhibits the reported issue.

logFile.txt

  • A stripped down, simplified version of your source code that exhibits the issue. Or, preferably, try to reproduce the problem with one of the public samples in this repository (or a minimally modified version of it), and share the code.

I used the Microphone Unity sample project in the cognitive-services-speech-sdk repo.

  • Additional information as shown below

I tested it in the Unity Editor and it worked fine, also worked fine on a windows build. I tested it on two different Android phones, and still got the negative results. I also used different regions, and still no luck.

Steps to reproduce the behavior:

  1. Build an Android version of the "Microphone" Unity sample on the repo.

Version of the Cognitive Services Speech SDK

I used Microsoft.CognitiveServices.Speech.1.40.0.unitypackage

Platform, Operating System, and Programming Language

  • OS: Android 12
  • Hardware - ARM,
  • Programming language: C# get an error message on Android build via Unity Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED
    - Speech SDK log taken from a run that exhibits the reported issue.
    
    logFile.txt
    - A stripped down, simplified version of your source code that exhibits the issue. Or, preferably, try to reproduce the problem with one of the public samples in this repository (or a minimally modified version of it), and share the code.
    
    I used the Microphone sample project in the repo.
    - Additional information as shown below
    
    I tested it in the Unity Editor and it worked fine, also worked fine on a windows build. I tested it on two different Android phones, and still got the negative results. I also used different regions, and still no luck.

    Steps to reproduce the behavior:

    1. Build an Android version of the "Microphone" Unity sample on the repo.

    Version of the Cognitive Services Speech SDK

    I used Microsoft.CognitiveServices.Speech.1.40.0.unitypackage

    Platform, Operating System, and Programming Language

    • OS: Android 12 & 13
    • Programming language: C#
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,061 questions
{count} votes

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.