mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
Merge pull request #342 from AlexRainHao/master
fix #341 issue of cpp example coding mistake
This commit is contained in:
@@ -134,7 +134,7 @@ public:
|
|||||||
// b. silence >= min_slience_samples, end speaking
|
// b. silence >= min_slience_samples, end speaking
|
||||||
else
|
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;
|
temp_end = 0;
|
||||||
triggerd = false;
|
triggerd = false;
|
||||||
printf("{ end: %.3f s }\n", 1.0 * speech_end / sample_rate);
|
printf("{ end: %.3f s }\n", 1.0 * speech_end / sample_rate);
|
||||||
|
|||||||
Reference in New Issue
Block a user