Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tm-kn/whisper-transcribe-example


https://github.com/tm-kn/whisper-transcribe-example

Last synced: 3 days ago
JSON representation

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
```