Skip to content

Commit 0a28cd5

Browse files
committed
feat: audio synthesizer
1 parent 2555020 commit 0a28cd5

File tree

2 files changed

+418
-1
lines changed

2 files changed

+418
-1
lines changed

Cargo.toml

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ name = "tja"
1313
path = "src/bin/tja.rs"
1414
bench = false
1515

16+
[[bin]]
17+
name = "synthesize"
18+
path = "src/bin/synthesize.rs"
19+
required-features = ["audio"]
20+
bench = false
21+
1622
[[bin]]
1723
name = "profile"
1824
path = "src/bin/profile.rs"
@@ -27,6 +33,7 @@ bench = false
2733
default = []
2834
python = ["dep:pyo3"]
2935
wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:serde-wasm-bindgen"]
36+
audio = ["dep:symphonia", "dep:hound"]
3037

3138
[profile.release]
3239
debug = true
@@ -35,14 +42,16 @@ debug = true
3542
serde = { version = "1.0", features = ["derive"] }
3643
serde_json = "1.0"
3744

45+
# Optional dependencies
3846
pyo3 = { version = "0.23", features = [
3947
"extension-module",
4048
"abi3-py38",
4149
], optional = true }
4250
wasm-bindgen = { version = "0.2", optional = true }
4351
js-sys = { version = "0.3", optional = true }
4452
serde-wasm-bindgen = { version = "0.6", optional = true }
45-
once_cell = "1.20.2"
53+
symphonia = { version = "0.5", optional = true }
54+
hound = { version = "3.5", optional = true }
4655

4756
[dev-dependencies]
4857
insta = { version = "1.41", features = ["json"] }

0 commit comments

Comments
 (0)