Merge branch 'py_link_huoshan' of https://github.com/xinnan-tech/xiaozhi-esp32-server into py_link_huoshan

This commit is contained in:
Sakura-RanChen 2025-07-09 17:05:02 +08:00
commit 6bfb5f1340

View file

@ -175,12 +175,12 @@ def _get_random_play_prompt(song_name):
# 移除文件扩展名
clean_name = os.path.splitext(song_name)[0]
prompts = [
f"正在为您播放,{clean_name}",
f"请欣赏歌曲,{clean_name}",
f"即将为您播放,{clean_name}",
f"正在为您播放,《{clean_name}》",
f"请欣赏歌曲,《{clean_name}》",
f"即将为您播放,《{clean_name}》",
f"现在为您带来,《{clean_name}》",
f"让我们一起聆听,《{clean_name}》",
f"接下来请欣赏,{clean_name}",
f"接下来请欣赏,《{clean_name}》",
f"此刻为您献上,《{clean_name}》",
]
# 直接使用random.choice,不设置seed