Skip to main content

mstt_funasr-A plugin for mstt to add support for FunASR models.

Project description

MSTT FunASR Plugin

This repository contains the mstt-funasr plugin for the Modern Speech-to-Text (MSTT) library. This plugin provides integration with the FunASR models, allowing MSTT to leverage FunASR's capabilities for high-performance speech-to-text transcription.

Features

  • Integrates FunASR models with the MSTT unified API.
  • Supports various FunASR models for different languages and tasks.
  • Provides efficient and accurate speech transcription.

Installation

To use this plugin, you need to have MSTT installed first. Then, you can install mstt-funasr using pip:

pip install mstt-funasr

This will also install the necessary funasr library as a dependency.

Usage

Once installed, the funasr model will be automatically available through the MSTT library. You can use it by specifying model_id="<funasr_model>" when initializing the MSTT client, <funasr_model> can be one of:

  • funasr/iic/SenseVoiceSmall
  • sensevoice_small
  • funasr/iic/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch
  • paraformer-zh
  • funasr/iic/speech_paraformer-large-vad-punc_asr_nat-en-16k-common-vocab10020
  • paraformer-en
  • funasr/iic/speech_conformer_asr-en-16k-vocab4199-pytorch
  • conformer-en
  • funasr/iic/Whisper-large-v3
  • whisper-large-v3
  • funasr/iic/Whisper-large-v3-turbo
  • whisper-large-v3-turbo
from mstt import get_model

asr_model = get_model("<funasr_model>")
result = asr_model.transcribe("path/to/your/audio.wav")

Example with CLI

You can also use the funasr model via the MSTT command-line interface:

mstt transcribe --model <funasr_model>  path/to/your/audio.wav

Contributing

Contributions to the mstt-funasr plugin are welcome! Please refer to the main MSTT repository's contributing guidelines for more information.

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mstt_funasr-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mstt_funasr-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mstt_funasr-0.1.0.tar.gz.

File metadata

  • Download URL: mstt_funasr-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for mstt_funasr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d595ed6870d0f94d7c7bd2a7cdf0e962938d2e324a203155cfe728e5fd6af24
MD5 fc58d8ce8450bf18511fc1c3ea474912
BLAKE2b-256 172469f293a0e69d4cf82f856174a3e01ca9ee1e49b18efc328579b934f72225

See more details on using hashes here.

File details

Details for the file mstt_funasr-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mstt_funasr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 277454b00ad3aac88b784710e5e621019bc31504d86ed79487c8455a8d6e3a3b
MD5 c582f66ebf28123ea2d71475d7abae2b
BLAKE2b-256 d11a43340490ea910bc06113824e78c92dd1200185d78e637dcc3cab4de86912

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page