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

本地

fasr可以通过直接通过pip安装,但是如果需要使用gpu,需要安装pytorch和onnxruntime-gpu

  • 安装pytorch: 通过官网安装对应cuda版本
  • 安装onnxruntime-gpu: 通过官网安装对应cuda版本
  • 安装fasr
pip install fasr

📋 使用

  • 下载模型
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.6.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

fasr-0.1.6-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fasr-0.1.6.tar.gz
Algorithm Hash digest
SHA256 855f84039382dcd453d7a5a3e3d407ffa5bb24f41a53ae06b757956d651dcac7
MD5 d7ad2add702f6020459344a854426e73
BLAKE2b-256 dcf2ee5d5b4cbf9b8d644ccf6e0537484c934d8fa671b5886fcd61f96ec76c56

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fasr-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a3196df58b1099fcbf6344c458025eba8ad4360c9b37e6beee955f0335ad654b
MD5 42f02a49c89b42f13444255843b13f5a
BLAKE2b-256 e3def78ce8c623ce1075f955640f2b54877bf804356b94ac0259e22c77ce4ecd

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