awslabs / aws-lex-browser-audio-capture

An example web application using the Lex JavaScript SDK to send and receive audio from the Lex PostContent API. Demonstrates how to capture an audio device, record audio, and convert the audio into a format that Lex will recognize, and play the response. All from a web browser.
MIT No Attribution
165 stars 74 forks source link

Using in React? #24

Open donniekerr opened 4 years ago

donniekerr commented 4 years ago

Is there an npm package for Lex Audio SDK that can be imported into a React app? I'm currently running AWS.lexruntime in a react app and I want to add audio recording. I don't see anything in Lex Javascript SDK docs that references Lex Audio??

Thanks, Donnie

donniekerr commented 4 years ago

Also, will this code work on iOS?

ishandikshit commented 4 years ago

Is there an npm package for Lex Audio SDK that can be imported into a React app? I'm currently running AWS.lexruntime in a react app and I want to add audio recording. I don't see anything in Lex Javascript SDK docs that references Lex Audio??

Thanks, Donnie

I don't think there is any npm module for this (though I'd wait for owner's response). I used it recently and I just added a require statement for this script in my method