gkonovalov / android-vad

Android Voice Activity Detection (VAD) library. Supports WebRTC VAD GMM, Silero VAD DNN, Yamnet VAD DNN models.
MIT License
261 stars 60 forks source link

Issues with WebRTC VAD Library Integration #13

Closed drone0898 closed 1 year ago

drone0898 commented 1 year ago

Hello,

I've been trying to use the WebRTC VAD library in my project, but I've encountered issue:

  1. When I add implementation 'com.github.gkonovalov.android-vad:webrtc:2.0.3' to my app's Gradle file, I get the following error: Failed to resolve: com.github.gkonovalov.android-vad:webrtc:2.0.3. This happens even though I have registered maven 'https://jitpack.io/' repositories.

Thank you for providing this great library! I would appreciate any help in resolving these issues.

Android Studio Version : Android Studio Flamingo | 2022.2.1 Patch 2 Kotlin Version : 1.8.10 * JAVA_17 Gradle Version : 8.0

jay-devx commented 1 year ago

Do this in build.gradle (Module)

implementation 'com.github.gkonovalov.android-vad:webrtc:2.0.3'
implementation 'com.github.gkonovalov.android-vad:silero:2.0.3'
implementation 'com.microsoft.onnxruntime:onnxruntime-android:1.15.0'

Do this in Settings.gradle

pluginManagement {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
drone0898 commented 1 year ago

settings.gradle maven { url 'https://jitpack.io' } code works for me thanks for your help.