Importing SpeechToText SDK
To use the SpeechToText SDK, register the Pleos Maven repository and add the SDK dependencies to your app module.
Registering the Maven Repository
Add the Pleos Maven repository to your project's settings.gradle.kts or settings.gradle file.
- Kotlin DSL
- Groovy
settings.gradle.kts
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://nexus-playground.pleos.ai/repository/maven-releases/")
}
}
settings.gradle
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url "https://nexus-playground.pleos.ai/repository/maven-releases/"
}
}
}
Adding SDK Dependencies
Add the SpeechToText SDK dependencies to the Gradle file of your app module.
- Kotlin DSL
- Groovy
app/build.gradle.kts
dependencies {
implementation("ai.pleos.playground:SpeechToText:3.2.1")
}
app/build.gradle
dependencies {
implementation "ai.pleos.playground:SpeechToText:3.2.1"
}
After completing the Gradle synchronization, declare the SpeechToText permissions.