mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
59 lines
2.5 KiB
Python
59 lines
2.5 KiB
Python
import Ref_Audio_Selector.config_param.config_manager as config_manager
|
|
|
|
config = config_manager.get_config()
|
|
|
|
# [Base]
|
|
# 服务端口号
|
|
server_port = int(config.get_base('server_port'))
|
|
# 参考音频目录
|
|
reference_audio_dir = config.get_base('reference_audio_dir')
|
|
# 临时文件目录
|
|
temp_dir = config.get_base('temp_dir')
|
|
|
|
# [Log]
|
|
# 日志保存目录路径
|
|
log_dir = config.get_log('log_dir')
|
|
# 日志级别 CRITICAL、FATAL、ERROR、WARNING、WARN、INFO、DEBUG、NOTSET、
|
|
log_level = config.get_log('log_level')
|
|
# 函数时间消耗日志打印类型 file 打印到文件; close 关闭
|
|
time_log_print_type = config.get_log('time_log_print_type')
|
|
# 函数时间消耗日志保存目录路径
|
|
time_log_print_dir = config.get_log('time_log_print_dir')
|
|
|
|
# [AudioSample]
|
|
# list转换待选参考音频目录
|
|
list_to_convert_reference_audio_dir = config.get_audio_sample('list_to_convert_reference_audio_dir')
|
|
# 音频相似度目录
|
|
audio_similarity_dir = config.get_audio_sample('audio_similarity_dir')
|
|
# 是否开启基准音频预采样 true false
|
|
enable_pre_sample = config.get_audio_sample('enable_pre_sample')
|
|
|
|
# [Inference]
|
|
# 默认测试文本位置
|
|
default_test_text_path = config.get_inference('default_test_text_path')
|
|
# 推理音频目录
|
|
inference_audio_dir = config.get_inference('inference_audio_dir')
|
|
# 推理音频文本聚合目录
|
|
inference_audio_text_aggregation_dir = config.get_inference('inference_audio_text_aggregation_dir')
|
|
# 推理音频情绪聚合目录
|
|
inference_audio_emotion_aggregation_dir = config.get_inference('inference_audio_emotion_aggregation_dir')
|
|
|
|
# [ResultCheck]
|
|
# asr输出文件
|
|
asr_filename = config.get_result_check('asr_filename')
|
|
# 文本相似度输出目录
|
|
text_similarity_output_dir = config.get_result_check('text_similarity_output_dir')
|
|
# 文本情绪平均相似度报告文件名
|
|
text_emotion_average_similarity_report_filename = config.get_result_check('text_emotion_average_similarity_report_filename')
|
|
# 文本相似度按情绪聚合明细文件名
|
|
text_similarity_by_emotion_detail_filename = config.get_result_check('text_similarity_by_emotion_detail_filename')
|
|
# 文本相似度按文本聚合明细文件名
|
|
text_similarity_by_text_detail_filename = config.get_result_check('text_similarity_by_text_detail_filename')
|
|
|
|
# [AudioConfig]
|
|
# 默认模板文件位置
|
|
default_template_path = config.get_audio_config('default_template_path')
|
|
# 参考音频配置文件名
|
|
reference_audio_config_filename = config.get_audio_config('reference_audio_config_filename')
|
|
|