diff --git a/build.gradle b/build.gradle index 9cba5cd..e3201e5 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:8.2.0' + classpath 'com.android.tools.build:gradle:8.2.1' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21' } } diff --git a/example/build.gradle b/example/build.gradle index a67e1ff..e7233fe 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -11,7 +11,7 @@ android { compileSdk 34 minSdkVersion 23 targetSdkVersion 34 - versionCode 13 + versionCode 14 versionName "2.0.6" setProperty("archivesBaseName", "Android-VAD-v" + versionName) diff --git a/silero/build.gradle b/silero/build.gradle index 7914470..1c1b4ae 100644 --- a/silero/build.gradle +++ b/silero/build.gradle @@ -10,7 +10,7 @@ android { compileSdk 34 minSdkVersion 21 targetSdkVersion 34 - versionCode 13 + versionCode 14 versionName "2.0.6" setProperty("archivesBaseName", "android-vad-silero-v" + versionName) diff --git a/silero/src/androidTest/java/com/konovalov/vad/silero/VadSileroTest.kt b/silero/src/androidTest/java/com/konovalov/vad/silero/VadSileroTest.kt index a149859..7e2f4b6 100644 --- a/silero/src/androidTest/java/com/konovalov/vad/silero/VadSileroTest.kt +++ b/silero/src/androidTest/java/com/konovalov/vad/silero/VadSileroTest.kt @@ -17,9 +17,8 @@ import org.junit.runner.RunWith /** * Created by Georgiy Konovalov on 12/22/2023. - *
+ * * Instrumented test for VadSilero class. - *
*/ @RunWith(AndroidJUnit4::class) class VadSileroTest { diff --git a/utils/src/main/java/com/konovalov/vad/utils/AudioUtils.kt b/utils/src/main/java/com/konovalov/vad/utils/AudioUtils.kt index b09053d..971a9d4 100644 --- a/utils/src/main/java/com/konovalov/vad/utils/AudioUtils.kt +++ b/utils/src/main/java/com/konovalov/vad/utils/AudioUtils.kt @@ -1,22 +1,20 @@ package com.konovalov.vad.utils /** - * Created by Georgiy Konovalov on 18/07/2023. - *+ * Created by Georgiy Konovalov on 7/18/2023. + * * AudioUtils is a utility class that provides various functions to work with audio data * in different formats. It contains static methods that facilitate audio data conversions, * processing, and manipulation. This class aims to simplify common audio-related tasks * and ensure reusability of audio processing logic across the application. - *
*/ object AudioUtils { /** - ** Convert audio data from ShortArray to FloatArray. - *
- * @param audio: ShortArray - audio data for conversion. - * @return Converted audio data as FloatArray. + * + * @param audio is audio data for conversion. + * @return converted audio data as FloatArray. */ fun toFloatArray(audio: ShortArray): FloatArray { return FloatArray(audio.size) { i -> @@ -25,11 +23,10 @@ object AudioUtils { } /** - ** Convert audio data from ByteArray to FloatArray. - *
- * @param audio: ByteArray - audio data for conversion. - * @return Converted audio data as FloatArray. + * + * @param audio is audio data for conversion. + * @return converted audio data as FloatArray. */ fun toFloatArray(audio: ByteArray): FloatArray { return FloatArray(audio.size / 2) { i -> @@ -38,11 +35,10 @@ object AudioUtils { } /** - ** Convert audio data from FloatArray to ShortArray. - *
- * @param audio: FloatArray - audio data for conversion. - * @return Converted audio data as ShortArray. + * + * @param audio is audio data for conversion. + * @return converted audio data as ShortArray. */ fun toShortArray(audio: FloatArray): ShortArray { return ShortArray(audio.size) { i -> @@ -51,11 +47,10 @@ object AudioUtils { } /** - ** Convert audio data from ByteArray to ShortArray. - *
- * @param audio: ByteArray - audio data for conversion. - * @return Converted audio data as ShortArray. + * + * @param audio is audio data for conversion. + * @return converted audio data as ShortArray. */ fun toShortArray(audio: ByteArray): ShortArray { return ShortArray(audio.size / 2) { i -> @@ -64,12 +59,11 @@ object AudioUtils { } /** - ** Calculates the frame count based on the duration in milliseconds, * frequency and frame size. - *
- * @param durationMs The duration in milliseconds. - * @return The frame count. + * + * @param durationMs duration in milliseconds. + * @return frame count. */ fun getFramesCount(sampleRate: Int, frameSize: Int, durationMs: Int): Int { return durationMs / (frameSize / (sampleRate / 1000)) diff --git a/utils/src/test/java/com/konovalov/vad/utils/AudioUtilsTest.kt b/utils/src/test/java/com/konovalov/vad/utils/AudioUtilsTest.kt index d35588a..7cc6150 100644 --- a/utils/src/test/java/com/konovalov/vad/utils/AudioUtilsTest.kt +++ b/utils/src/test/java/com/konovalov/vad/utils/AudioUtilsTest.kt @@ -9,9 +9,8 @@ import org.junit.Test /** * Created by Georgiy Konovalov on 12/04/2023. - *+ * * Unit tests for AudioUtils class. - *
*/ class AudioUtilsTest { diff --git a/webrtc/build.gradle b/webrtc/build.gradle index a2cf9dd..bb3b9c8 100644 --- a/webrtc/build.gradle +++ b/webrtc/build.gradle @@ -10,7 +10,7 @@ android { compileSdk 34 minSdkVersion 16 targetSdkVersion 34 - versionCode 13 + versionCode 14 versionName "2.0.6" setProperty("archivesBaseName", "android-vad-webrtc-v" + versionName) diff --git a/webrtc/src/androidTest/java/com/konovalov/vad/webrtc/VadWebRTCTest.kt b/webrtc/src/androidTest/java/com/konovalov/vad/webrtc/VadWebRTCTest.kt index d44a617..1933d5f 100644 --- a/webrtc/src/androidTest/java/com/konovalov/vad/webrtc/VadWebRTCTest.kt +++ b/webrtc/src/androidTest/java/com/konovalov/vad/webrtc/VadWebRTCTest.kt @@ -16,9 +16,8 @@ import org.junit.runner.RunWith /** * Created by Georgiy Konovalov on 12/22/2023. - *+ * * Instrumented test for VadWebRTC class. - *
*/ @RunWith(AndroidJUnit4::class) class VadWebRTCTest { diff --git a/yamnet/build.gradle b/yamnet/build.gradle index 2252d7f..0b92d33 100644 --- a/yamnet/build.gradle +++ b/yamnet/build.gradle @@ -10,7 +10,7 @@ android { compileSdk 34 minSdkVersion 23 targetSdkVersion 34 - versionCode 13 + versionCode 14 versionName "2.0.6" setProperty("archivesBaseName", "android-vad-yamnet-v" + versionName) diff --git a/yamnet/src/androidTest/java/com/konovalov/vad/yamnet/VadYamnetTest.kt b/yamnet/src/androidTest/java/com/konovalov/vad/yamnet/VadYamnetTest.kt index 074e8c0..cc55f58 100644 --- a/yamnet/src/androidTest/java/com/konovalov/vad/yamnet/VadYamnetTest.kt +++ b/yamnet/src/androidTest/java/com/konovalov/vad/yamnet/VadYamnetTest.kt @@ -16,9 +16,8 @@ import org.junit.runner.RunWith /** * Created by Georgiy Konovalov on 12/22/2023. - *+ * * Instrumented test for VadYamnet class. - *
*/ @RunWith(AndroidJUnit4::class) class VadYamnetTest {