@abdou abdou Thanks for the question. Here is Speech to text samples in the github repo and quickstart.
To recognize speech from an audio file, create an AudioConfig instance by using fromWavFileInput(), which accepts a Buffer object. Then initialize SpeechRecognizer by passing audioConfig and speechConfig.
let audioConfig = sdk.AudioConfig.fromWavFileInput(fs.readFileSync("YourAudioFile.wav"));
Android AudioConfig.fromWavFileInput : Cannot read properties of undefined (reading 'slice')
abdou abdou
1
Reputation point
Any one can help me please with this issue ?
https://github.com/glharper/cognitive-js-sdk-react-native/issues/2
1 answer
Sort by: Most helpful
-
Ramr-msft 17,731 Reputation points
2022-02-10T12:21:29.18+00:00