feat(voice): add iOS VAD runtime support

This commit is contained in:
Edison Jwa
2026-05-21 20:51:45 +09:00
parent 171baf6e41
commit 6af4ecab0f
73 changed files with 11529 additions and 1249 deletions
+10
View File
@@ -8,12 +8,20 @@
// feeding a 1-second buffer per iteration. Throughput is reported
// as samples/sec via criterion's `Throughput::Elements`.
#[cfg(any(target_os = "ios", target_os = "macos", target_os = "android"))]
fn main() {}
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
use chanora_audio::bench_seam::CaptureBenchHandle;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
use criterion::{black_box, criterion_group, criterion_main, Criterion, Throughput};
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
mod common;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
use common::synthetic_capture_buffer;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
fn bench_resampler_throughput(c: &mut Criterion) {
let mut group = c.benchmark_group("resampler_throughput");
@@ -39,5 +47,7 @@ fn bench_resampler_throughput(c: &mut Criterion) {
group.finish();
}
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
criterion_group!(resampler, bench_resampler_throughput);
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "android")))]
criterion_main!(resampler);