aws-transcribe-ws-0.0.1.0: Websocket streaming to Amazon Transcribe service
Safe HaskellNone
LanguageHaskell2010

AWS.Transcribe.EventStream

Description

Event stream encoding provides bidirectional communication using messages between a client and a server. Data frames sent to the Amazon Transcribe streaming service are encoded in this format. The response from Amazon Transcribe also uses this encoding.

Each message consists of two sections: the prelude and the data. The prelude consists of:

The total byte length of the message

The combined byte length of all of the headers

The data section consists of:

The headers

A payload

Each section ends with a 4-byte big-endian integer CRC checksum. The message CRC checksum is for both the prelude section and the data section. Amazon Transcribe uses CRC32 (often referred to as GZIP CRC32) to calculate both CRCs. For more information about CRC32, see GZIP file format specification version 4.3

.

Total message overhead, including the prelude and both checksums, is 16 bytes.

documentation source: https://docs.aws.amazon.com/transcribe/latest/dg/event-stream.html

Synopsis

Documentation

data Message Source #

Instances

Instances details
Eq Message Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Show Message Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Binary Message Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Methods

put :: Message -> Put #

get :: Get Message #

putList :: [Message] -> Put #

data Header Source #

Event stram encoding header

Instances

Instances details
Eq Header Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Methods

(==) :: Header -> Header -> Bool #

(/=) :: Header -> Header -> Bool #

Show Header Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Binary Header Source # 
Instance details

Defined in AWS.Transcribe.EventStream

Methods

put :: Header -> Put #

get :: Get Header #

putList :: [Header] -> Put #

mkStreamingMessage :: ByteString -> Message Source #

Make a streaming message, using the default request headers