Skip to content

Commit

Permalink
Merge branch 'main' into feat/setup-android-support
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 24, 2024
2 parents 2812a2d + 4b1b940 commit 01a5796
Show file tree
Hide file tree
Showing 40 changed files with 553 additions and 351 deletions.
49 changes: 0 additions & 49 deletions .github/scripts/bump.js

This file was deleted.

32 changes: 0 additions & 32 deletions .github/scripts/notes.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ tokens.txt
.DS_Store
venv/
vits-piper*
sherpa-onnx/
*.wav
!samples/*.wav
*.bz2
sherpa-onnx-whisper*
sherpa-onnx-pyannote-*
sherpa-onnx-zipformer-*
*.txt
!checksum.txt
sherpa-onnx-v*
jniLibs
sys/src/bindings.rs
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "sys/sherpa-onnx"]
path = sys/sherpa-onnx
[submodule "crates/sherpa-rs-sys/sherpa-onnx"]
path = crates/sherpa-rs-sys/sherpa-onnx
url = https://github.com/k2-fsa/sherpa-onnx
51 changes: 49 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 1 addition & 43 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,44 +1,2 @@
[workspace]
members = ["sys"]

[package]
name = "sherpa-rs"
version = "0.5.1"
edition = "2021"
authors = ["thewh1teagle"]
license = "MIT"
repository = "https://github.com/thewh1teagle/sherpa-rs"
description = "Rust bindings to https://github.com/k2-fsa/sherpa-onnx"
readme = "README.md"
keywords = [
"audio",
"embeddings",
"speech-recognition",
"sherpa",
"diarization",
]

[lib]
crate-type = ["rlib", "dylib", "staticlib"]

[dependencies]
eyre = "0.6.12"
hound = { version = "3.5.1" }
sherpa-rs-sys = { path = "sys", version = "0.5.1", default-features = false }
tracing = "0.1.40"

[dev-dependencies]
clap = { version = "4.5.8", features = ["derive"] }

[features]
default = ["download-binaries", "tts"]
download-binaries = ["sherpa-rs-sys/download-binaries"]
static = ["sherpa-rs-sys/static"]
sys = []
tts = ["sherpa-rs-sys/tts"]
cuda = ["sherpa-rs-sys/cuda"]
directml = ["sherpa-rs-sys/directml"]

[[example]]
name = "tts"
required-features = ["tts"]
members = ["crates/sherpa-rs", "crates/sherpa-rs-sys"]
File renamed without changes.
16 changes: 15 additions & 1 deletion sys/Cargo.toml → crates/sherpa-rs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,24 @@ bzip2 = { version = "0.4.4", optional = true, features = ["static"] }
flate2 = { version = "1.0", optional = true }
sha2 = { version = "0.10", optional = true }
dirs = { version = "5.0.1", optional = true }
serde_json = { version = "1.0.134", optional = true }
serde = { version = "1.0.216", features = ["derive"], optional = true }
lazy_static = { version = "1.5.0", optional = true }


[features]
default = ["download-binaries"]
download-binaries = ["ureq", "tar", "bzip2", "flate2", "sha2", "dirs"]
download-binaries = [
"dep:ureq",
"dep:tar",
"dep:bzip2",
"dep:flate2",
"dep:sha2",
"dep:dirs",
"dep:serde_json",
"dep:serde",
"dep:lazy_static",
]
static = []
tts = []
cuda = []
Expand Down
Loading

0 comments on commit 01a5796

Please sign in to comment.