Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jing332/tts-server-android
这是一个Android系统TTS应用,内置微软演示接口,可自定义HTTP请求,可导入其他本地TTS引擎,以及根据中文双引号的简单旁白/对话识别朗读 ,还有自动重试,备用配置,文本替换等更多功能。
https://github.com/jing332/tts-server-android
android compose-ui golang jetpack-compose kotlin legado microsoft tts
Last synced: 3 days ago
JSON representation
这是一个Android系统TTS应用,内置微软演示接口,可自定义HTTP请求,可导入其他本地TTS引擎,以及根据中文双引号的简单旁白/对话识别朗读 ,还有自动重试,备用配置,文本替换等更多功能。
- Host: GitHub
- URL: https://github.com/jing332/tts-server-android
- Owner: jing332
- Created: 2022-09-15T00:07:01.000Z (over 2 years ago)
- Default Branch: compose
- Last Pushed: 2024-02-20T06:43:54.000Z (11 months ago)
- Last Synced: 2024-02-20T07:39:49.470Z (11 months ago)
- Topics: android, compose-ui, golang, jetpack-compose, kotlin, legado, microsoft, tts
- Language: Kotlin
- Homepage:
- Size: 6.58 MB
- Stars: 2,262
- Watchers: 21
- Forks: 193
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
![MIT](https://img.shields.io/badge/license-MIT-green)
[![Crowdin](https://img.shields.io/badge/Localization-Crowdin-blueviolet?logo=Crowdin)](https://crowdin.com/project/tts-server)[![CI](https://github.com/jing332/tts-server-android/actions/workflows/release.yml/badge.svg)](https://github.com/jing332/tts-server-android/actions/workflows/release.yml)
[![CI](https://github.com/jing332/tts-server-android/actions/workflows/test.yml/badge.svg)](https://github.com/jing332/tts-server-android/actions/workflows/test.yml)![GitHub release](https://img.shields.io/github/downloads/jing332/tts-server-android/total)
![GitHub release (latest by date)](https://img.shields.io/github/downloads/jing332/tts-server-android/latest/total)# TTS Server [![](https://img.shields.io/badge/Q%E7%BE%A4-124841768-blue)](https://jq.qq.com/?_wv=1027&k=y7WCDjEA)
本APP起初为阅读APP的网络朗读所用,在原有基础上,现已支持:
* 内置微软接口(Edge大声朗读、~~Azure演示API~~(已猝) ),可自定义HTTP请求,可导入其他本地TTS引擎,以及根据中文双引号的简单旁白/对话识别朗读
,还有自动重试,备用配置,文本替换等更多功能。点击展开查看截图
# Download
* [Stable - 稳定版(Releases)](https://github.com/jing332/tts-server-android/releases)
* [Dev - 开发版(Actions 需登陆Github账户)](https://github.com/jing332/tts-server-android/actions)
## Actions mirror
app: https://jing332.lanzn.com/b09jpjd2d
dev: https://jing332.lanzn.com/b09ig9qla
密码Password: 1234
# JS
#### 朗读规则
程序已内置旁白对话规则,通过 朗读规则管理 -> 加号 添加。
由用户制作的朗读规则:
1. 可识别角色名的旁白对话规则:
打开[此链接](https://www.gitlink.org.cn/geek/src/tree/master/ttsrv-speechRules-multiVoice.json),
复制全部内容到剪贴板,然后在规则管理界面导入。2. 5种语言检测: 复制 [此链接](https://jt12.de/SYV2_1/2023/04/16/10/08/08/1681610888643b588876c09.json),
规则管理界面选择网络链接导入。#### TTS插件
程序已内置Azure官方接口的TTS插件: 插件管理 -> 右上角添加 -> 保存 -> 设置变量 -> 填入Key与Region即可
讯飞WebAPI插件:复制 [此链接](https://jt12.de/SYV2_1/2023/04/16/10/25/17/1681611917643b5c8d61313.json),
插件管理界面选择网络链接导入,随后设置变量 AppId, ApiKey, ApiSecret即可。# Grateful
开源项目
| Application | Microsoft TTS |
|---------------------------------------------------------------------------------|-----------------------------------------------------------------------|
| [gedoor/legado](https://github.com/gedoor/legado) | [wxxxcxx/ms-ra-forwarder](https://github.com/wxxxcxx/ms-ra-forwarder) |
| [ag2s20150909/TTS](https://github.com/ag2s20150909/TTS) | [litcc/tts-server](https://github.com/litcc/tts-server) |
| [benjaminwan/ChineseTtsTflite](https://github.com/benjaminwan/ChineseTtsTflite) | [asters1/tts](https://github.com/asters1/tts) |
| [yellowgreatsun/MXTtsEngine](https://github.com/yellowgreatsun/MXTtsEngine) |
| [2dust/v2rayNG](https://github.com/2dust/v2rayNG) || Library | Description |
|-----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [dromara/hutool](https://github.com/dromara/hutool/) | 🍬A set of tools that keep Java sweet. |
| [LouisCAD/Splitties](https://github.com/LouisCAD/Splitties) | A collection of hand-crafted extensions for your Kotlin projects. |
| [getactivity/logcat](https://github.com/getactivity/logcat) | Android 日志打印框架,在手机上可以直接看到 Logcat 日志啦 |
| [rosuH/AndroidFilePicker](https://github.com/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](https://github.com/androidbroadcast/ViewBindingPropertyDelegate) | Make work with Android View Binding simpler |
| [zhanghai/AndroidFastScroll](https://github.com/zhanghai/AndroidFastScroll) | Fast scroll for Android RecyclerView and more |
| [Rosemoe/sora-editor](https://github.com/Rosemoe/sora-editor) | sora-editor is a cool and optimized code editor on Android platform |
| [gedoor/rhino-android](https://github.com/gedoor/rhino-android) | Give access to RhinoScriptEngine from the JSR223 interfaces on Android JRE. |
| [liangjingkanji/BRV](https://github.com/liangjingkanji/BRV) | Android上最好的RecyclerView框架, 比 BRVAH 更简单强大 |
| [liangjingkanji/Net](https://github.com/liangjingkanji/Net) | Android最好的网络请求工具, 比 Retrofit/OkGo 更简单易用 |
| [chibatching/kotpref](https://github.com/chibatching/kotpref) | Android SharedPreferences delegation library for Kotlin |
| [google/ExoPlayer](https://github.com/google/ExoPlayer) | An extensible media player for Android |
| [material-components-android](https://github.com/material-components/material-components-android) | Modular and customizable Material Design UI components for Android |
| [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization/) | Kotlin multiplatform / multi-format serialization |
| [kotlinx.coroutine](https://github.com/Kotlin/kotlinx.coroutines) | Library support for Kotlin coroutines |其他资源:
* [阿里巴巴IconFont](https://www.iconfont.cn/)
* [酷安@沉默_9520](http://www.coolapk.com/u/25956307) 本APP图标作者
# Build
### Android Studio:
在项目根目录下新建文件 `local.properties` 并写入如下内容:
```
KEY_PATH=E\:\\Android\\key\\sign.jks (签名文件)
KEY_PASSWORD= 密码
ALIAS_NAME= 别名
ALIAS_PASSWORD= 别名密码
```### Github Actions:
> 详见 https://www.cnblogs.com/jing332/p/17452492.html使用 Git Bash 对签名文件进行无换行Base64编码: `openssl base64 < key.jks | tr -d '\r\n' | tee key.jks.base64.txt`
分别添加如下四个安全变量 (Repository secrets):
> 前往以下链接:https://github.com/你的用户名/tts-server-android/settings/secrets/actions
* `ALIAS_NAME` 别名
* `ALIAS_PASSWORD` 别名密码
* `KEY_PASSWORD` 密码
* `KEY_STORE` 前面生成的 sign.jks.base64.txt 内容