Merge pull request #342 from AlexRainHao/master

fix #341 issue of cpp example coding mistake
This commit is contained in:
Alexander Veysov
2023-05-18 15:17:36 +03:00
committed by GitHub

View File

@@ -134,7 +134,7 @@ public:
// b. silence >= min_slience_samples, end speaking
else
{
speech_end = temp_end temp_end + speech_pad_samples : current_sample + speech_pad_samples;
speech_end = temp_end ? temp_end + speech_pad_samples : current_sample + speech_pad_samples;
temp_end = 0;
triggerd = false;
printf("{ end: %.3f s }\n", 1.0 * speech_end / sample_rate);