Update api.py

This commit is contained in:
XXXXRT666 2024-04-03 13:41:22 +01:00 committed by GitHub
parent 9f2f0a2c4a
commit b50ab5419f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
api.py
View File

@ -18,12 +18,12 @@
`-p` - `绑定端口, 默认9880, 可在 config.py 中指定`
`-fp` - `覆盖 config.py 使用全精度`
`-hp` - `覆盖 config.py 使用半精度`
`-sm` - `流式返回模式, 默认不启用, "close","c", "normal","n", "keepalive","k"`
`-mt` - `返回的音频编码格式, 流式默认ogg, 非流式默认wav, "wav", "ogg", "aac"`
`-cp` - `文本切分符号设定, 默认为空, ",.,。"字符串的方式传入`
`-bs` - `批处理大小,默认为1`
`-rf` - `碎片返回,约等于流`
`-sb` - `分桶处理,可能可以减少计算量,与碎片返回冲突`
`-fa` - `flash attention`
`-hb` - `cnhubert路径`
`-b` - `bert路径`