Skip to main content

FASR: Fast Automatic Speech Recognition

Project description

🪐 项目: fasr

Fast Auto Speech Recognition

📋 简介

fasr是一款快速且易于使用的python库,它源于FunASR,专注于推理性能,目标是成为一个工业级别的python语音识别推理库。

文档地址

📋 安装

wpai

  • 在wpai平台选择pytorch镜像后,执行以下命令安装所有依赖
bash install.sh

本地

  • 安装pytorch: 通过官网安装对应cuda版本
  • 安装onnxruntime-gpu: 通过官网安装对应cuda版本
  • 安装fasr
pip install poetry
poetry build
pip install dist/fasr-xxx-tar.gz

📋 使用

  • 下载模型
fasr prepare
  • 构建pipeline
from fasr import AudioPipeline

# 语音识别pipeline
asr = AudioPipeline().add_pipe('detector').add_pipe('recognizer').add_pipe('sentencizer')

# 准备音频数据url或者本地路径
urls = get_urls()

# 运行
audios = asr.run(urls)

# 打印结果
for audio in audios:
    for channel in audio.channels:
        print(channel.text)

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

fasr-0.1.5.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

fasr-0.1.5-py3-none-any.whl (64.8 kB view details)

Uploaded Python 3

File details

Details for the file fasr-0.1.5.tar.gz.

File metadata

  • Download URL: fasr-0.1.5.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for fasr-0.1.5.tar.gz
Algorithm Hash digest
SHA256 81fa63ba7399d8baa4b1903e17053bfde201dd4b3c5f9ee28391f27ddd5ddb78
MD5 3a702288462332d228abb106552aa62b
BLAKE2b-256 2dc08e6932b9c36c06a5a59e49846013fadede3a17754ce33a83f5b2b7b73a6d

See more details on using hashes here.

File details

Details for the file fasr-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: fasr-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 64.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for fasr-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 27a7e72cfc0ec81787deb51728eb4f2a52b21716194131db28eb3d50846efd24
MD5 780307264d746c6381a0f9162ea4fbaf
BLAKE2b-256 f68bd7b61613c3783694a403c165e25173429a586f24b9e3a3d97804d352af06

See more details on using hashes here.

Supported by

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