[package]
name = "kon-audio"
version = "0.1.0"
edition = "2021"
description = "Audio capture (cpal), VAD, resampling (rubato), file decoding (symphonia), WAV I/O (hound) for Kon"

[dependencies]
kon-core = { path = "../core" }

# Microphone capture
cpal = "0.17"

# Voice activity detection — deferred until ort version conflict between
# VAD crates (ort rc.10) and transcribe-rs (ort rc.12) is resolved upstream.
# silero-vad-rust = { version = "6", default-features = false }

# High-quality resampling (sinc interpolation)
rubato = "0.15"

# WAV file I/O
hound = "3.5"

# Audio file decoding (mp3, aac, flac, wav, ogg, etc.)
symphonia = { version = "0.5", features = ["mp3", "aac", "flac", "pcm", "vorbis", "wav", "ogg", "isomp4"] }

# Async runtime for threading
tokio = { version = "1", features = ["rt", "sync"] }

# Serde for DeviceInfo (returned across the Tauri boundary)
serde = { version = "1", features = ["derive"] }
