{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "modelscope-funasr--run-a-local-openai-compatible-transcription-server-with-funa",
 "repo": "modelscope/FunASR",
 "repo_url": "https://github.com/modelscope/FunASR",
 "repo_slug": "modelscope-funasr",
 "title": "Run a local OpenAI style transcription API",
 "page_title": "How to run a local OpenAI style transcription API with FunASR",
 "summary": "Start funasr-server on loopback with SenseVoice on CPU and call it like the OpenAI audio transcriptions endpoint.",
 "who": "A developer wiring speech to text into an app or agent without a cloud ASR bill.",
 "problem": "Cloud transcription APIs cost money and send audio off your machine.",
 "outcome": "A local /v1/audio/transcriptions endpoint returning verbose JSON.",
 "steps": [
  "Create an env with `python3.11 -m venv .venv-funasr-http` and `. .venv-funasr-http/bin/activate`",
  "Install with `python -m pip install torch torchaudio` and `python -m pip install funasr fastapi uvicorn python-multipart`",
  "Start the server with `funasr-server --host 127.0.0.1 --port 8000 --model sensevoice --device cpu`",
  "In a second terminal, POST a wav file to http://127.0.0.1:8000/v1/audio/transcriptions with model=sensevoice and response_format=verbose_json, as in the README curl example"
 ],
 "agent_prompt": "Using modelscope/FunASR, set up the Python 3.11 venv, start `funasr-server --host 127.0.0.1 --port 8000 --model sensevoice --device cpu`, and send <my wav file> to /v1/audio/transcriptions with curl.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Wait for the model download and server startup before sending the first request.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "",
 "requirements": [
  "Python >= 3.8 with PyTorch and torchaudio installed first, then `pip install funasr`",
  "A CPU is enough for SenseVoiceSmall; use device cuda only after confirming torch.cuda.is_available() prints True",
  "Python 3.11 plus fastapi, uvicorn and python-multipart for the local HTTP server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "security",
   "notice": "The service is unauthenticated, so keep it on 127.0.0.1 as the README advises."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/modelscope-funasr/run-a-local-openai-compatible-transcription-server-with-funa/",
 "md": "https://dedupedai.com/use-cases/modelscope-funasr/run-a-local-openai-compatible-transcription-server-with-funa/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/modelscope-funasr--run-a-local-openai-compatible-transcription-server-with-funa.json",
 "api_version": "v1"
}
