main
HuangHai 3 months ago
parent 0a17b2831e
commit af96259f57

@ -44,7 +44,7 @@ def setup_logging():
log_format_file = log_format_file.replace("{version}", SERVER_VERSION)
log_format_file = log_format_file.replace("{selected_module}", selected_module_str)
log_level = log_config.get("log_level", "INFO")
log_level = log_config.get("log_level", "DEBUG")
log_dir = log_config.get("log_dir", "tmp")
log_file = log_config.get("log_file", "server.log")
data_dir = log_config.get("data_dir", "data")

@ -94,6 +94,8 @@ class ASRProvider(ASRProviderBase):
text = rich_transcription_postprocess(result[0]["text"])
logger.bind(tag=TAG).info(f"语音识别耗时: {time.time() - start_time:.3f}s | 结果: {text}")
#【黄海注释】准备在这里进行嵌入代码,把文字+声音的关系记录下来,让用户选择是哪个人进行声纹匹配
return text, file_path
except Exception as e:

@ -24,3 +24,8 @@ D:\dsWork\QingLong\XiaoZhi\xiaozhi-esp32-server\main\xiaozhi-server\core\provide
"""语音转文本主处理逻辑"""
file_path = None
try:
准备在第97行嵌入代码
#【黄海注释】准备在这里进行嵌入代码,把文字+声音的关系记录下来,让用户选择是哪个人进行声纹匹配
return text, file_path
Loading…
Cancel
Save