Python based interface for interacting with Google Cloud's Speech-to-Text API and Cloud Storage API.
Project description
TranscribeInterviews
Python interface for interacting with the Google Speech-to-Text API and Google Cloud Storage API for the purposes of automatic audio transcription. Usage requires a google cloud account with a credential's file issued from it with permissions for both APIs.
Installation
pip install InterviewTranscriber
Example End-to-End Workflow
# 1) Upload audio file(s) to Google Coud Coldline Storage bucket.
from Transcriber.Google.Storage import Storage
from Transcriber.Google.Transcriber import TranscriberBeta
storage_connection = Storage(project_id='<project_id>',
credential_path='<path_to_credential_file')
storage_connection.upload_file(bucket_name='<cloud_bucket_name>',
source_file_path='<path_to_source_file>')
# 2) Get URI list of files in bucket
file_list = storage_connection.get_uris(bucket_name='<cloud_bucket_name>')
# 3) Send API call to transcribe audio
transcriber = TranscriberBeta(output_directory='<path_to_output_directory>',
credential_path='<path_to_credential_file>',
contexts_path='<path_to_contexts_file.txt>',
speaker_count=2,
diarization=True)
transcriber.get_transcriptions(uris=file_list)
# 4) Export as a Praat TextGrid
transcriber.export_textgrids()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for InterviewTranscriber-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26602a97476bdb52800aba91c1633f3fa6649fd3847063093bc9603ff9e9c848 |
|
MD5 | 0f79b759a4d99ec110270c445bbf83dc |
|
BLAKE2b-256 | 7b4079c804b575c5491bb8c59bc42322015fb1e842f6662081da321b823e569a |
Close
Hashes for InterviewTranscriber-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93484895ebe22f3c0d343df28d1c3c9fce52677944d97d1158ae979e9f4d3066 |
|
MD5 | 369043d3dd54cfe787a7485f9ed64077 |
|
BLAKE2b-256 | 82e7845af0fea19ce6dfe43c2580f741bcf7a492e144cd7fb45d4c88b145392a |