voicebase: Upload audio files to voicebase to get a transcription

[ api, bsd3, deprecated, library, program ] [ Propose Tags ]
Deprecated

Downloads

Maintainer's Corner

Package maintainers

  • No current members of group

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.2.0.0
Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), bytestring, HsOpenSSL, http-client, http-client-openssl, json-autotype, lens, mime-types, options, text, voicebase, wreq [details]
License BSD-3-Clause
Copyright Daisee Pty Ltd
Author Jappie Klooster
Maintainer jappie.klooster@daisee.com
Category API
Home page https://bitbucket.org/daisee/voicebase
Uploaded by Jappie at 2018-05-03T07:55:37Z
Distributions
Executables voicebase
Downloads 2823 total (17 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-05-03 [all 1 reports]

Readme for voicebase-0.1.1.1

[back to package description]

Haskell bindings for voice base api

http://voicebase.readthedocs.io/en/v2-beta/

Usage

    import VoicebaseClient
    import Json.TranscriptTypes

    main = do
      result <- transcribeFile "your bearer token" "./audio.mp3"
      -- get validated response or error
      case result of
        Left err -> print $ err
        Right val -> putStrLn val

      -- get a parsed structure
      parsed <- transcribeParse "your bearer token" "./audio.mp3"
      case parsed of 
        Left err -> print $ err
        Right val -> print $ latestTranscriptsWordsTranscripts . transcriptsLatestTranscripts . mediaTranscripts . topLevelMedia val

There is also a main file which shows usage

features

  • Post audio file to voicebase
  • Poll for progress
  • Get resulting transcript or valid json or an error.

Trivia

The source repo can be found here: https://bitbucket.org/daisee/voicebase

wreq client instead of servant

The reason httplib is used rather than servant is because of multipart posting. It was asserted that servant is incapable of doing that. This is a requirement for the voicebase api however. Http client does support this however we need to write more code as a result of this.