@layercode/js-sdk 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3599,8 +3599,8 @@ registerProcessor('audio_processor', AudioProcessor);
|
|
|
3599
3599
|
dist.MicVAD.new({
|
|
3600
3600
|
stream: this.wavRecorder.getStream() || undefined,
|
|
3601
3601
|
model: 'v5',
|
|
3602
|
-
positiveSpeechThreshold: 0.
|
|
3603
|
-
negativeSpeechThreshold: 0.
|
|
3602
|
+
positiveSpeechThreshold: 0.7,
|
|
3603
|
+
negativeSpeechThreshold: 0.55,
|
|
3604
3604
|
redemptionFrames: 25, // Number of frames of silence before onVADMisfire or onSpeechEnd is called. Effectively a delay before restarting.
|
|
3605
3605
|
minSpeechFrames: 0,
|
|
3606
3606
|
preSpeechPadFrames: 0,
|
|
@@ -3644,10 +3644,10 @@ registerProcessor('audio_processor', AudioProcessor);
|
|
|
3644
3644
|
model: 'v5',
|
|
3645
3645
|
// baseAssetPath: '/', // Use if bundling model locally
|
|
3646
3646
|
// onnxWASMBasePath: '/', // Use if bundling model locally
|
|
3647
|
-
positiveSpeechThreshold: 0.
|
|
3648
|
-
negativeSpeechThreshold: 0.
|
|
3647
|
+
positiveSpeechThreshold: 0.7,
|
|
3648
|
+
negativeSpeechThreshold: 0.55,
|
|
3649
3649
|
redemptionFrames: 25, // Number of frames of silence before onVADMisfire or onSpeechEnd is called. Effectively a delay before restarting.
|
|
3650
|
-
minSpeechFrames:
|
|
3650
|
+
minSpeechFrames: 25,
|
|
3651
3651
|
preSpeechPadFrames: 0,
|
|
3652
3652
|
onSpeechStart: () => {
|
|
3653
3653
|
// Only pause agent audio if it's currently playing
|