/tts-server-android

这是一个Android系统TTS应用,内置微软演示接口,可自定义HTTP请求,可导入其他本地TTS引擎,以及根据中文双引号的简单旁白/对话识别朗读 ,还有自动重试,备用配置,文本替换等更多功能。

Primary LanguageKotlin

MIT Crowdin

CI CI

GitHub release GitHub release (latest by date)

TTS Server

This APP was originally used for online reading of reading APP. On the basis of the original, it now supports:

  • Built-in Microsoft interface (Edge Read Aloud, Azure Demo API(already released)), customizable HTTP requests, imports of other local TTSengines, simple narration/dialogue recognition & reading based on Chinese double quotes, auto retry, alternate configuration, text replacement & more.
Click to expand & view screenshots

Download

Actions mirror

app: https://jing332.lanzn.com/b09jpjd2d

dev: https://jing332.lanzn.com/b09ig9qla

Password: 1234

JS

Read the rules

The program has built-in narration dialogue rules, which can be added through Reading Rules Management -> Plus Sign.

User-created reading rules:

  1. Rules for character-name-aware voiceover dialogue: Open this link, Copy all the content to the clipboard, and then import it in the rule management interface

  2. 5 languages ​​detected: Copy this link, In the rule management interface, select Network link import.

TTS Plugins

The program has built-in TTS plug-in for Azure official interface: Plug-in management -> Add in the upper right corner -> Save -> Set variables -> Fill in Key and Region

iFlytek WebAPI plugin: Copy this link, In the plugin management interface, select network link import, and then set the variable AppId, ApiKey, ApiSecret。

Grateful

Open Source Projects
Application Microsoft TTS
gedoor/legado wxxxcxx/ms-ra-forwarder
ag2s20150909/TTS litcc/tts-server
benjaminwan/ChineseTtsTflite asters1/tts
yellowgreatsun/MXTtsEngine
2dust/v2rayNG
Library Description
dromara/hutool 🍬A set of tools that keep Java sweet.
LouisCAD/Splitties A collection of hand-crafted extensions for your Kotlin projects.
getactivity/logcat Android log printing framework, you can directly see the Logcat log on your phone
rosuH/AndroidFilePicker FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~
androidbroadcast/ViewBindingPropertyDelegate Make work with Android View Binding simpler
zhanghai/AndroidFastScroll Fast scroll for Android RecyclerView and more
Rosemoe/sora-editor sora-editor is a cool and optimized code editor on Android platform
gedoor/rhino-android Give access to RhinoScriptEngine from the JSR223 interfaces on Android JRE.
liangjingkanji/BRV The best RecyclerView framework on Android, simpler and more powerful than BRVAH
liangjingkanji/Net The best network request tool for Android, easier to use than Retrofit/OkGo
chibatching/kotpref Android SharedPreferences delegation library for Kotlin
google/ExoPlayer An extensible media player for Android
material-components-android Modular and customizable Material Design UI components for Android
kotlinx.serialization Kotlin multiplatform / multi-format serialization
kotlinx.coroutine Library support for Kotlin coroutines

Additional Resources:

Build

Android Studio:

Create a new file local.properties in the project root directory and write the following content:

KEY_PATH=E\:\\Android\\key\\sign.jks (Signature File)
KEY_PASSWORD= password 密码
ALIAS_NAME= aliases 别名
ALIAS_PASSWORD= Alias ​​Password 别名密码

Github Actions:

See https://www.cnblogs.com/jing332/p/17452492.html

Use Git Bash to Base64 encode the signature file without line breaks: openssl base64 < key.jks | tr -d '\r\n' | tee key.jks.base64.txt

Add the following four security variables respectively (Repository secrets):

Go to the following link:https://github.com/你的用户名/tts-server-android/settings/secrets/actions

  • ALIAS_NAME aliases 别名
  • ALIAS_PASSWORD aliases password 别名密码
  • KEY_PASSWORD password 密码
  • KEY_STORE Previously generated 前面生成的 sign.jks.base64.txt content 内容