Skip to main content

Transcribe All The Things™

tatt is a CLI for creating and managing speech-to-text transcripts.

demo

Installation

pip install tatt

Dependencies

  1. A recording to transcribe.
  2. a) An AWS account or b) a Google Cloud account with the speech-to-text API and Cloud Storage enabled.
  3. ffmpeg for some operations, but tatt will let you know when it's needed.

Usage

List All Commands

$ transcribe --help

Usage: transcribe [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  get        Downloads and/or saves completed transcript.
  languages
  list       Lists available STT services.
  services   Lists available speech-to-text services.
  status     Check the status of a transcription job.
  this       Sends a media file to be transcribed.

List All STT Services

$ transcribe services

Here are all the available speech-to-text services:

  amazon		$0.006 per 15 seconds
  google		$0.009 per 15 seconds

Get Something Transcribed

$ transcribe this <path_to_media_file> <service_name>

Okay, transcribing <path_to_media_file> using <service_name>...
Okay, job <job_name> is being transcribed.  Use "get" command to download it.

$ transcribe this --help

Usage: transcribe this [OPTIONS] MEDIA_FILEPATH SERVICE_NAME

Sends a media file to be transcribed.

Options:
  --punctuation                   only for Google Speech, defaults to True
  --speaker-id / --no-speaker-id  only for google and amazon, defaults to True
  --num_speakers INTEGER          only for google and amazon, defaults to 2
  --model TEXT                    only for Google Speech, defaults to
                                  "phone_call"
  --use-enhanced                  only for Google Speech, defaults to True
  --language-code TEXT            only for google and amazon, defaults to en-
                                  US
  --help                          Show this message and exit.

List Transcripts

$ transcribe list

Service Job Name                                Status
------- --------                                ------
amazon  tester.mp3                              IN_PROGRESS
amazon  messed_up.mp4                           FAILED
amazon  done_test.mp3                           COMPLETED
amazon  also_done.MP3                           COMPLETED
google  hey_there.mp3                           COMPLETED


$ transcribe list <job_name>

Service Job Name                                Status
------- --------                                ------
amazon  <job_name>                              IN_PROGRESS

Get A Completed Transcript

$ transcribe get <job_name> # prints to stdout

{'accountId': '416321668733',
 'jobName': 'a1bace5e-8b08-4ce4-b08c-834a23aafcf1',
 'results': {'items': [{'alternatives': [{'confidence': '0.9774',
                                          'content': 'Hi'}],
                        'end_time': '1.5',
                        'start_time': '1.23',
                        'type': 'pronunciation'},
                       {'alternatives': [{'confidence': '0.9429',
                                          'content': 'is'}],
                        'end_time': '1.71',
                        'start_time': '1.5',
                        'type': 'pronunciation'},
                       ...

$ transcribe get --save <job_name>

Saved transcript to <job_name>.json

Services Supported

Planned

Metadata

Release files for tatt 0.981

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tatt 0.981
File Size Uploaded Provenance Actions
tatt-0.981.tar.gz 12.1 kB Without provenance Details for tatt-0.981.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tatt 0.981
File Interpreter ABI Platform Actions
tatt-0.981-py3-none-any.whl Python 3 none any Details for tatt-0.981-py3-none-any.whl

Total release size: 39.2 kB

Release files / tatt-0.981.tar.gz

Download URL tatt-0.981.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
568808bc688a64cb3dbd3062446054cfcd9d8888032c40d161a13c1b025f2311
BLAKE2b-256 checksum
How to use checksums
48a5c082fd0a5fa3fffc02fb9793bc862144852913bf993e046f26cb55c38348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

Release files / tatt-0.981-py3-none-any.whl

Download URL tatt-0.981-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9d68abbba661b3e43b8f724c6dd271946085efac14877bfc5423efd450c5542
BLAKE2b-256 checksum
How to use checksums
9de92008b665d93d56ea93af4e0dbff98047ade0a524e3db753253c3ba45ef8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

Security for tatt 0.981

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.981 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page