项目
在 GitHub 查看
saharmor/whisper-playground
关于
使用 OpenAI 的 Whisper 构建实时语音转文字 Web 应用 https://openai.com/blog/whisper/
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Whisper Playground
Instantly build real-time speech2text apps in 99 languages using faster-whisper, Diart, and Pyannote
Try it via the online demo
https://github.com/ethanzrd/whisper-playground/assets/79014814/44a9bcf0-e374-4c71-8189-1d99824fbdc5
Setup
- Have
CondaandYarnon your device - Clone or fork this repository
- Install the backend and frontend environment
sh install_playground.sh - Review config.py to make sure the transcription device and compute type match your setup. Review config.js to make sure it conforms to the backend config and that the backend address is correct.
- Run the backend
cd backend && python server.py - In a different terminal, run the React frontend
cd interface && yarn start
Access to Pyannote Models
This repository uses libraries based on pyannote.audio models, which are stored in the Hugging Face Hub. You must accept their terms of use before using them. Note: You need to have a Hugging Face account to use pyannote
- Accept terms for the
pyannote/segmentationmodel - Accept terms for the
pyannote/embeddingmodel - Accept terms for the
pyannote/speaker-diarizationmodel - Install huggingface-cli and log in with your user access token (can be found in Settings -> Access Tokens)
Parameters
- Model Size: Choose the model size, from tiny to large-v2.
- Language: Select the language you will be speaking in.
- Transcription Timeout: Set the number of seconds the application will wait before transcribing the current audio data.
- Beam Size: Adjust the number of transcriptions generated and considered, which affects accuracy and transcription generation time.
- Transcription Method: Choose "real-time" for real-time diarization and transcriptions, or "sequential" for periodic transcriptions with more context.
Troubleshooting
- On MacOS, if building the wheel for safetensors fails, install Rust
brew install rustand try again.
Known Bugs
- In the sequential mode, there may be uncontrolled speaker swapping.
- In real-time mode, audio data not meeting the transcription timeout won't be transcribed.
This repository hasn't been tested for all languages; please create an issue if you encounter any problems.
License
This repository and the code and model weights of Whisper are released under the MIT License.
探索相关项目
加载中…