Answer the question
In order to leave comments, you need to log in
How to fix the code to make a POST request to Yandex service via Matlab?
You need to make a post request to the Yandex service for speech recognition. The developer's guide states what must be filled in the request. An example is as follows:
POST /asr_xml?uuid=<user ID>&key=&topic=numbers〈=ru-RU HTTP/1.1
Host: asr.yandex.net
Content-Type: audio/x-pcm;bit=16;rate= 16000
Transfer-Encoding: chunked
I try in Matlab:
url=' https://tech.yandex.ru/speechkit/cloud/ ';
option = weboptions('Username','name','KeyName','key','ContentType','audio', maybe something else is needed ?? );
Body = struct( ????????? );
Body = struct('order', Body);
response = send(url, Body, option); or response =webwrite(url, Body, option); ???
I don’t understand what to specify in the Body ...
you need to somehow enter the audio fragment itself (something like [X, Fs] = audioread ('С:\blabla.wav')), where and how?
Help! I'm a layman
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question