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
gefragt vor 2 Monaten215 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 2 Monaten
  • Yes I have cross check all the relevant library dependencies are exactly same , I have now added the screenshot of the dependencies

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen