Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Channel = MkChannel {
- audioQueue :: !(TQueue ByteString)
- responseQueue :: !(TQueue StreamingResponse)
- newChannel :: IO Channel
- readChannel :: Channel -> IO StreamingResponse
- tryReadChannel :: Channel -> IO (Maybe StreamingResponse)
- writeChannel :: Channel -> ByteString -> IO ()
- isEmpty :: Channel -> IO Bool
Documentation
An AWS Transcribe channel abstraction.
Audio Bytestring
s are written to the channel to be transcribed.
Transcribed StreamingResponse
s are read from the channel.
MkChannel | |
|
readChannel :: Channel -> IO StreamingResponse Source #
Read a StreamingResponse
from the Channel
tryReadChannel :: Channel -> IO (Maybe StreamingResponse) Source #
Read a StreamingResponse
from the Channel
if one is available
writeChannel :: Channel -> ByteString -> IO () Source #
Write an audio ByteString
to the channel