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
Guard llama.cpp GGUF website links (#3349)
zhifu gaof4327e8b23ab
diff --git a/scripts/check_funasr_website_static.py b/scripts/check_funasr_website_static.pyindex ab8e6195f..27823f684 100755--- a/scripts/check_funasr_website_static.py+++ b/scripts/check_funasr_website_static.py@@ -54,10 +54,21 @@ PAGE_CONTRACTS: dict[str, PageContract] = {required=("recommended funasr >= 1.3.26", "/en/donors.html"),forbidden=("1.3.10",),),+ f"{BASE_URL}/llama-cpp.html": PageContract(+ required=(+ "runtime-llamacpp-v0.1.8",+ "funasr-llamacpp-linux-x64-vulkan.tar.gz",+ "funasr-llamacpp-windows-x64-cuda.zip",+ "Fun-ASR-Nano",+ "GGUF",+ ),+ forbidden=("runtime-llamacpp-v0.1.1",),+ ),f"{BASE_URL}/blog/funasr-llama-cpp-whisper-cpp-alternative.html": PageContract(required=("runtime-llamacpp-v0.1.8","funasr-llamacpp-linux-x64-vulkan.tar.gz",+ "Fun-ASR-Nano-GGUF","Vulkan / CUDA","/donors.html",),@@ -67,6 +78,7 @@ PAGE_CONTRACTS: dict[str, PageContract] = {required=("runtime-llamacpp-v0.1.8","funasr-llamacpp-linux-x64-vulkan.tar.gz",+ "Fun-ASR-Nano-GGUF","Vulkan / CUDA","/en/donors.html",),diff --git a/tests/test_check_funasr_website_static.py b/tests/test_check_funasr_website_static.pyindex 7139261ca..acf731c26 100644--- a/tests/test_check_funasr_website_static.py+++ b/tests/test_check_funasr_website_static.py@@ -48,15 +48,24 @@ def test_website_contract_accepts_current_public_copy():pip install -U funasr # recommended funasr >= 1.3.26<a href="/en/donors.html">Thanks</a>""",+ "https://www.funasr.com/llama-cpp.html": """+ runtime-llamacpp-v0.1.8+ funasr-llamacpp-linux-x64-vulkan.tar.gz+ funasr-llamacpp-windows-x64-cuda.zip+ Fun-ASR-Nano+ GGUF+ ""","https://www.funasr.com/blog/funasr-llama-cpp-whisper-cpp-alternative.html": """runtime-llamacpp-v0.1.8funasr-llamacpp-linux-x64-vulkan.tar.gz+ Fun-ASR-Nano-GGUFVulkan / CUDA<a href="/donors.html">功德榜</a>""","https://www.funasr.com/en/blog/funasr-llama-cpp-whisper-cpp-alternative.html": """runtime-llamacpp-v0.1.8funasr-llamacpp-linux-x64-vulkan.tar.gz+ Fun-ASR-Nano-GGUFVulkan / CUDA<a href="/en/donors.html">Thanks</a>""",@@ -75,6 +84,7 @@ def test_website_contract_reports_stale_runtime_and_star_copy():pages["https://www.funasr.com/blog/funasr-llama-cpp-whisper-cpp-alternative.html"] = "runtime-llamacpp-v0.1.1"+ pages["https://www.funasr.com/llama-cpp.html"] = "runtime-llamacpp-v0.1.1"failures = checker.validate_pages(pages)@@ -84,6 +94,10 @@ def test_website_contract_reports_stale_runtime_and_star_copy():and "forbidden `runtime-llamacpp-v0.1.1`" in failurefor failure in failures)+ assert any(+ "llama-cpp.html" in failure and "forbidden `runtime-llamacpp-v0.1.1`" in failure+ for failure in failures+ )def test_fetch_pages_retries_transient_url_errors(monkeypatch):