mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
add: 部署文件
This commit is contained in:
parent
c041b942c3
commit
514f567b44
2 changed files with 4 additions and 6 deletions
|
|
@ -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:
|
||||
- "难过的事讨厌的事丢脸的事全都集中起来,在这里,让水冲走所有的烦恼不就好了吗。"
|
||||
- "我还是觉得船到桥头自然直这句话最棒了。"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue