How to implement aws streaming transcription in react app

0

I was trying to implement streaming transcription in react app following this repo of aws https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javascriptv3/example_code/cross-services/transcribe-streaming-app The repo app is working correctly but when I used this same code into my react app it gives me error Like below:

Error creating microphone stream: TypeError: microphone_stream__WEBPACK_IMPORTED_MODULE_0___default(...).default is not a constructor at createMicrophoneStream (transcribeClient.js:64:1) at Module.startRecording (transcribeClient.js:30:1)

Enter image description here

Enter image description here

Razib
preguntada hace 2 meses191 visualizaciones
1 Respuesta
0

Can you make sure you are importing libraries correctly? Error hints that your webpack configuration is not able to build the app accordingly.

profile picture
EXPERTO
respondido hace 2 meses
  • Yes I have cross check all the relevant library dependencies are exactly same , I have now added the screenshot of the dependencies

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas