merge from master

This commit is contained in:
wjzdw007
2025-02-16 01:00:08 +08:00
54 changed files with 4210 additions and 328 deletions
+39 -4
View File
@@ -1,3 +1,7 @@
# 如果您是一名开发者,建议阅读以下内容。如果不是开发者,可以忽略这部分内容。
# 在开发中,建议将【config.yaml】复制一份,改成【.config.yaml】。 系统会优先读取【.config.yaml】文件的配置。
# 这样做,可以避免在提交代码的时候,错误地提交密钥信息,保护您的密钥安全。
# 服务器基础配置(Basic server configuration)
server:
# 服务器监听地址和端口(Server listening address and port)
@@ -18,11 +22,11 @@ server:
#allowed_devices:
# - "24:0A:C4:1D:3B:F0" # MAC地址列表
manager:
# 是否启用管理后台
# 目前这个模块还在开发中,建议:不要修改enabled选项
enabled: false
ip: 0.0.0.0
port: 8001
# 请把密码设置10位数,且不能包含xiaozhi这几个字符
password: 123456
port: 8002
xiaozhi:
type: hello
@@ -41,6 +45,9 @@ prompt: |
# 使用完声音文件后删除文件(Delete the sound file when you are done using it)
delete_audio: true
# 是否启用私有配置(Enable private configuration),启用后可以每个设备有不同的配置
use_private_config: false
CMD_exit:
- "退出"
- "关闭"
@@ -144,4 +151,32 @@ TTS:
voice: 7426720361733046281
output_file: tmp/
access_token: 你的coze api key
response_format: wav
response_format: wav
FishSpeech:
# 定义TTS API类型
#启动tts方法:
#python -m tools.api_server
#--listen 0.0.0.0:8080
#--llama-checkpoint-path "checkpoints/fish-speech-1.5"
#--decoder-checkpoint-path "checkpoints/fish-speech-1.5/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"
#--decoder-config-name firefly_gan_vq
#--compile
type: fishspeech
output_file: tmp/
response_format: wav
reference_id: null
reference_audio: ["/tmp/test.wav",]
reference_text: ["你弄来这些吟词宴曲来看,还是这些混话来欺负我。",]
normalize: true
max_new_tokens: 1024
chunk_length: 200
top_p: 0.7
repetition_penalty: 1.2
temperature: 0.7
streaming: false
use_memory_cache: "on"
seed: null
channels: 1
rate: 44100
api_key: "YOUR_API_KEY"
api_url: "http://127.0.0.1:8080/v1/tts"