voicebase-0.1.1.1: Upload audio files to voicebase to get a transcription

Safe HaskellNone
LanguageHaskell2010

VoicebaseClient

Description

Main module for doing the requests to the voicebase api: http://voicebase.readthedocs.io/en/v2-beta/

Synopsis

Documentation

transcribe :: BearerToken -> Options -> [Part] -> IO (Either Error Value) Source #

Generic transcribe, agnostic of options, will add ssl, | the bearer token and a timeout to the options. | Throws HttpExceptionRequest

transcribeFile :: BearerToken -> FilePath -> IO (Either Error Value) Source #

Given a bearer token, and a filepath to an audio file, this function will | eventually return a transcript or times out after 10 seconds | Throws HttpExceptionRequest, IOException (file not found)

transcribeBytes :: BearerToken -> LazyByteFile -> IO (Either Error Value) Source #

Transcribe a bytestring | Throws HttpExceptionRequest

transcribeParse :: BearerToken -> FilePath -> IO (Either Error Transcript) Source #

transcribes the audio file and puts it into a Transcript

data Error Source #

Instances

data LazyByteFile Source #

In case of a bytestring, we also need to mimetype to decode the send string

Constructors

LazyByteFile