25 lines
684 B
Python
25 lines
684 B
Python
# -*- coding: utf-8 -*-
|
||
"""
|
||
工具模块
|
||
包含通用工具函数和辅助功能
|
||
"""
|
||
|
||
from .common import generate_task_id, validate_text_input, parse_language_code
|
||
from .audio import save_audio_array, load_audio_file, generate_temp_audio_path, cleanup_temp_file
|
||
from .text_processing import apply_itn_to_text, normalize_asr_text
|
||
|
||
__all__ = [
|
||
# 通用工具函数
|
||
"generate_task_id",
|
||
"validate_text_input",
|
||
"parse_language_code",
|
||
# 音频工具函数
|
||
"save_audio_array",
|
||
"load_audio_file",
|
||
"generate_temp_audio_path",
|
||
"cleanup_temp_file",
|
||
# ITN(逆文本标准化)功能 - 基于itntext
|
||
"apply_itn_to_text",
|
||
"normalize_asr_text",
|
||
]
|