Error when trying to install the Speech CLI via the .NET CLI

eera5607 20 Reputation points
2023-04-06T21:20:40.0033333+00:00

Trying to install the Speech CLI via the .NET CLI following this gets me to this error:

C:\Users\eera5607\AppData\Local\Temp\4c9da802-b83d-4de9-8890-02271e2ac5de\restore.csproj : error NU1100: Unable to resolve '
microsoft.cognitiveservices.speech.cli (>= 0.0.0)' for 'net6.0'.
C:\Users\eera5607\AppData\Local\Temp\4c9da802-b83d-4de9-8890-02271e2ac5de\restore.csproj : error NU1100: Unable to resolve '
microsoft.cognitiveservices.speech.cli (>= 0.0.0)' for 'net6.0/any'.
The tool package could not be restored.
Tool 'microsoft.cognitiveservices.speech.cli' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Thank you!

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

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,296 Reputation points
    2023-04-07T02:42:28.97+00:00

    Hi @eera5607 , Thanks for using Microsoft Q&A Platform. The installation of a .NET global or local tool can fail due to various reasons. In case of a failure, you will receive an error message similar to the one you have provided. Here are the troubleshooting steps you can try:

    • Make sure you have specified the correct name of the tool or package name.
    • If you are trying to install a preview release, make sure to specify the version using the --version option.

    The troubleshooting documentation is available here. Please try and see if that helps you: https://learn.microsoft.com/en-us/dotnet/core/tools/troubleshoot-usage-issues#net-tool-installation-fails

    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.