Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tm-kn/whisper-transcribe-example
https://github.com/tm-kn/whisper-transcribe-example
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tm-kn/whisper-transcribe-example
- Owner: tm-kn
- Created: 2024-04-23T08:29:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-23T08:34:44.000Z (7 months ago)
- Last Synced: 2024-05-27T19:15:49.821Z (6 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whisper-transcribe-example
Get a transcription text file out of an audio or video file with a CLI tool using OpenAI Whisper API.
## Installation
```sh
poetry install
```## Run
```sh
poetry run trascribe file.m4a file2.m4a
```## Split files into multiple chunks with ffmpeg
If you need to split files into multiple chunks because it's too long to send to OpenAI, you can use ffmpeg.
e.g.
```sh
ffmpeg -i input_file.m4a -f segment -segment_time 600 -c copy out%03d.m4a
```