neutts 0.1.1

Rust port of NeuTTS — on-device voice-cloning TTS with GGUF backbone and NeuCodec decoder
Documentation
# 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 = "neutts"
version = "0.1.1"
authors = ["Eugene Hauptmann"]
build = "build.rs"
exclude = [
    "ios",
    "android",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust port of NeuTTS — on-device voice-cloning TTS with GGUF backbone and NeuCodec decoder"
homepage = "https://github.com/eugenehp/neutts-rs"
readme = "README.md"
keywords = [
    "tts",
    "text-to-speech",
    "voice-cloning",
    "gguf",
    "speech-synthesis",
]
license = "MIT"
repository = "https://github.com/eugenehp/neutts-rs"

[features]
backbone = ["dep:llama-cpp-4"]
cuda = ["llama-cpp-4?/cuda"]
default = [
    "backbone",
    "fast",
]
espeak = ["dep:espeak-ng"]
fast = []
metal = ["llama-cpp-4?/metal"]
precise = []
verbose = []
vulkan = ["llama-cpp-4?/vulkan"]
wgpu = ["dep:burn"]

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

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = [
    "backbone",
    "espeak",
]

[[example]]
name = "clone_voice"
path = "examples/clone_voice.rs"
required-features = [
    "backbone",
    "espeak",
]

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

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

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

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

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

[[example]]
name = "stream_pcm"
path = "examples/stream_pcm.rs"
required-features = [
    "backbone",
    "espeak",
]

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.burn]
version = "0.20"
features = [
    "std",
    "wgpu",
    "ndarray",
]
optional = true
default-features = false

[dependencies.dirs]
version = "6"

[dependencies.espeak-ng]
version = "0.1"
features = ["bundled-data"]
optional = true

[dependencies.fancy-regex]
version = "0.14"

[dependencies.hound]
version = "3"

[dependencies.llama-cpp-4]
version = "0.2.17"
optional = true

[dependencies.memmap2]
version = "0.9"

[dependencies.ndarray]
version = "0.16"

[dependencies.once_cell]
version = "1"

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

[dependencies.rustfft]
version = "6"

[dependencies.safetensors]
version = "0.5"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1"

[dependencies.zip]
version = "2"
features = ["deflate"]
default-features = false

[target.'cfg(not(any(target_os = "ios", target_os = "android")))'.dependencies.hf-hub]
version = "0.5"