Closed Risenafis closed 3 months ago
/api/speech/recognize gets the request with const { model, audio, lang } = req.body;, so we need to use lang instead of language. (If I should fix the endpoint instead, please let me know.)
/api/speech/recognize
const { model, audio, lang } = req.body;
lang
language
Doing it here is good because there's no backward compatibility to worry about, since it never worked.
/api/speech/recognize
gets the request withconst { model, audio, lang } = req.body;
, so we need to uselang
instead oflanguage
. (If I should fix the endpoint instead, please let me know.)