When using the builder to create a VadSilero object, speechDurationMs and silenceDurationMs do not actually take effect, because they rely on the setter function of the field to trigger the update of maxSpeechFramesCount and maxSilenceFramesCount, and the construction parameters of kotlin will not trigger this operation
Manually call the setters of duration parameters during init construction to ensure they are properly assigned.
…en creating VadSilero
When using the builder to create a VadSilero object,
speechDurationMs
andsilenceDurationMs
do not actually take effect, because they rely on the setter function of the field to trigger the update ofmaxSpeechFramesCount
andmaxSilenceFramesCount
, and the construction parameters of kotlin will not trigger this operationManually call the setters of
duration
parameters during init construction to ensure they are properly assigned.