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
fix: keep source archives portable
LauraGPT3c129673c245
diff --git a/runtime/onnxruntime/realtime-mic b/runtime/onnxruntime/realtime-micdeleted file mode 160000index 3154dd5bb..000000000--- a/runtime/onnxruntime/realtime-mic+++ /dev/null@@ -1 +0,0 @@-Subproject commit 3154dd5bb6c319d62c777ddbbd777551d29aa544diff --git a/runtime/triton_gpu/model_repo_sense_voice_small/encoder/1/model.onnx b/runtime/triton_gpu/model_repo_sense_voice_small/encoder/1/model.onnxdeleted file mode 120000index a96cd8e17..000000000--- a/runtime/triton_gpu/model_repo_sense_voice_small/encoder/1/model.onnx+++ /dev/null@@ -1 +0,0 @@-/mnt/samsung-t7/yuekai/asr/funaudiollm/SenseVoice/model.onnx\ No newline at end of filediff --git a/runtime/triton_gpu/model_repo_sense_voice_small/scoring/chn_jpn_yue_eng_ko_spectok.bpe.model b/runtime/triton_gpu/model_repo_sense_voice_small/scoring/chn_jpn_yue_eng_ko_spectok.bpe.modeldeleted file mode 120000index 05c78e604..000000000--- a/runtime/triton_gpu/model_repo_sense_voice_small/scoring/chn_jpn_yue_eng_ko_spectok.bpe.model+++ /dev/null@@ -1 +0,0 @@-/mnt/samsung-t7/yuekai/asr/funaudiollm/SenseVoiceSmall/chn_jpn_yue_eng_ko_spectok.bpe.model\ No newline at end of filediff --git a/tests/test_source_archive_portability.py b/tests/test_source_archive_portability.pynew file mode 100644index 000000000..ea477a012--- /dev/null+++ b/tests/test_source_archive_portability.py@@ -0,0 +1,66 @@+from __future__ import annotations++from pathlib import Path+import os+import subprocess+import tarfile+++ROOT = Path(__file__).resolve().parents[1]+++def _tracked_entries() -> list[tuple[str, str]]:+ output = subprocess.check_output(+ ["git", "ls-files", "-s", "-z"], cwd=ROOT, text=False+ )+ entries = []+ for record in output.split(b"\0"):+ if not record:+ continue+ metadata, path = record.split(b"\t", 1)+ mode = metadata.split(b" ", 1)[0].decode()+ entries.append((mode, path.decode()))+ return entries+++def test_tracked_symlinks_are_portable_and_repository_has_no_gitlinks():+ gitlinks = []+ absolute_links = []+ for mode, relative_path in _tracked_entries():+ path = ROOT / relative_path+ if mode == "160000":+ gitlinks.append(relative_path)+ elif mode == "120000" and os.path.isabs(os.readlink(path)):+ absolute_links.append(relative_path)++ assert not gitlinks, f"source distribution must not contain gitlinks: {gitlinks}"+ assert not absolute_links, (+ "source distribution must not contain absolute symlinks: "+ f"{absolute_links}"+ )+++def test_git_archive_has_no_absolute_symlinks(tmp_path):+ archive_path = tmp_path / "funasr.tar"+ tree = subprocess.check_output(+ ["git", "write-tree"], cwd=ROOT, text=True+ ).strip()+ with archive_path.open("wb") as archive:+ subprocess.run(+ ["git", "archive", "--format=tar", tree],+ cwd=ROOT,+ check=True,+ stdout=archive,+ )++ with tarfile.open(archive_path) as archive:+ absolute_links = [+ member.name+ for member in archive.getmembers()+ if member.issym() and os.path.isabs(member.linkname)+ ]++ assert not absolute_links, (+ "git archive must be extractable by source installers without external links: "+ f"{absolute_links}"+ )