An open API service indexing awesome lists of open source software.

https://github.com/prcutler/transcripts

AssemblyAI code to generate transcripts and subtitles for my podcasts
https://github.com/prcutler/transcripts

Last synced: 3 months ago
JSON representation

AssemblyAI code to generate transcripts and subtitles for my podcasts

Awesome Lists containing this project

README

        

# Python Transcript & SRT Generator

Modified from the tutorial code associated with the [AssemblyAI and Python in 5 Minutes](https://www.assemblyai.com/blog/assemblyai-and-python-in-5-minutes/) blog by [AssemblyAI](https://www.assemblyai.com/)

## Requirements

```console
$ pip install requests
```

## Usage:

If your AssemblyAI API key is stored as an environment variable called `AAI_API_KEY` file, then you can omit the optional `--api_key` argument.

```console
$ python transcribe.py audio_file [--local] [--api_key="]
```

Example for hosted file:

```console
$ python transcribe.py https://github.com/AssemblyAI-Examples/assemblyai-and-python-in-5-minutes/raw/main/audio.mp3 --api_key=
```

Example for local file:

```console
$ python transcribe.py audio.mp3 --local --api_key=
```

## Output
The output of `transcrbe.py` will save a `transcript.txt` and `transcript.srt` file when transcription is complete.