voicebase: Upload audio files to voicebase to get a transcription

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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

[Skip to Readme]


Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), bytestring, filepath, HsOpenSSL, http-client, http-client-openssl, json-autotype, lens, mime-types, optparse-applicative, 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 ChristianMarie at 2018-09-18T02:00:03Z




Maintainer's Corner

For package maintainers and hackage trustees

Readme for voicebase-

[back to package description]

Haskell bindings for voice base api



    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



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