Deployment Matrix

Choose the shortest path for a product, demo, benchmark, or internal workflow. Start with the smallest surface that satisfies the job, then move to heavier runtimes only when throughput, latency, or integration requirements demand it.

Quick decision table

PathBest forStart hereOperational notes
Colab notebookBrowser smoke tests, first evaluation, shareable demosColab quickstartNo local setup; first run downloads model files, GPU runtime is faster.
Python APINotebooks, offline jobs, first model evaluationTutorialLowest ceremony; caller owns batching, retries, and files.
llama.cpp / GGUF binaryNo-Python CPU or edge transcription; optional Windows/Linux Vulkan and Windows CUDAv0.2.2: all nine packages · Windows Vulkan · Windows CUDA · Linux Vulkan · docsCPU packages are the portable default. Select --backend vulkan only with a Vulkan package; the Windows CUDA package targets sm_86.
OpenAI-compatible APIPrivate speech API, agents, Dify/LangChain/AutoGen/n8n-style clientsOpenAI API · Python smoke test · JS/TS recipes · Workflow recipes · Gradio demo · Security guide · Postman collection · OpenAPI specEasiest integration for apps and workflow engines that already support OpenAI audio APIs or multipart HTTP nodes.
MOSS-Transcribe-DiarizeOffline multi-speaker meetings with joint transcription, timestamps, and anonymous speaker labelsMOSS deployment guide · Production hubThird-party OpenMOSS model; use offline HTTP, not realtime WebSocket, and do not add external VAD or diarization.
Docker Compose APIReproducible local smoke test or small internal serviceOpenAI API Docker docs · Python smoke testCPU by default; adapt the image before using CUDA in containers.
Kubernetes APIInternal speech API for cluster servicesKubernetes template · Python smoke testPrivate ClusterIP by default; add auth, TLS, network policy, and GPU scheduling before broader exposure.
Runtime WebSocket serviceLive captions, meetings, call-center streamsRuntime docsUse when partial results, endpointing, or long-lived audio streams matter.
vLLM accelerationHigher-throughput LLM-based ASR with Fun-ASR-NanovLLM guideUse for LLM decoder throughput; does not apply to non-autoregressive Paraformer.
MCP serverClaude/Cursor/desktop agent speech toolsMCP exampleGood when the ASR result should be exposed as a local tool.
Subtitle generatorSRT/VTT from long audio or videoSubtitle generatorUse verbose segments and speaker labels when readability matters.
Batch ASR scriptArchives, meetings, datasets, repeated offline runsBatch exampleAdd queueing, manifests, and retry logs for production use.
Triton runtimeSpecialized high-performance servingTriton runtime docsHeavier setup; choose when your team already operates Triton/GPU serving.

Common choices

Try FunASR in five minutes

Use the Colab quickstart for a browser-only smoke test, or use the Python API from the tutorial for local work. It is the shortest route for validating installation, model download, device selection, and output shape. If you are unsure which model to start with, use the model selection guide.

Ship a no-Python edge binary

Use the llama.cpp / GGUF runtime for a self-contained SenseVoice, Paraformer, or Fun-ASR-Nano binary. v0.2.2 publishes nine archives for Linux x64/arm64, macOS arm64, and Windows x64. Start with CPU; choose the matching Vulkan package or the Windows CUDA sm_86 package only when that backend is required.

Replace cloud transcription locally

Use the OpenAI-compatible API. Start with sensevoice, run the bash smoke test or Python smoke test, then connect existing SDK or HTTP clients using the client recipes or JavaScript/TypeScript recipes. For cluster rollout, use the Kubernetes template. For Dify, n8n, or webhook workers, use the workflow recipes. For GUI API checks, import the Postman collection or launch the Gradio demo; for gateways and developer portals, use the OpenAPI spec and the security guide.

Run a repeatable container demo

cd examples/openai_api
cp .env.example .env
docker compose up --build

Keep CPU mode until you have a CUDA-capable PyTorch/FunASR image.

Serve live audio

Use the runtime WebSocket service. Validate chunk size, VAD, endpointing, punctuation, speaker diarization, reconnect behavior, and client backpressure with real audio.

llama.cpp backend diagnostic contract

v0.2.2 prints three ordered stderr boundaries: initializing ... backend on ..., initialized ... backend on ...; resolving buffer type, and ... backend ready on .... The last line reached distinguishes backend creation from buffer-type resolution and later model execution. Include these lines, the exact archive name, GPU/driver, command, and exit code in reports.

The release adds deterministic backend checks and better failure localization; it does not claim that every AMD Windows 0xC0000005 crash is fixed. Android/Mali is not an official v0.2.2 prebuilt or validated target.

Readiness checklist

  • Pick a model alias and pin it in deployment notes.
  • Record FunASR version, model version, device, CUDA/PyTorch version, Docker image tag, and command line.
  • Run a short public smoke sample with the Python smoke test and at least one realistic private sample; for Kubernetes, verify first through kubectl port-forward using the deployment template.
  • Log audio duration, model, device, latency, response format, and error type for every request.
  • Add upload-size limits, authentication, TLS, and rate limits before exposing an API outside a trusted network; use the security guide to plan the boundary.
  • For streaming, test silence, noise, overlapping speakers, long sessions, reconnects, and slow clients.

When to open an issue

Use Deployment Help for runtime, Docker, vLLM, Triton, Android, browser, or agent integration problems. Include your deployment path, exact command/config, logs, model, device, and audio characteristics.