# 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 = "2024"
name = "kokoro-tts"
version = "0.3.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "用于Rust的轻量级AI离线语音合成器（Kokoro TTS），可轻松交叉编译到移动端"
readme = "README.md"
keywords = [
    "TTS",
    "Offline",
    "Lite",
    "AI",
    "Synthesizer",
]
license = "Apache-2.0"
repository = "https://github.com/mzdk100/kokoro.git"

[features]
use-cmudict = ["cmudict-fast"]

[lib]
name = "kokoro_tts"
path = "src/lib.rs"

[[example]]
name = "synth_directly_v10"
path = "examples/synth_directly_v10.rs"

[[example]]
name = "synth_directly_v11"
path = "examples/synth_directly_v11.rs"

[[example]]
name = "synth_stream"
path = "examples/synth_stream.rs"

[dependencies.bincode]
version = "2.0"

[dependencies.chinese-number]
version = "0.7.8"
features = [
    "number-to-chinese",
    "chinese-to-number",
]
default-features = false

[dependencies.cmudict-fast]
version = "0.8.0"
optional = true

[dependencies.futures]
version = "0.3.31"

[dependencies.jieba-rs]
version = "0.8.1"

[dependencies.log]
version = "0.4.29"

[dependencies.ndarray]
version = "0.17.2"

[dependencies.ort]
version = "2.0.0-rc.11"

[dependencies.pin-project]
version = "1.1.10"

[dependencies.pinyin]
version = "0.11.0"

[dependencies.rand]
version = "0.10.0-rc.7"

[dependencies.regex]
version = "1.12.2"

[dependencies.tokio]
version = "1.49.0"
features = [
    "fs",
    "rt-multi-thread",
    "time",
    "sync",
]

[dev-dependencies.anyhow]
version = "1.0.100"

[dev-dependencies.tokio]
version = "1.49.0"
features = ["macros"]

[dev-dependencies.voxudio]
version = "0.5.7"
features = ["device"]

[build-dependencies.cc]
version = "1.2.53"
