Cargo Features

[dependencies]
voirs-recognizer = { version = "0.1.0-alpha.3", default-features = false, features = ["whisper", "whisper-pure", "deepspeech", "wav2vec2", "transformer", "conformer", "analysis", "forced-align", "mfa", "python", "wasm", "c-api", "rest-api", "all-models", "gpu"] }
default = analysis, whisper

These default features are set whenever voirs-recognizer is added without default-features = false somewhere in the dependency tree.

whisper default all-models?

Affects asr::whisper

whisper-pure all-models?

Pure Rust Whisper implementation (no Python dependencies)

Affects asr::whisper_pure

deepspeech all-models?

Affects asr::deepspeech

wav2vec2 all-models?

Affects asr::wav2vec2

transformer all-models?

Transformer-based end-to-end ASR

Affects asr::transformer

conformer all-models?

Conformer: Convolution-augmented Transformer for Speech Recognition

Affects asr::conformer

analysis default
forced-align all-models?

Affects phoneme::forced_align

mfa all-models?

Affects phoneme::mfa

python = numpy, pyo3, pyo3-async-runtimes

Python bindings with async support

Affects voirs-recognizer::python

wasm = console_error_panic_hook, js-sys, wasm-bindgen, wasm-bindgen-futures, wasm-logger, web-sys

WASM bindings for browser/Node.js

Affects voirs-recognizer::wasm

c-api

C/C++ API bindings

Affects voirs-recognizer::c_api

rest-api = axum, base64, hyper, mime, reqwest, tokio-tungstenite, tower, tower-http, url

REST API and microservice support

Affects voirs-recognizer::serverless, voirs-recognizer::rest_api

all-models = conformer, deepspeech, forced-align, mfa, transformer, wav2vec2, whisper, whisper-pure
gpu

Enables cuda of ort

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

pyo3 python?

Enables pyo3 ^0.26.0

Python bindings (optional)

numpy python?

Enables numpy ^0.26.0

pyo3-async-runtimes python?

Enables pyo3-async-runtimes ^0.26

Using maintained fork for pyo3 0.25 compatibility

wasm-bindgen wasm?

Enables wasm-bindgen

WASM bindings (optional)

wasm-bindgen-futures wasm?
js-sys wasm?
web-sys wasm?
console_error_panic_hook wasm?
wasm-logger wasm?
axum rest-api?

Enables axum

REST API dependencies (optional)

tower rest-api?
tower-http rest-api?
hyper rest-api?
tokio-tungstenite rest-api?
base64 rest-api?
mime rest-api?
reqwest rest-api?

Enables reqwest ^0.12

url rest-api?