MATLAB Answers

Error using speech2text

2 views (last 30 days)
Steffen Weisenstein
Steffen Weisenstein on 24 Sep 2018
I have the following problem. I used this function a few months ago and it worked good. Now I created new API-keys and I get the following error message:
401 'Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.'
I use the Microsoft Azure Bing API and the following source code.
speechObject = speechClient('Microsoft','language','de-DE');
[y,fs] = audioread('test2.wav');
speechObject = speechClient('Microsoft','language','de-DE');
tableOut = speech2text(speechObject,y,fs)
Can you please tell me where is my mistake.
Greetings

  0 Comments

Sign in to comment.

Answers (1)

Zenin Easa Panthakkalakath
The Azure Speech API is part of Cognitive Services and requires subscription keys. Generate the key from Azure and save it to 'Microsoft_Credentials_Speech2text.json' file. The steps are written in detail inside the file exchange submission as a comment:

  0 Comments

Sign in to comment.

Sign in to answer this question.

Products


Release

R2018a