question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[speech-to-text] 401 unauthorized

See original GitHub issue

Using the ExampleSpeechToText Gameobject in the Service Examples scene I input my api key (I’ve tried two different ones supplied from the speech to text dashboad) and Iam Url supplied by the speech to text dashboard and press play.

I always get an unauthorized exception: [11/12/2018 13:53:30][RESTConnector.ProcessRequestQueue()][ERROR] URL: https://stream.watsonplatform.net/speech-to-text/api, ErrorCode: 401, Error: 401 Unauthorized, Response: {"code":401, "error": "Unauthorized"}

I’m using Unity 2018.3.0b2 and Watson version 2.11.

When I use the curl commands in the tutorial it doesn’t give me this unauthorized exception, though it doesn’t work to be honest, even with the file provided (audio-file.flac) it complains about the stream being only 38 bytes (which is I believe the number of characters in the path to the audio file)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
kimberlysivacommented, Nov 12, 2018

I was having the same problem this morning Ian. Try leaving the Iam Url blank, or setting it to “https://iam.bluemix.net/identity/token”. Use the stream url in the Service Url field.

@mediumTaj we might want to change the Iam Url label to “Iam Token Url” to avoid confusion.

0reactions
albertveomascommented, Apr 12, 2019

can i get any tutorial?

Read more comments on GitHub >

github_iconTop Results From Across the Web

speech to text Authentication error (401) on GitHub SDK ...
Hi, thanks for reaching out. The error is most likely due to invalid endpoint for your region/service or issues with your subscription key....
Read more >
Azure text-to-speech service returns 401 Unauthorized
I'm trying to use the Azure Cognitive Services text-to-speech API, but no matter what I try, I get a 401 Unauthorized response.
Read more >
'UNAUTHORIZED ERROR' using google cloud text to sp...
Hi, I am using the following code to see if i can use the text to speech api. I am getting a consistent...
Read more >
Text-to-speech API returns 401 Unauthorized · Issue #90
I'm trying to use the Cognitive Services text-to-speech API, but no matter what I try, I get a 401 Unauthorized response.
Read more >
Error 401 Client Error: Unauthorized for url - 🤗Hub
When using model card of my private speech recognition model with LM, I got this error: 401 Client Error: Unauthorized for url: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found