Speech CLI and Apple Silicon M1 Mac

Piotr Charkashyn 1 Reputation point


I have a problem with Azure Speech CLI and Apple Silicon as in the GitHub ticket.

I successfully did the installation as in the documentation:

  1. Install .NET 6.
  2. Install the Speech CLI via the .NET CLI by entering this command:
    dotnet tool install --global Microsoft.CognitiveServices.Speech.CLI
    dotnet tool update --global Microsoft.CognitiveServices.Speech.CLI
    export PATH="$PATH:/Users/~/.dotnet/tools"
  3. Enter spx or spx help

I get an error here:

Unhandled exception. System.BadImageFormatException: Could not load file or assembly '~/.dotnet/tools/.store/microsoft.cognitiveservices.speech.cli/1.24.0/microsoft.cognitiveservices.speech.cli/1.24.0/tools/net6.0/any/spx.dll'. An attempt was made to load a program with an incorrect format.

File name: '~/.dotnet/tools/.store/microsoft.cognitiveservices.speech.cli/1.24.0/microsoft.cognitiveservices.speech.cli/1.24.0/tools/net6.0/any/spx.dll'
[2] spx

Can you please tell me if the problem has been solved?

System config:
OS macOS 12.6 arm64
Tool 'microsoft.cognitiveservices.speech.cli' version '1.24.0'
SDK 6.0.402

Best regards,

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,451 questions
{count} votes