Upload audio files to voicebase to get a transcription https://bitbucket.org/daisee/voicebase
|Latest on Hackage:||0.1.1.4|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
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
- Post audio file to voicebase
- Poll for progress
- Get resulting transcript or valid json or an error.
The source repo can be found here: https://bitbucket.org/daisee/voicebase