https://github.com/krlan2789/py-media-transcriber
Python Project - Test media transcriber using OpenAI Whisper and Faster Whisper model
https://github.com/krlan2789/py-media-transcriber
faster-whisper openai-whisper python
Last synced: 2 months ago
JSON representation
Python Project - Test media transcriber using OpenAI Whisper and Faster Whisper model
- Host: GitHub
- URL: https://github.com/krlan2789/py-media-transcriber
- Owner: krlan2789
- Created: 2024-10-04T08:35:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-16T09:06:13.000Z (6 months ago)
- Last Synced: 2025-03-28T04:30:43.545Z (3 months ago)
- Topics: faster-whisper, openai-whisper, python
- Language: Python
- Homepage:
- Size: 476 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Media Transcriber
Media Transcriber using Faster Whisper Model
## Requirements
- Python v3.10 (3.12 recommended)
- faster-whisper v1.0.3## Run Basic Command
``` shell
python transcribe.py -a 'D:/Files/Documents/Python/Projects/py-media-transcriber/audio/1.m4a' 'D:/Files/Documents/Python/Projects/py-media-transcriber/audio/2.m4a'
```Example results
```json
{
"status": true,
"device": "cpu",
"model_size": "large",
"time_elaped": 18.026545763015747,
"transcription": [
"7-2-1",
"2"
]
}
```## Help
```shell
usage: transcribe.py [-h] [--audiodir AUDIODIR] [-a A [A ...]] [-m M] [-d D]options:
-h, --help show this help message and exit
--audiodir AUDIODIR Audio Directory
-a A [A ...] Audio files path
-m M Model size: tiny|small|large|large-v3
-d D Device: cpu|cuda
```# Python Text Similarity
## Run Basic Command
```shell
python similarity.py -t "A journey of a thousand miles begins with a single step" -s "A journey of a thousand miles begins with a single leap"
```Example results
```json
{
"status": true,
"similarity": "94.5%",
"transcription": "A journey of a thousand miles begins with a single step",
"original": "A journey of a thousand miles begins with a single leap"
}
```## Help
```shell
usage: similarity.py [-h] [-t T] [-s S]options:
-h, --help show this help message and exit
-t T Transcription results
-s S Original sample text
```