add: 部署文件

This commit is contained in:
lizhongxiang 2025-02-26 17:43:34 +08:00
parent c041b942c3
commit 514f567b44
2 changed files with 4 additions and 6 deletions

View file

@ -92,10 +92,10 @@ TTS:
FishSpeechTTS:
url: http://192.168.101.242:10000/tts-fishspeech/v1/tts
ref_audios:
- /opt/xiaozhi-es32-server/audio_ref/shinchan.wav
- /opt/xiaozhi-es32-server/audio_ref/shinchan2.wav
- /opt/xiaozhi-es32-server/audio_ref/shinchan3.wav
- /opt/xiaozhi-es32-server/audio_ref/shinchan4.wav
- audio_ref/shinchan.wav
- audio_ref/shinchan2.wav
- audio_ref/shinchan3.wav
- audio_ref/shinchan4.wav
ref_texts:
- "难过的事讨厌的事丢脸的事全都集中起来,在这里,让水冲走所有的烦恼不就好了吗。"
- "我还是觉得船到桥头自然直这句话最棒了。"

View file

@ -39,8 +39,6 @@ def get_latest_checkpoint(path: Path | str) -> Path | None:
def audio_to_bytes(file_path):
if not file_path or not Path(file_path).exists():
return None
with open(file_path, "rb") as wav_file:
wav = wav_file.read()
return wav