Artrajz / vits-simple-api

A simple VITS HTTP API, developed by extending Moegoe with additional features.
GNU Affero General Public License v3.0
822 stars 121 forks source link

gpt sovits,你好,官方推理上是有按模式切分的参数的 #154

Closed kingslyChen closed 7 months ago

kingslyChen commented 8 months ago

运行环境

问题描述

gpt sovits,你好,官方推理上是有按模式切分的参数的,现在接口有这个参数么?

问题复现步骤

Artrajz commented 8 months ago

这里用的是按字数切分,可以设定不同的segment_size实现不同的切法,比如segment_size=30大概是一段四句话,segment_size=17大概是一段两句话

gushuaialan1 commented 8 months ago

这里用的是按字数切分,可以设定不同的segment_size实现不同的切法,比如segment_size=30大概是一段四句话,segment_size=17大概是一段两句话

大佬,更新了,ngrok之后如果没有配置 ngrok 。下次启动就会报错,能不能启动的时候pass检测,ngrok

Artrajz commented 8 months ago

未配置就不会启用ngrok呀,看看报错是不是说没有下载ngrok依赖

gushuaialan1 commented 8 months ago

未配置就不会启用ngrok呀,看看报错是不是说没有下载ngrok依赖

User 2024-03-20 13:12:49 [INFO] Additional phrases loaded from D:\vits-simple-api-windows-gpu-v0.6.10\data\phrases_dict.txt [in phrases_dict.load_phrases_from_file:27] 2024-03-20 13:12:49 [DEBUG] Looking up time zone info from registry [in win32._get_localzone_name:58] 2024-03-20 13:12:49 [INFO] Scheduler started [in base.start:181] 2024-03-20 13:12:49 [INFO] Added job "clean_task" to job store "default" [in base._real_add_job:895] 2024-03-20 13:12:49 [DEBUG] Using proactor: IocpProactor [in proactor_events.init:630] 2024-03-20 13:12:50 [ERROR] Uncaught exception [in logger.handle_exception:90] Traceback (most recent call last): File "D:\vits-simple-api-windows-gpu-v0.6.10\app.py", line 77, in listener = ngrok.forward(config.http_service.port, authtoken=config.ngrok_config.auth_token) File "ngrok_wrapper", line 16, in run File "D:\vits-simple-api-windows-gpu-v0.6.10\py310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\vits-simple-api-windows-gpu-v0.6.10\py310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "ngrok_wrapper", line 7, in wrap ValueError: ('failed to connect session', 'The authtoken you specified does not look like a proper ngrok tunnel authtoken.\nYour authtoken: None\nInstructions to install your authtoken are on your ngrok dashboard:\nhttps://dashboard.ngrok.com/get-started/your-authtoken', 'ERR_NGROK_105')

没配置就会报这个错,配置了就能正常启动

Artrajz commented 8 months ago

发生报错时config.yaml中的ngrok是怎么配置的,我测试写null和""均不会报错

gushuaialan1 commented 8 months ago

发生报错时config.yaml中的ngrok是怎么配置的,我测试写null和""均不会报错

填的是 null 运行时就自 动改成了 None http_service: host: 0.0.0.0 port: 23456 debug: false ngrok_config: auth_token: None

改成"" 可以正常运行

Artrajz commented 8 months ago

填的是 null 运行时就自 动改成了 None

已定位问题并修复 https://github.com/Artrajz/vits-simple-api/commit/c7790414a70cf57a23fc37ba59cd1ff1514cb7bd