| | |
| | | # @Author: SWHL |
| | | # @Contact: liekkaskono@163.com |
| | | import os.path |
| | | import traceback |
| | | from pathlib import Path |
| | | from typing import List, Union, Tuple |
| | | |
| | | import librosa |
| | | import numpy as np |
| | | |
| | | from utils.utils import (CharTokenizer, Hypothesis, ONNXRuntimeError, |
| | | from .utils.utils import (CharTokenizer, Hypothesis, ONNXRuntimeError, |
| | | OrtInferSession, TokenIDConverter, get_logger, |
| | | read_yaml) |
| | | from utils.postprocess_utils import sentence_postprocess |
| | | from utils.frontend import WavFrontend |
| | | from .utils.postprocess_utils import sentence_postprocess |
| | | from .utils.frontend import WavFrontend |
| | | |
| | | logging = get_logger() |
| | | |
| | |
| | | text = texts[0] |
| | | # text = self.tokenizer.tokens2text(token) |
| | | return text |
| | | |
| | | |