feat(voice): add iOS VAD runtime support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user