This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Cargo.toml
90 lines (69 loc) · 2.98 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "tts-server"
version = "0.3.3"
authors = ["litcc"]
edition = "2021"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
description = """TTS Api Server 软件仅供学习交流,严禁用于商业用途,请于24小时内删除!
微软官方的 Azure TTS 服务目前拥有一定的免费额度,如果免费额度对你来说够用的话,请支持官方的服务。
如果只需要为固定的文本生成语音,可以使用有声内容创作。它提供了更丰富的功能可以生成更自然的声音。
本项目构建的二进制程序仅供学习交流和参考,严禁用于商业用途,请于下载后24小时内删除!
目前已实现接口有:[微软文本转语音] 后续看情况可能会再加入其他接口。
具体使用方法请看 --help 中参数介绍,以及项目中 help.md 文档
"""
[dependencies]
clap = { version = "3", features = ["derive"] } # 命令行解析库
itertools = "0.10" # 迭代器工具库
fancy-regex = "0.11" # 正则库
log = "0.4" # 日志库
log4rs = "1" # 日志扩展库
thiserror = "1"
anyhow = "1"
#env_logger = "0.9.0" # 日志扩展库
num = "0.4" #计算库
uuid = { version = "1", features = ["v4"] } # uuid库
urlencoding = "2" # url编码解析库
rand = "0.8" # 随机数库
futures = "0.3" # 异步工具库
reqwest = { version = "0.11", features = ["json", "native-tls"] } # http 请求库
once_cell = "1"
bytes = "1"
serde = "1"
serde_json = "1"
bincode = "1"
actix-web = "4"
actix-http = "3" # web框架
#actix-rt = "2.7.0"
local_ipaddress = "0.1" # 获取本地ip
tokio-native-tls = "0.3"
## tokio-tungstenite 暂时不能升级,可能是库有问题了,或者是我用法出问题了,暂时没有分析
tokio-tungstenite = { version = "0.18", features = ["native-tls"] }
tokio = { version = "1.28", features = ["full"] } # 协程库
mime_guess = "2" # 文件类型检测
#event_bus = { path = "/mnt/work/code/Me/Rust/EventBus" }
event_bus = { git = "https://github.com/litcc/event_bus.git" }
chrono = "0.4" # 时间库
async-trait = "0.1"
base64 = "0.21"
rust-embed = { version = "6" } # 嵌入文件库 , optional = true
backon = "0.4" # 重试库
[profile.release]
opt-level = 'z'
#lto = true
#codegen-units = 1
panic = 'abort'
[features]
#default = []
# Build this crate in isolation, without using PyOxidizer.
#web-entrance = ["rust-embed"]
# Build this crate by executing a `pyoxidizer` executable to build
# required artifacts.
# Build this crate by reusing artifacts generated by `pyoxidizer` out-of-band.
# In this mode, the PYOXIDIZER_ARTIFACT_DIR environment variable can refer
# to the directory containing build artifacts produced by `pyoxidizer`. If not
# set, OUT_DIR will be used.
# This empty workspace table forces Cargo to treat this manifest as its
# own workspace, even if a parent directory defines a workspace. If you want
# this Rust project to exist as part of a larger workspace, simply delete this.
[workspace]