NodeJS Convert Int16Array binary Buffer to LINEAR16 encoded raw stream for Google Speech API

后端 未结 1 1198
温柔的废话
温柔的废话 2021-01-22 15:14

I\'m trying to convert speech to text in node server where speech recording happens in the browser using AudioContext. I\'m Able to send int16Array buffer(recorded data) to my n

1条回答
  •  面向向阳花
    2021-01-22 15:41

    Solved it !!! We can write the buffer directly to recognizerStream which created from GoogleSpeech as follows:

    const recognizer = getGoogleSpeechStreamRecognizer();
    
    recognizer.write(int16ArrayBuffer)
    

    0 讨论(0)
提交回复
热议问题