Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
timestamp func bug fix
shixian.shi03250ae63491
diff --git a/funasr/utils/timestamp_tools.py b/funasr/utils/timestamp_tools.pyindex f966aeee9..317c2239b 100644--- a/funasr/utils/timestamp_tools.py+++ b/funasr/utils/timestamp_tools.py@@ -5,6 +5,8 @@ import numpy as npfrom typing import Any, List, Tuple, Uniondef time_stamp_lfr6_pl(us_alphas, us_cif_peak, char_list, begin_time=0.0, end_time=None):+ if not len(char_list):+ return []START_END_THRESHOLD = 5TIME_RATE = 10.0 * 6 / 1000 / 3 # 3 times upsampledif len(us_alphas.shape) == 3: