82 lines
2.9 KiB
Plaintext
82 lines
2.9 KiB
Plaintext
|
|
|||
|
[key]
|
|||
|
#funasr / ali / sensevoice
|
|||
|
#建议使用funasr,请依照asr/funasr/README>md的说明启动
|
|||
|
ASR_mode = funasr
|
|||
|
#ASR二选一(需要运行fay/test/funasr服务)集成达摩院asr项目、感谢中科大脑算法工程师张聪聪提供集成代码
|
|||
|
local_asr_ip=127.0.0.1
|
|||
|
local_asr_port=10197
|
|||
|
|
|||
|
# ASR二选一(第1次运行建议用这个,免费3个月), 阿里云 实时语音识别 服务密钥(必须)https://ai.aliyun.com/nls/trans
|
|||
|
ali_nls_key_id=
|
|||
|
ali_nls_key_secret=
|
|||
|
ali_nls_app_key=
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#tts类型(切换请重新选择所需要的声音)azure、ali、gptsovits、volcano、gptsovits_v3
|
|||
|
tts_module=azure
|
|||
|
|
|||
|
# 微软 文字转语音 服务密钥(非必须,使用可产生不同情绪的音频)https://azure.microsoft.com/zh-cn/services/cognitive-services/text-to-speech/
|
|||
|
ms_tts_key=
|
|||
|
ms_tts_region=
|
|||
|
|
|||
|
# 阿里云 文字转语音 服务密钥 https://ai.aliyun.com/nls/trans
|
|||
|
ali_tss_key_id=
|
|||
|
ali_tss_key_secret=
|
|||
|
ali_tss_app_key=
|
|||
|
|
|||
|
# Doubao-语音合成 服务密钥 https://www.volcengine.com/product/voice-tech
|
|||
|
volcano_tts_appid=
|
|||
|
volcano_tts_access_token=
|
|||
|
volcano_tts_cluster=volcano_tts
|
|||
|
#可为空,为空时读取选择的音色
|
|||
|
volcano_tts_voice_type=
|
|||
|
|
|||
|
#情绪分析选择(baidu(服务秘钥为空时,默认不使用情绪分析),cemotion二选一(建议第一次运行cemotion时,先运行/test/test_cemotion.py去下载所需文件))
|
|||
|
ltp_mode = baidu
|
|||
|
|
|||
|
#百度 情绪分析 服务秘钥 https://cloud.baidu.com/
|
|||
|
baidu_emotion_app_id=
|
|||
|
baidu_emotion_api_key=
|
|||
|
baidu_emotion_secret_key=
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#NLP多选一:lingju、gpt、rasa、VisualGLM、rwkv、xingchen、langchain 、ollama_api、privategpt、coze
|
|||
|
chat_module= gpt
|
|||
|
|
|||
|
#灵聚 服务密钥(NLP多选1) https://open.lingju.ai
|
|||
|
lingju_api_key=
|
|||
|
lingju_api_authcode=
|
|||
|
|
|||
|
#gpt 服务密钥(NLP多选1) https://openai.com/
|
|||
|
#免费key只支持gpt 3.5 ,若想使用其他model,可到 https://api.zyai.online/register/?aff_code=MyCI 下购买申请。
|
|||
|
gpt_api_key=sk-4Spva89SGSikpacz3a70Dd081cA84c9a8dEd345f19C9BdFc
|
|||
|
#gpt base url 如:https://api.openai.com/v1、https://rwkv.ai-creator.net/chntuned/v1、https://api.fastgpt.in/api/v1、https://api.moonshot.cn/v1
|
|||
|
gpt_base_url=https://api.zyai.online/v1
|
|||
|
#gpt model engine 如:gpt-3.5-turbo、moonshot-v1-8k
|
|||
|
gpt_model_engine=gpt-3.5-turbo
|
|||
|
|
|||
|
#gpt(fastgpt)代理(可为空,填写例子:127.0.0.1:7890)
|
|||
|
proxy_config=
|
|||
|
|
|||
|
#通义星尘 服务密钥(NLP多选1) https://xingchen.aliyun.com/
|
|||
|
xingchen_api_key=
|
|||
|
xingchen_characterid=
|
|||
|
|
|||
|
#ollama服务 (NLP多选1)
|
|||
|
#ollama_ip 可以填写 127.0.0.1 或者 localhost
|
|||
|
ollama_ip = localhost
|
|||
|
#ollama_model 可以填写 qwen:latest , llama2:latest , yi:lastest , pi:latest , gemma:latest
|
|||
|
ollama_model = gemma:latest
|
|||
|
|
|||
|
#coze api https://www.coze.cn/(NLP多选1)
|
|||
|
coze_bot_id=
|
|||
|
coze_api_key=
|
|||
|
|
|||
|
#启动模式common、web(服务器或docker请使用web方式,通过http://127.0.0.1:5000控制)
|
|||
|
start_mode=web
|
|||
|
|
|||
|
#服务器主动地址
|
|||
|
fay_url = 127.0.0.1
|