Add offline desktop speech with Silero Xenia for Russian
This commit is contained in:
1 parent
9cd8ebc422
commit
9dbe30b20c
28 files changed
+1865
-16
No files matched your search
@@ -96,10 +96,29 @@ kotlin {
|
||||
jvmMain.dependencies {
|
||||
implementation(compose.desktop.currentOs)
|
||||
implementation(libs.kotlinx.coroutinesSwing)
|
||||
implementation(libs.onnxruntime)
|
||||
implementation(libs.jackson.databind)
|
||||
}
|
||||
jvmTest.dependencies {
|
||||
implementation(libs.kotlinx.coroutinesTest)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register<JavaExec>("ttsSample") {
|
||||
group = "verification"
|
||||
description = "Generate plain English/Russian WAV samples using the local Supertonic CPU model."
|
||||
dependsOn("jvmMainClasses")
|
||||
mainClass.set("net.sergeych.toread.tts.TtsSampleKt")
|
||||
classpath = configurations["jvmRuntimeClasspath"] + kotlin.targets["jvm"].compilations["main"].output.allOutputs
|
||||
workingDir = rootProject.projectDir
|
||||
args(layout.buildDirectory.dir("tts-samples").get().asFile.absolutePath)
|
||||
if (providers.gradleProperty("ttsPlay").orNull == "true") args("--play")
|
||||
if (providers.gradleProperty("ttsStress").orNull == "true") args("--stress")
|
||||
if (providers.gradleProperty("ttsRuAccent").orNull == "true") args("--ruaccent")
|
||||
if (providers.gradleProperty("ttsSilero").orNull == "true") args("--silero")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "net.sergeych.toread"
|
||||
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||||
|
||||
Reference in new issue
Block a user