Transfer payload data to an AsyncIterable. When the ReadableStream API is available in the runtime(e.g. browser), and the request body is ReadableStream, so we need to transfer it to AsyncIterable to make the stream consumable by WebSocket.
Middleware that inject default sessionId for operations, and inject the parameters from request to the response metadata. This is necessary because the SDK cannot access any parameters other than the result stream. So it copies the parameters from input to the same parameters in the output.
Convert async iterable to a ReadableStream when ReadableStream API is available(browsers). Otherwise, leave as it is(ReactNative).
Middleware that generates WebSocket URL to TranscribeStreaming service Reference: https://docs.aws.amazon.com/transcribe/latest/dg/websocket.html
@aws-sdk/middleware-sdk-transcribe-streaming