Safe Haskell | None |
---|---|
Language | Haskell2010 |
Main module for doing the requests to the voicebase api: http://voicebase.readthedocs.io/en/v2-beta/
- transcribe :: BearerToken -> Options -> [Part] -> IO (Either Error Value)
- transcribeFile :: BearerToken -> FilePath -> IO (Either Error Value)
- transcribeBytes :: BearerToken -> LazyByteFile -> IO (Either Error Value)
- transcribeParse :: BearerToken -> FilePath -> IO (Either Error Transcript)
- type BearerToken = String
- data Error
- data LazyByteFile = LazyByteFile {}
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
type BearerToken = String Source #
get your bearer token at http://voicebase.readthedocs.io/en/v2-beta/how-to-guides/hello-world.html#token
data LazyByteFile Source #
In case of a bytestring, we also need to mimetype to decode the send string