Skip to content

silero vad #38

@Ferry201

Description

@Ferry201

我注意到作者你更新了,你把2.0.9更新为了2.0.10,我在eas build时提示报错,不兼容,只好改为2.0.9 。这二者差别大吗?这是我的kotlin代码,你看看有没有问题(我使用时发现识别人声不准确):
Function("initVad") {
vad = VadSilero(
context = appContext.reactContext!!,
sampleRate = SampleRate.SAMPLE_RATE_16K,
frameSize = FrameSize.FRAME_SIZE_512,
mode = Mode.NORMAL,
silenceDurationMs = 300,
speechDurationMs = 500
)
android.util.Log.i("ExpoPcmPlayer", "Silero VAD initialized")
}

AsyncFunction("analyzeFrame") { audioData: ByteArray ->
     vad?.isSpeech(audioData) ?: false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions