Skip to content

Feature: Add FunASR as a self-hosted ASR backend #10073

Description

@LauraGPT

Implementation status

PR #10090 adds a local FunASR backend to LocalAI's existing audio-transcription API.

The current backend:

  • loads iic/SenseVoiceSmall through FunASR;
  • provides explicit CPU, CUDA 11, CUDA 12, and Intel profiles;
  • includes Torch and Torchaudio in profiles that install Torch;
  • accepts LocalAI's language and transcription request options;
  • strips SenseVoice language, emotion, and audio-event markup before returning OpenAI-compatible transcript text;
  • runs through LocalAI's existing backend install, test, gRPC LoadModel, and AudioTranscription paths.

SenseVoiceSmall supports Mandarin, Cantonese, English, Japanese, and Korean. Long-audio segmentation can be composed with the separate FSMN-VAD model. Speaker diarization is not a native SenseVoice output and is not claimed by this backend.

Validation

The PR has been exercised on ind-gpu8 with:

  • six focused tests;
  • real CPU and CUDA SenseVoiceSmall inference;
  • the actual LocalAI installer and shared unit-test helper;
  • gRPC model loading and transcription;
  • shell syntax, Python compilation, and diff checks.

The PR is clean and mergeable; its remaining gate is maintainer review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions