fasr-service-transcribe
英文文档地址: README_EN.md
fasr 的 FastAPI transcribe 服务插件。
注册入口
服务 entry point:
transcribe.fastapi.v1
router entry point:
transcribe.fastapi.v1
CLI
fasr-service-transcribe serve \
--vad marblenet \
--asr paraformer \
--enhance deepfilternet \
--punc ct_transformer \
--host 0.0.0.0 \
--port 8000
fasr-service-transcribe init \
--cfg transcribe.cfg \
--vad marblenet \
--asr paraformer \
--enhance deepfilternet \
--punc ct_transformer
# init 默认会在每个参数上方写入 # 注释,方便理解参数作用;
# 如需生成纯配置文件,可以加 --no-comments。
fasr-service-transcribe init --cfg transcribe.cfg --no-comments
fasr-service-transcribe serve --cfg transcribe.cfg
扁平 CLI 参数适合快速启动 transcribe 服务;如果需要细调模型参数,再通过
init --cfg 生成 transcribe.cfg 并修改配置文件。该服务会暴露
POST /transcribe 与 POST /inference 接口。--enhance 是可选参数,
用于在离线转写前先执行批量音频增强。
服务启动后,也可以直接打开 / 或 /demo 使用内置可视化页面测试转写接口。
API 文档
Client 示例
- Python client: client.py
Metadata
Release files for fasr-service-transcribe 0.5.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fasr_service_transcribe-0.5.8-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fasr_service_transcribe-0.5.8-py3-none-any.whl
| Download URL | fasr_service_transcribe-0.5.8-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89f8a1a52d7f6422429b70811c453e4c088f4077be279649e03c6d71b790aa06
|
|
BLAKE2b-256 checksum How to use checksums |
f566b72db31e49e6a51a439a25b52c466ca93521b73140fde32af2f0034a36f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|