Skip to main content

Tatt creates a uniform API for multiple speech-to-text (STT) services.

Project description

Transcribe All The Things™

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

demo

Installation

pip install tatt

Dependencies

An AWS account (the only supported STT provider as of Feb 12, 2019), and a recording to transcribe!

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.
  list      Lists available STT services.
  services  Lists available speech-to-text services.
  this      Sends a media file to be transcribed.

List All STT Services

$ transcribe services

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

  amazon		(60 minutes per month for the first 12 months)

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.

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


$ transcribe list <job_name>

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

Get A Completed Transcript

$ transcript 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'},
                       ...

$ transcript get -f <job_name>

Okay, downloaded <job_name>.json

Services Supported

Planned

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

tatt-0.961.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

tatt-0.961-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file tatt-0.961.tar.gz.

File metadata

  • Download URL: tatt-0.961.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for tatt-0.961.tar.gz
Algorithm Hash digest
SHA256 0f9b86ea76cd3d8b7041bd6f1b8430d4c6da52638e092c05a9720f4f577356cb
MD5 a0f48a368a83a58588150c0433f47bac
BLAKE2b-256 51722c87635d4c28e043c119b1d5f47e8543eb7eb43e4568eb93b77497ff263c

See more details on using hashes here.

File details

Details for the file tatt-0.961-py3-none-any.whl.

File metadata

  • Download URL: tatt-0.961-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for tatt-0.961-py3-none-any.whl
Algorithm Hash digest
SHA256 16b058719a78cd2bd713086b0d4888284fcfc2c934ecf79e0ca8c71f825db071
MD5 db9e3d577f8192464bd077a9762c67e6
BLAKE2b-256 addfffda43d3a264406877f9e52ab404d1a2e1e07f90aa84d440e88a496eba67

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