Skip to content

Commit 68cc148

Browse files
committed
ARM64 Compatibility, dependencies fix
1 parent 8d1013c commit 68cc148

File tree

4 files changed

+22
-38
lines changed

4 files changed

+22
-38
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Notable changes to this project will be documented in this file.
44

5+
## [v0.2.0post1] - 2025-02-07
6+
- Fix: Building Kokoro from source with adjustments, to avoid CUDA lock
7+
- Fixed ARM64 compatibility on Spacy dep to avoid emulation slowdown
8+
- Added g++ for Japanese language support
9+
- Temporarily disabled Vietnamese language support due to ARM64 compatibility issues
10+
511
## [v0.2.0-pre] - 2025-02-06
612
### Added
713
- Complete Model Overhaul:

api/src/models/v1_0/config.json

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,15 @@
11
{
22
"istftnet": {
3-
"upsample_kernel_sizes": [
4-
20,
5-
12
6-
],
7-
"upsample_rates": [
8-
10,
9-
6
10-
],
3+
"upsample_kernel_sizes": [20, 12],
4+
"upsample_rates": [10, 6],
115
"gen_istft_hop_size": 5,
126
"gen_istft_n_fft": 20,
137
"resblock_dilation_sizes": [
14-
[
15-
1,
16-
3,
17-
5
18-
],
19-
[
20-
1,
21-
3,
22-
5
23-
],
24-
[
25-
1,
26-
3,
27-
5
28-
]
29-
],
30-
"resblock_kernel_sizes": [
31-
3,
32-
7,
33-
11
8+
[1, 3, 5],
9+
[1, 3, 5],
10+
[1, 3, 5]
3411
],
12+
"resblock_kernel_sizes": [3, 7, 11],
3513
"upsample_initial_channel": 512
3614
},
3715
"dim_in": 64,
@@ -68,13 +46,13 @@
6846
"“": 14,
6947
"”": 15,
7048
" ": 16,
71-
"̃": 17,
49+
"\u0303": 17,
7250
"ʣ": 18,
7351
"ʥ": 19,
7452
"ʦ": 20,
7553
"ʨ": 21,
7654
"ᵝ": 22,
77-
"": 23,
55+
"\uAB67": 23,
7856
"A": 24,
7957
"I": 25,
8058
"O": 31,

docker/cpu/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM python:3.10-slim
1+
FROM python:3.10-slim
22

33
# Install dependencies and check espeak location
44
RUN apt-get update && apt-get install -y \
@@ -8,10 +8,11 @@ RUN apt-get update && apt-get install -y \
88
libsndfile1 \
99
curl \
1010
ffmpeg \
11+
g++ \
1112
&& apt-get clean \
1213
&& rm -rf /var/lib/apt/lists/* \
1314
&& mkdir -p /usr/share/espeak-ng-data \
14-
&& ln -s /usr/lib/x86_64-linux-gnu/espeak-ng-data/* /usr/share/espeak-ng-data/
15+
&& ln -s /usr/lib/*/espeak-ng-data/* /usr/share/espeak-ng-data/
1516

1617
# Install UV using the installer script
1718
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
@@ -57,4 +58,4 @@ RUN if [ "$DOWNLOAD_MODEL" = "true" ]; then \
5758

5859
ENV DEVICE="cpu"
5960
# Run FastAPI server through entrypoint.sh
60-
CMD ["./entrypoint.sh"]
61+
CMD ["./entrypoint.sh"]

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ dependencies = [
3333
"matplotlib>=3.10.0",
3434
"mutagen>=1.47.0",
3535
"psutil>=6.1.1",
36-
"kokoro==0.7.9",
37-
'misaki[en,ja,ko,zh,vi]==0.7.9',
38-
"spacy>=3.7.6",
39-
"en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl"
36+
"kokoro @ git+https://github.com/hexgrad/kokoro.git@31a2b6337b8c1b1418ef68c48142328f640da938",
37+
'misaki[en,ja,ko,zh] @ git+https://github.com/hexgrad/misaki.git@ebc76c21b66c5fc4866ed0ec234047177b396170',
38+
"spacy==3.7.2",
39+
"en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl"
4040
]
4141

4242
[project.optional-dependencies]
@@ -51,7 +51,6 @@ test = [
5151
"pytest-cov==4.1.0",
5252
"httpx==0.26.0",
5353
"pytest-asyncio==0.23.5",
54-
"gradio>=5",
5554
"openai>=1.59.6",
5655
]
5756

0 commit comments

Comments
 (0)