audio-codec 0.3.31

A collection of VoIP audio codecs in Rust, including G.711, G.722, G.729, and Opus.
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 = "2024"
name = "audio-codec"
version = "0.3.31"
authors = ["jinti<shenjindi@fourz.cn>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A collection of VoIP audio codecs in Rust, including G.711, G.722, G.729, and Opus."
readme = "README.md"
keywords = [
    "sip",
    "voip",
    "telephony",
    "webrtc",
]
categories = ["multimedia"]
license = "MIT"
repository = "https://github.com/restsend/audio-codec"

[features]
default = ["opus"]
opus = ["dep:opus-rs"]
opus_mono = [
    "opus",
    "dep:opus-rs",
]

[lib]
name = "audio_codec"
crate-type = ["rlib"]
path = "src/lib.rs"

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

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

[[bench]]
name = "codec_bench"
path = "benches/codec_bench.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.g729-sys]
version = "0.1.2"

[dependencies.opus-rs]
version = "0.1.16"
optional = true

[dev-dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.hound]
version = "3.5.1"