Skip to content

Commit 68765ad

Browse files
committed
refactor(api): 注释掉 sample_rate 参数
- 在 SiliconFlowClient 类中的 synthesize 方法中,注释掉了 sample_rate 参数 - 这是因为siliconflow接口不支持该参数
1 parent a08c51c commit 68765ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/silicon_flow_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def create_speech(self, text: str, **kwargs) -> bytes:
7575
"input": text,
7676
"voice": kwargs.get('voice_id') or self.DEFAULT_VOICES[kwargs.get('model', self.DEFAULT_MODEL)][0],
7777
"response_format": kwargs.get('response_format', "mp3"),
78-
"sample_rate": int(kwargs.get('sample_rate', 32000)),
78+
#"sample_rate": int(kwargs.get('sample_rate', 32000)),
7979
"stream": True,
8080
"speed": float(kwargs.get('speed', 1.0)),
8181
"gain": float(kwargs.get('gain', 0.0))

0 commit comments

Comments
 (0)