Whisper-WebUi 安裝

 首先需要有 cuda 環境,以支持whisper model 進行語音轉文字。

nvidia-smi 看cuda 環境


另需ffmpeg 可以處理聲音從影像撥離的支持。

資料來源:

https://github.com/jhj0517/Whisper-WebUI?tab=readme-ov-file



miniconda 安裝方式及環境:


curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"

bash Miniconda3.sh


conda create —name whisper python=3.10

conda activate whisper


Whisper-WebUI 安裝方式:

git clone https://github.com/jhj0517/Whisper-WebUI.git

cd Whisper-WebUI

pip install -r requirements.txt


apt install ffpmeg 




start-webui.sh:


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/miniconda3/envs/whisper/lib/python3.10/site-packages/nvidia/cudnn/lib/

 

python app.py --server_name xxx.xxx.xxx --server_port 443  --ssl_verify True --ssl_keyfile /root/ssl/server.key --ssl_certfile /root/ssl/ettoday.pem





執行 nohup sh start-webui.sh &


在 browser 上執行 https://xxx.xxx.xxx

會得到如下圖:




留言