[base] ;开发环境配置 [setting] name = vecan终端 site = http://vecan.shemic.com/ copyright = 2019 dever.cc v1.0.0 ;打印路由表 route = True [db] rdb = mysql [mysql] host = 0.0.0.0 port = 3309 username = root password = 123456 dbname = office_convert prefix = oc charset = utf8 ;允许自动建表 create = True [redis] host = 0.0.0.0 password = dm_redis_123 port = 6379 name = office_file prefix = convert_ ;机器人配置 应该加到数据库中 ;https://github.com/wzpan/wukong-robot/blob/master/static/default.yml ;snowboy配置 [snowboy] hotword = wukong.pmdl hotword_switch = False on_hotword = 悟空别吵.pmdl off_hotword = 悟空醒醒.pmdl sensitivity = 0.5 silent_threshold = 15 recording_timeout = 50 ;勿扰模式 开始时间-结束时间 bother_enable = False ;bother_since = 1 ;bother_till = 100 ;自动聊天 active_mode = True [robot] asr = tencent ai = tuling tts = tencent nlu = baidu [espeak] appid = 1 [tencent] ;appid = 1252854083 ;secret_id = AKIDmQvEPYRP1Rh0CGdLF1b3MTsaBfnjQ5cP ;secret_key = wpazQgljXCgycEi18wbAapwsfi8QXSFu appid = 1253537070 secret_id = AKID7C7JK9QomcWJUjcsKbK8iLQjhju8fC3z secret_key = 2vhKRVSn4mXQ9PiT7eOtBqQhR5Z6IvPn region = ap-beijing voiceType = 0 language = 1 [baidu] appid = 9670645 api_key = qg4haN8b2bGvFtCbBGqhrmZy secret_key = 585d4eccb50d306c401d7df138bb02e7 dev_pid = 1936 voice = 2 per = 4 lan = zh [xunfei] appid = 5d1ec5f9 api_key = 2381d523ea042f632b2db844dd9896a1 voice_name = aisxping [ali] appKey = x04ujKJ7oRvDgt6h token = 7237029b69f146e89bac004bb61c09ee ;xiaoyun为女生,xiaogang为男生, 全部可选:http://suo.im/4x8RzQ voice = xiaoyun [tuling] key = 98f95153fb5c4684a5602b909949ba61 [emotibot] appid = 32ee80dddb36f1dc5356517503b3f55e location = 深圳 more = False ;以上为机器人配置 ;定义一些tornado的配置,可为空 [tornado] ;后台配置 [admin] port = 8087 debug = True ;请求的buffersize max_buffer_size = 210763776 ;子进程 process = 0 ;定义后台父级菜单 menu_parent = 站点设置: ;定义后台子级菜单 menu_child = 站点管理:/site/site,转换文件列表:/site/convert ;cookie cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo= login_url = /user/login ;是否使用安全cookie xsrf_cookies = True ;前台配置 [front] port = 8089 debug = True ;请求的buffersize max_buffer_size = 210763776 ;子进程 process = 0 ;支持手机版 mobile = True