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
- Host: GitHub
- URL: https://github.com/prcutler/transcripts
- Owner: prcutler
- License: mit
- Created: 2022-09-17T14:40:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-09T00:31:43.000Z (over 2 years ago)
- Last Synced: 2025-01-31T03:32:11.624Z (4 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.