hirocaster / whisper-docker

whisper with docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whisper-docker

whisper with docker

Setup

Install Docker.

$ git clone https://github.com/karaage0703/whisper-docker
$ cd whisper-docker
$ docker build -t whisper .

Usage

Voice recognition with microphone

Execute following command in whisper-docker directory.

$ docker run -it -d -v $(pwd):/workspace/ --net host --name whisper whisper
$ docker exec -it whisper bash
root@hostname:/workspace# python whisper-server.py

Open new terminal and execute following command:

$ python mic.py

Transcribe

Prepare audio file (ex: input.mp3) and execute following command in whisper-docker directory.

$ docker run -it -d -v $(pwd):/workspace/ --net host --name whisper whisper
$ docker exec -it whisper bash
root@hostname:/workspace# python transcribe.py --model='base' --input_file='input.mp3' --output_file='output.txt' --language='ja'

Reference

About

whisper with docker

License:MIT License


Languages

Language:Python 93.5%Language:Dockerfile 6.5%