feat: 增加在线语音 SDK 和音色管理后台,完善引擎适配
This commit is contained in:
1 parent
1856de97bc
commit
a532ba4e0f
71 files changed
+3189
-472
No files matched your search
@@ -0,0 +1,48 @@
|
||||
import org.gradle.api.credentials.HttpHeaderCredentials
|
||||
import org.gradle.authentication.http.HttpHeaderAuthentication
|
||||
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = 'com.ttstd'
|
||||
version = rootProject.ext.publishVersion
|
||||
|
||||
def giteaToken = project.findProperty('giteaToken') ?: System.getenv('GITEA_TOKEN')
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
archiveClassifier.set('sources')
|
||||
from android.sourceSets.main.java.srcDirs
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
from components.release
|
||||
artifact sourcesJar
|
||||
artifactId = 'tts-speaker-sdk'
|
||||
|
||||
pom {
|
||||
name = 'TtsSpeaker SDK'
|
||||
description = 'HTTP online TTS synthesis, cancellable playback and WAV file rendering without an installed TTS engine.'
|
||||
}
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
name = 'gitea'
|
||||
url = 'https://gitea.ttstd.com/api/packages/maven/maven'
|
||||
|
||||
if (!giteaToken) {
|
||||
throw new GradleException("缺少 giteaToken:请写入 ~/.gradle/gradle.properties 或设置环境变量 GITEA_TOKEN")
|
||||
}
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = 'Authorization'
|
||||
value = "token ${giteaToken}"
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
#Sat Oct 11 20:25:09 CST 2025
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
|
||||
Reference in new issue
Block a user