How to hit Language Detection Cognitive Service API through Postman

sam 201 Reputation points
2021-06-23T08:08:56.41+00:00

Hi Team,

I am running Language Detection Cognitive Service API locally.

![108493-aaa.png][2]

Issue: Getting 404 when i am hitting through Postman

108469-bbb.png

Note: My cognitive service region is westeurope and Pricing tier F0

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,772 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,897 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 46,831 Reputation points Microsoft Employee
    2021-06-23T10:11:13.427+00:00

    @sam I think for a locally run language detection container the detection only works with websockets i.e the SDK.

    108549-image.png

    This is mentioned in the FAQ section of the speech containers. Although language detection status and ready API's seem to support REST API calls.

    108603-image.png

    You can test your local container by running antsu language detection client and check if your local endpoint is working. This command should work in this case.

    docker run --rm -ti antsu/on-prem-client:latest ./speech-to-text-with-languagedetection-client ./audio/LanguageDetection_en-us.wav --host localhost --lport 5003 --windows  
    

    108578-image.png

    The error with speech to text recognition is because i am not running speech to text container and not passing sport=5000 in the above command.


0 additional answers

Sort by: Most helpful

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.