# 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 = "otoji"
version = "0.1.13"
authors = ["snomiao <snomiao@gmail.com>"]
build = "build.rs"
exclude = [
    "*.pcm",
    "test_*.md",
    "16k_*.md",
    "docs/",
    "scripts/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "音字 — realtime speech ⇄ text. SenseVoice / iFlytek ASR + TTS, LLM polish, ratatui live transcript."
homepage = "https://github.com/snomiao/otoji"
readme = "README.md"
keywords = [
    "asr",
    "speech",
    "tts",
    "realtime",
    "sensevoice",
]
categories = [
    "command-line-utilities",
    "multimedia::audio",
]
license = "MIT"
repository = "https://github.com/snomiao/otoji"

[features]
default = []
node = [
    "dep:napi",
    "dep:napi-derive",
    "dep:napi-build",
]

[lib]
name = "otoji"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "otoji"
path = "src/main.rs"

[[bin]]
name = "otoji-tray"
path = "src/bin/tray.rs"

[[test]]
name = "ptt_protocol"
path = "tests/ptt_protocol.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.cpal]
version = "0.15"

[dependencies.crossterm]
version = "0.28"

[dependencies.dotenvy]
version = "0.15"

[dependencies.exec]
version = "0.3.1"

[dependencies.futures-util]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.hound]
version = "3.5"

[dependencies.libc]
version = "0.2"

[dependencies.md-5]
version = "0.10"

[dependencies.napi]
version = "2"
features = [
    "napi6",
    "async",
]
optional = true
default-features = false

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.nnnoiseless]
version = "0.5.2"

[dependencies.ratatui]
version = "0.28"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "stream",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.sherpa-onnx]
version = "1.12"

[dependencies.signal-hook]
version = "0.3"

[dependencies.similar]
version = "2"

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.40"
features = ["full"]

[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

[build-dependencies.napi-build]
version = "2"
optional = true
