CoolFace
Apppublic

hchcsuim/Automatic-Speech-Recognition-Speech-to-Text

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
8likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Clone repository

git clone https://huggingface.co/spaces/hchcsuim/Automatic-Speech-Recognition-Speech-to-Text cd Automatic-Speech-Recognition-Speech-to-Text

windows 安裝 ffmpeg

https://ffmpeg.org/download.html 下載版本 ffmpeg-git-full.7z 解壓縮到 C:\ffmpeg 加入環境變數 系統變數 path C:\ffmpeg\bin

要在電腦環境先安裝 python 3.10

Create and activate Python environment

python -m venv env source env/bin/activate # for linux env\Scripts\activate # for windows

或者在 vscode 手動切換預設環境

Ctrl+Shift+P Python: Select Interpreter

Install dependencies

requirements.txt is for Hugging Face Spaces

pip install -r requirements_local.txt

驗證 GPU 支援

(envnew) C:\Users\user\Automatic-Speech-Recognition-Speech-to-Text>python import torch print(f"CUDA available: {torch.cuda.isavailable()}") if torch.cuda.isavailable(): print(f"GPU: {torch.cuda.getdevice_name(0)}")

Run the app

python app.py