# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "ryu-stt"
version = "0.1.12"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Speech-to-text (STT) modality primitive for Ryu: `transcribe(audio) -> text` with a swappable engine seam (in-process parakeet ONNX by default; whisper.cpp and Gateway-routed cloud Whisper as HTTP proxies). An extracted Core capability crate — in-process by default and consumed as a NON-optional path dependency (the voice/meetings/hardware data paths reach it unconditionally). The parakeet ONNX inference is the genuinely in-process hot path (feature `voice-parakeet`); whisper + gateway engines are thin HTTP proxies. Host couplings the crate cannot own (whisper base-url, Gateway url/bearer, the parakeet model dir) are injected via the narrow `SttHost` trait, so the crate has ZERO dependency on apps/core."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/amajorai/ryu"
[features]
voice-parakeet = [
"dep:transcribe-rs",
"dep:once_cell",
]
[lib]
name = "ryu_stt"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1"
[dependencies.base64]
version = "0.22"
features = ["alloc"]
[dependencies.once_cell]
version = "1"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"multipart",
]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tempfile]
version = "3"
[dependencies.tokio]
version = "1"
features = ["rt"]
[dependencies.transcribe-rs]
version = "0.3.11"
features = ["onnx"]
optional = true
default-features = false
[dev-dependencies.axum]
version = "0.7"
features = ["multipart"]
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"net",
]