mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-22 08:51:01 +00:00
Streaming transcriber with whisper
.github | ||
whisper_streaming | ||
.gitignore | ||
.markdownlint.json | ||
LICENSE | ||
LICENSE.whisper | ||
Makefile | ||
package-lock.json | ||
package.json | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
setup.cfg |
whisper_streaming (beta version)
Streaming transcriber with whisper. Transcribing in real time, enough machine power is needed.
Example
# Setup
git clone https://github.com/shirayu/whisper_streaming.git
cd whisper_streaming
poetry install --only main
# If you use GPU, install proper torch and torchaudio with "poetry run pip install -U"
# Example : torch for CUDA 11.6
poetry run pip install -U torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
# Run in English
poetry run whisper_streaming --language en --model base
--help
shows full options--language
sets the language to transcribe. The list of languages are shown withpoetry run whisper_streaming -h
-t
sets temperatures to decode. You can set several like (-t 0.0 -t 0.1 -t 0.5
), but too many temperatures exhaust decoding time--debug
outputs logs for debug
Tips
PortAudio Error
If you get OSError: PortAudio library not found
: Install portaudio
# Ubuntu
sudo apt-get install portaudio19-dev
License
- MIT License
- Some codes are ported from the original whisper. Its license is also MIT License