Importing TextToSpeech SDK
To use the TextToSpeech SDK, register the Pleos Maven repository and add the SDK dependency to your app module.
Maven Repository Registration
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/"
}
}
}
SDK Dependency Addition
Add the TextToSpeech SDK dependency to the app module's Gradle file.
- Kotlin DSL
- Groovy
app/build.gradle.kts
dependencies {
implementation("ai.pleos.playground:TextToSpeech:3.3.1")
}
app/build.gradle
dependencies {
implementation "ai.pleos.playground:TextToSpeech:3.3.1"
}
After Gradle synchronization completes, declare the TextToSpeech permission.