Mac M1: CLI SPX Command not found

hendryman 1 Reputation point

On my Macbook M1 (20219, MacOS 12.4) I have successfully installed
and the Speech CLI via
dotnet tool install --global Microsoft.CognitiveServices.Speech.CLI
but when I type
spx help
I get
zsh: command not found: spx

How can I fix this?

A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 questions
Azure Speech
Azure Speech
An Azure service that integrates speech processing into apps and services.
765 questions
Azure Cognitive Services
Azure Cognitive Services
A group of Azure artificial intelligence services and cognitive APIs that help build intelligent apps.
946 questions
{count} votes

6 answers

Sort by: Most helpful
  1. YutongTie-MSFT 24,636 Reputation points Microsoft Employee

    Hello @hendryman

    If you have installed spx successful but you can not run it, it seems like there is something wrong with your environment var - PATH, especially you are using z shell.

    I have seen a thread which mentioned similar problem and I think you may want to take a look -

    If you still have this issue after set the PATH well, please let us know, we are glad to help you raise a support ticket to investigate your local environment.

    Looking forward to your response and I hope this helps.


    No comments

  2. hendryman 1 Reputation point

    Thank you, Yutong. Tried and failed.

    No comments

  3. bozolino 0 Reputation points

    Still not working. Can anyone please help?

    No comments

  4. Bruce ( 28,276 Reputation points

    ls ~/.dotnet/tools

    should show spx as an executable. if it does, then you do not have your $path set correctly to find it.

    you can also run it explicitly:


    No comments

  5. Bruce ( 28,276 Reputation points

    (extra post to make post appear)

    No comments