fix #341 issue of cpp example coding mistake

This commit is contained in:
AlexRainHao
2023-05-18 20:12:03 +08:00
parent bc5a0a2dbf
commit 3b4c02dfe3

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);