Spaces:
Running
Running
Download modules/api/impl/model/audio_model.py from ProbablyBlue/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/api/impl/model/audio_model.py
- Command line
-
hf download hf://spaces/ProbablyBlue/ChatTTS-Forge/modules/api/impl/model/audio_model.py
-
curl -L -o audio_model.py https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/api/impl/model/audio_model.py
299 Bytes
| from enum import Enum | |
| from pydantic import BaseModel | |
| class AudioFormat(str, Enum): | |
| mp3 = "mp3" | |
| wav = "wav" | |
| class AdjustConfig(BaseModel): | |
| pitch: float = 0 | |
| speed_rate: float = 1 | |
| volume_gain_db: float = 0 | |
| # 响度均衡 | |
| normalize: bool = True | |
| headroom: float = 1 | |