Skip to content

teachingpython/post-production

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teaching Python Post-production CLI

This program is an experiment to see if we can use Python to automate our post-production steps.

We are setting this up as a series of command-line programs, but eventually want to turn this into an automated pipeline of tasks.

Current Features

  • Dolby.io Client
    • Audio Enhancement
    • Audio and Speech Analysis
    • Job status polling
  • AssemblyAI transcription
    • Speaker labeling
    • Word boosting
    • Job status polling
  • Local transcoding using ffmpeg to mp3 format
    • requires ffmpeg on the local machine
    • allows intro and outro music to be added

Planned Features

  • S3-compatible storage
  • Webhook callbacks to avoid job status polling

Example

Installation

Note: This project uses poetry and assumes you have it installed. Directions

  1. Clone or download the project from the repository
  2. poetry install
  3. poetry run tppp INPUTFILE

Usage

$ tppp enhance input.mp3

$ tppp transcode input.mp3 --intro-music intro.mp3 --outro-music outro.mp3

$ tppp transcribe input.mp3

Configuration

Dolby.io API key

This project requires a Dolby.io API key. You can get one for free from here. As of July 2021, they are offering 200 free minutes of media processing per month.

You can set your API key as an environment variable ('DOLBY_API_KEY') or in a .env file at the root of the project.

AssemblyAI API key

This project requires an AssemblyAI API key. You can get one for free from here. As of July 2021, they are offering the first 5 hours of transcription for free.

You can set your API key as an environment variable ('ASSEMBLYAI_API_KEY') or in a .env file at the root of the project.