Skip to content

feat: add FunASR (SenseVoice) STT plugin#603

Open
Nithish-github wants to merge 2 commits into
GetStream:mainfrom
Nithish-github:feat/funasr-stt
Open

feat: add FunASR (SenseVoice) STT plugin#603
Nithish-github wants to merge 2 commits into
GetStream:mainfrom
Nithish-github:feat/funasr-stt

Conversation

@Nithish-github

@Nithish-github Nithish-github commented Jun 16, 2026

Copy link
Copy Markdown

Self-hosted, in-process speech-to-text via FunASR's SenseVoice model, mirroring the fast_whisper plugin. Runs with no external API or per-minute cost, supports 50+ languages with auto-detection, and surfaces the detected language and emotion on each transcript.

Registers the funasr extra, workspace member, and a CHANGELOG entry.

Changes

  • New funasr plugin: in-process STT via funasr.AutoModel (SenseVoice),
    mirroring the fast_whisper plugin
  • Surfaces detected language + emotion on TranscriptResponse
  • Registers the funasr extra, workspace member, and a CHANGELOG entry

Note: the integration test downloads the ~900 MB SenseVoice model, so the
scheduled integration job may need model caching or a longer timeout.

Self-hosted, in-process speech-to-text via FunASR's SenseVoice model,
mirroring the fast_whisper plugin. Runs with no external API or
per-minute cost, supports 50+ languages with auto-detection, and
surfaces the detected language and emotion on each transcript.

Registers the funasr extra, workspace member, and a CHANGELOG entry.
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 94782d09-afa4-4e4d-a19b-a38bac13bd5b

📥 Commits

Reviewing files that changed from the base of the PR and between 3d487f7 and d656e46.

📒 Files selected for processing (1)
  • CHANGELOG.md

📝 Walkthrough

Walkthrough

A new vision-agents-plugins-funasr plugin package is added under plugins/funasr. It provides a non-streaming STT class backed by FunASR's AutoModel running SenseVoiceSmall in-process. Audio is buffered, resampled, and periodically flushed to model.generate running in a single-worker ThreadPoolExecutor. Post-processing extracts language and emotion from SenseVoice <|...|> tags and attaches them to a TranscriptResponse. The package is registered as a UV workspace member, exposed as an optional dependency in agents-core, and tested via an integration test asserting transcript accuracy. An example agent script and README are also included.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 84b92fe9-cb60-43ad-a4e2-f102147c6e86

📥 Commits

Reviewing files that changed from the base of the PR and between aeeacb1 and 3d487f7.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (12)
  • CHANGELOG.md
  • agents-core/pyproject.toml
  • plugins/funasr/README.md
  • plugins/funasr/example/__init__.py
  • plugins/funasr/example/funasr_example.py
  • plugins/funasr/example/pyproject.toml
  • plugins/funasr/py.typed
  • plugins/funasr/pyproject.toml
  • plugins/funasr/tests/test_funasr_stt.py
  • plugins/funasr/vision_agents/plugins/funasr/__init__.py
  • plugins/funasr/vision_agents/plugins/funasr/stt.py
  • pyproject.toml

Comment thread CHANGELOG.md Outdated
Comment thread plugins/funasr/tests/test_funasr_stt.py
Comment thread plugins/funasr/vision_agents/plugins/funasr/stt.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants