This Streamn Python SDK provides convenient access to the Streamn API's.
See the API docs
- Python 3+
First make sure that Python is installed in your system.
pip install --upgrade streamn
The library needs to be configured with your account's API Key
save credentials by saving a file named streamn_config.json in your working directory in the following format.
Example of 'streamn_cofig.json' file
{
"api_key":"asaisdniasnasnfjasdfn_asjhnadjsdsa"
}
import streamnai
# Process audio file
status , transcipt = streamnai.process_audio.transcribe_audio( audio_file_path = <audio file path to transcibe> , is_medical = <bool, True or Flase> , vocabulary_name = <string, vocab name> , LanguageModelName = <string,language model name > )
import streamnai
# Process audio file
status , transcipt = streamnai.process_audio.get_audiolab_transcript(audio_file_path = <audio file path to transcibe> , is_medical = <bool, True or Flase> , vocabulary_name = <string, vocab name> , LanguageModelName = <string,language model name > )
import streamnai
# Process audio file
status , transcipt = streamnai.process_audio.get_improved_transcript( audio_file_path = <audio file path to transcibe> , is_medical = <bool, True or Flase> , vocabulary_name = <string, vocab name> , LanguageModelName = <string,language model name > )
To know more about these functions and parameters, click here
If the above doesn't help, do let us know at contact@streamn.ai