31 {
32 audio_info->Insert(audio_data);
33 auto direction_result =
34 direction_detection->EstimateSoundSource(
36 respeaker_extrinsics_file,
39 *(audio_detection->mutable_position()) = direction_result.first;
40 audio_detection->set_source_degree(direction_result.second);
41
42 bool is_siren = siren_detection->Evaluate(audio_info->GetSignals(72000));
43 audio_detection->set_is_siren(is_siren);
44 auto signals =
46 MovingResult moving_result = moving_detection->Detect(signals);
47 audio_detection->set_moving_result(moving_result);
48}
optional MicrophoneConfig microphone_config
optional float mic_distance
optional float sample_rate