Skip to content

Commit a673c88

Browse files
committed
Silero VAD: fix stream runner formatting
Adjust `stream_main.cpp` to match the formatter output so the remaining lintrunner failure is resolved without changing behavior. Authored with assistance from Claude. Made-with: Cursor
1 parent 043a09b commit a673c88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/models/silero_vad/stream_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ int main(int argc, char** argv) {
6161
pending_samples.data() + prior_sample_count,
6262
pending_bytes.data(),
6363
float_bytes);
64-
pending_bytes.erase(pending_bytes.begin(), pending_bytes.begin() + float_bytes);
64+
pending_bytes.erase(
65+
pending_bytes.begin(), pending_bytes.begin() + float_bytes);
6566

6667
while (pending_samples.size() >=
6768
static_cast<size_t>(runner.window_size())) {
6869
float prob =
6970
runner.process_frame(pending_samples.data(), runner.window_size());
70-
double timestamp =
71-
static_cast<double>(runner.stream_frame_index()) *
71+
double timestamp = static_cast<double>(runner.stream_frame_index()) *
7272
runner.frame_duration();
7373
std::cout << "PROB " << timestamp << " " << prob << std::endl;
7474
pending_samples.erase(

0 commit comments

Comments
 (0)