forked from zaigie/FunSpeech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (64 loc) · 1.77 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (64 loc) · 1.77 KB
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
[project]
name = "funspeech"
version = "1.0.0"
description = "基于FunASR的语音识别和CosyVoice的语音合成API服务"
readme = "README.md"
requires-python = ">=3.11,<3.12"
authors = [
{name = "Nexa Team"}
]
license = {text = "MIT"}
dependencies = [
"fastapi==0.115.6",
"uvicorn[standard]==0.30.0",
"python-multipart==0.0.6",
"funasr==1.2.6",
"librosa==0.9.2",
"requests==2.32.4",
"modelscope==1.20.0",
"soundfile==0.12.1",
"pydub==0.25.1",
"websockets==11.0",
"addict==2.4.0",
"datasets==4.0.0",
"wetext",
"numpy>=1.24.0,<2.0.0", # Updated for Python 3.12 compatibility
"scipy>=1.9.0,<2.0.0", # Updated for Python 3.12 compatibility
"httpx==0.28.1",
"torch==2.3.1", # Required for ASR (FunASR uses PyTorch)
"torchaudio==2.3.1", # Required for ASR audio processing
"setuptools", # Required for librosa (provides pkg_resources)
]
# TTS dependencies (not needed if only using ASR)
tts = [
"torch==2.3.1",
"torchaudio==2.3.1",
"diffusers>=0.25.0",
"transformers>=4.30.0",
"lightning>=2.0.0",
"conformer==0.3.2",
"onnx>=1.16.0",
"onnxruntime-gpu>=1.18.0",
]
[tool.hatch.build.targets.wheel]
packages = ["app"]
[dependency-groups]
dev = []
[tool.uv]
# Index resolution strategy: consider all indexes for best match
index-strategy = "unsafe-best-match"
[tool.uv.sources]
# Use CPU version of PyTorch from PyTorch's CPU wheel index
torch = { index = "pytorch-cpu" }
torchaudio = { index = "pytorch-cpu" }
[[tool.uv.index]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
explicit = false
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"