Speech CLI and Apple Silicon M1 Mac

Piotr Charkashyn 1 Reputation point
2022-10-14T22:22:24.6+00:00

Hello!

I have a problem with Azure Speech CLI and Apple Silicon as in the GitHub ticket.
https://github.com/MicrosoftDocs/azure-docs/issues/97821

I successfully did the installation as in the documentation:
https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/spx-basics?tabs=macOS%2Cterminal

  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,
Piotr

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