Skip to content

Commit 011637e

Browse files
committed
doc: fix fish info
Signed-off-by: yihong0618 <[email protected]>
1 parent f545887 commit 011637e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

xiao_config.yaml.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ volc_access_key: ""
8888
volc_secret_key: ""
8989

9090
# ===== 语音设置 =====
91-
# 使用的 TTS 类型,目前支持 mi, edge, openai, azure, volc, baidu, google, minimax
91+
# 使用的 TTS 类型,目前支持 mi, edge, openai, azure, volc, baidu, google, minimax, fish
9292
tts: mi
9393
# TTS 参数字典,参考 https://github.com/frostming/tetos 获取可用参数
9494
tts_options: {}

xiaogpt/config.py

-2
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,10 @@ def from_options(cls, options: argparse.Namespace) -> Config:
129129
"secret_key", config.get("volc_secret_key")
130130
)
131131
elif config.get("tts") == "fish":
132-
print("fish")
133132
config.setdefault("tts_options", {}).setdefault(
134133
"api_key", config.get("fish_api_key")
135134
)
136135
if voice := config.get("fish_voice_key"):
137-
print("fish voice")
138136
config.setdefault("tts_options", {}).setdefault("voice", voice)
139137

140138
return cls(**config)

0 commit comments

Comments
 (0)