mediacatch-s2t

Upload a media file and get the transcription link.


Keywords
mediacatch, speech, to, text, uploader, nlp, speech-to-text
License
Other
Install
pip install mediacatch-s2t==2.0.1

Documentation

MediaCatch Speech-To-Text Uploader

github test codecov

mediacatch-s2t is the MediaCatch service for uploading a file in python and get the transcription result in a link. This module requires python3.9 or above.

You can use it on your CLI

pip install mediacatch_s2t

python -m mediacatch_s2t <api_key> <path/to/your/media/file> --fallback_language da

Or import it as a module

from mediacatch_s2t.uploader import upload_and_get_transcription


'''
The result will be a JSON object:
{
  "url": "url-to-your-transcription",
  "status": "uploaded",
  "estimated_processing_time": "your-estimated-time-to-get-your-transcription-done",
  "message": "The file has been uploaded."
}

'''
result = upload_and_get_transcription('path/to/your/media/file', 'api_key', fallback_language='da')