- Newest
- Most votes
- Most comments
The issue you're experiencing with AWS HealthScribe Streaming is likely due to the browser attempting to establish a WebSocket connection (wss) instead of the required HTTP/2 stream. This is indeed unsupported for medical scribe streaming, as the documentation specifies that HealthScribe only supports HTTP/2.
The 500 error you're receiving is probably a result of this mismatch in protocols. Unfortunately, there isn't a straightforward way to use HTTP/2 directly from a browser environment, as browsers typically don't provide direct access to HTTP/2 APIs.
To work around this issue, you have a few options:
-
Server-side proxy: Implement a server-side application that can handle the HTTP/2 communication with AWS HealthScribe. Your browser-based application would then communicate with this proxy server using WebSockets or another browser-friendly protocol.
-
WebAssembly: Explore using WebAssembly to compile a language with HTTP/2 support (like Rust or C++) to run in the browser. This is a more complex solution but could potentially allow direct HTTP/2 communication from the browser.
-
Electron or similar: If your application can be packaged as a desktop application using something like Electron, you could use Node.js on the backend, which does support HTTP/2.
-
AWS Amplify: Consider using AWS Amplify, which might provide a more browser-friendly way to interact with AWS services, including potentially HealthScribe.
Given the constraints of browser environments and the specific requirements of AWS HealthScribe, the server-side proxy approach is likely the most practical solution for most use cases. This would allow you to maintain your browser-based frontend while ensuring proper communication with the HealthScribe service.
Sources
AWS HealthScribe - Amazon Transcribe
MedicalScribeResultStream - Amazon Transcribe
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 3 years ago
