Skip to main content

A package for medical scribing using AWS Transcribe for the healthcare domain

Project description

HealthScribe

A Python package for medical scribing using AWS Transcribe Medical service.

Overview

HealthScribe is a package focused on the healthcare domain. It enables medical scribing by transcribing audio files (e.g., doctor-patient conversations) using AWS Transcribe Medical service. The package uploads the provided audio file to an S3 bucket, starts a transcription job, and retrieves a summary from the job's JSON output.

Installation

 pip install newberryai

Usage

You can use the command-line interface:

healthscribe-cli <audio_file> <job_name> <data_access_role_arn> <s3_bucket> 

For example:

healthscribe-cli conversation.wav myJob arn:aws:iam::aws_accountid:role/your-role my-s3-bucket s3-key

You can use this in python script:

import os
import newberryai

# Set the environment variables for the AWS SDK
os.environ['AWS_ACCESS_KEY_ID'] = aws_access_key_id
os.environ['AWS_SECRET_ACCESS_KEY'] = aws_secret_access_key
os.environ['AWS_REGION'] = aws_region

# Call the function with sensitive information masked
summary = newberryai.healthscribe(
    audio_file="/path/to/audio.mp3",
    job_name="job_name",
    data_access_role_arn="arn:aws:iam::accountid:role/your-role",
    s3_bucket="s3_bucket"
)

print(summary)

License

This project is licensed under the MIT License.

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

newberryai-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newberryai-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file newberryai-0.1.0.tar.gz.

File metadata

  • Download URL: newberryai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for newberryai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40a4f22b4e43e2aca9c5f7dd91944d5263dc289580d2d117574476c7aab8e751
MD5 55ea75a263906b723bd7eafd007537be
BLAKE2b-256 cb2a45eab1ad3332b12d82e87e3de44dfb0dea74f6c3e5178534be6842e23863

See more details on using hashes here.

File details

Details for the file newberryai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: newberryai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for newberryai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f42d5f8136b5aa93aabc02b5e7816ddbddde67a84b8372036b14299bec2f71
MD5 4ab24f76307f1536b38f3de722714133
BLAKE2b-256 0d80223db121ef8a7b7e017a37ab89360be1dcce689ac92314952c99c598d474

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