File size: 299 Bytes
d5d0921
 
 
 
 
 
 
 
 
 
 
 
 
 
bed01bd
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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