Skip to main content

a python library to use Streamn API's

Project description

Streamn Python SDK

This Streamn Python SDK provides convenient access to the Streamn API's.

Documentation

See the API docs

Requirements

  • Python 3+

Installation

First make sure that Python is installed in your system.

pip install --upgrade streamn

Configuration

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"
}

A Transcript generation Example

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 >  )

A Transcript with Audiolab scores generation Example

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 >  )

A Improved Transcript generation Example

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

Need support

If the above doesn't help, do let us know at contact@streamn.ai

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamn-1.0.2.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file streamn-1.0.2.tar.gz.

File metadata

  • Download URL: streamn-1.0.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for streamn-1.0.2.tar.gz
Algorithm Hash digest
SHA256 be7617b9b6bebf6ddee8a08cc982679c42727f2076a23fde71b92de27bac7c14
MD5 7b5979da72f605cebb03df7b97db9adc
BLAKE2b-256 c989b553bba7996bac7cb8e742d7230df93f52f1e9d3051888c9073fc8a1fb1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page