Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ef6aa93
feat: Add Dia TTS Server Super Protocol integration
Jun 23, 2025
c202194
feat: Add Dia TTS Server Super Protocol integration (main files)
Jun 23, 2025
98d05ef
feat: Add Dia-TTS-Server source code (without models)
Jun 23, 2025
eeb1184
chore: Remove compiled JS files from src, update .gitignore
Jun 23, 2025
5e041f3
chore: Remove compiled .js files from repository
Jun 23, 2025
b875558
fix(dia-tts): Tunnel client integration
marchuk-vlad Jun 25, 2025
c81df59
fix: Convert dia-tts-server to proper git submodule
igotstatik Jun 27, 2025
c7a2049
Merge pull request #1 from igotstatik/fix/dia-tts-solution
igotstatik Jun 27, 2025
8ea2d2a
Add Dia_tts submodule
igotstatik Jun 27, 2025
0722211
Add Dia_tts submodule
igotstatik Jun 27, 2025
01dabf8
Merge branch 'fix/dia-tts-solution'
igotstatik Jun 27, 2025
70160b8
Rename submodule to dia-tts-server
igotstatik Jun 27, 2025
cf645a7
Replace regular folder with submodule
igotstatik Jun 27, 2025
32677a5
fix: correct config.json error, fix Dockerfile env issue, add submodule
Jun 27, 2025
8078544
update Dockerfile
igotstatik Jul 1, 2025
3f38fc7
Docker compose added
Jul 2, 2025
d92546a
fix(docker-compose): update tunnel-client-certs input path from input…
Jul 2, 2025
36e1be8
added logic with adding model from sp/inputs/
igotstatik Jul 7, 2025
29f1b2f
feat(dia-tts): Setup model_cache to input-0001
marchuk-vlad Jul 9, 2025
1015102
final edits
igotstatik Jul 9, 2025
ccbf0e0
Adding an open_webui implementation with Superprotocol without the ab…
Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ sp-secrets
sp-inputs
sp-configurations
sp-certs

CLAUDE.md
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@
[submodule "ComfyUI/ComfyUI"]
path = ComfyUI/ComfyUI
url = https://github.com/comfyanonymous/ComfyUI

[submodule "Dia TTS Server/dia-tts-server"]
path = Dia TTS Server/dia-tts-server
url = https://github.com/devnen/Dia-TTS-Server.git
[submodule "open_webui/open-webui"]
path = open_webui/open-webui
url = https://github.com/open-webui/open-webui.git
Comment on lines +9 to +14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Submodule paths with spaces are brittle – rename or quote consistently.

Dia TTS Server/dia-tts-server contains spaces, which can break tooling (CI scripts, Docker COPY, Makefiles) unless every reference is properly quoted. Consider switching to a hyphenated path, or—at minimum—verify all scripts handle it correctly.

-[submodule "Dia TTS Server/dia-tts-server"]
-	path = Dia TTS Server/dia-tts-server
+[# example – pick a consistent, no-space alias]
+[submodule "Dia-TTS-Server"]
+	path = Dia-TTS-Server

Would you confirm whether any existing scripts already assume a no-space path? If so, renaming now will prevent silent breakage later.


🏁 Script executed:

#!/bin/bash
# Search for any references to the submodule path with and without spaces
rg -n "Dia TTS Server"
rg -n "dia-tts-server"
rg -n "Dia-TTS-Server"

Length of output: 1003


Rename submodule directory to a hyphenated path (no spaces)

We found several unquoted references that will break if the on-disk path contains spaces:

• Dockerfile (Dia TTS Server/Dockerfile):
COPY dia-tts-server ./dia-tts-server
• docker-compose.yml (Dia TTS Server/docker-compose.yml):
volumes:
- ./dia-tts-server/model_cache:/sp/inputs/input-0001
• server-config.ts (Dia TTS Server/src/server-config.ts):
diaServerPath: path.join(__dirname, '../dia-tts-server')

Please update your .gitmodules entry and corresponding directory name:

-[submodule "Dia TTS Server/dia-tts-server"]
-	path = Dia TTS Server/dia-tts-server
+[submodule "Dia-TTS-Server"]
+	path = Dia-TTS-Server
 	url = https://github.com/devnen/Dia-TTS-Server.git

Then rename the folder on disk (and in any CI/Makefiles) to Dia-TTS-Server or flatten to dia-tts-server, and adjust all relative paths accordingly.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
[submodule "Dia TTS Server/dia-tts-server"]
path = Dia TTS Server/dia-tts-server
url = https://github.com/devnen/Dia-TTS-Server.git
[submodule "open_webui/open-webui"]
path = open_webui/open-webui
url = https://github.com/open-webui/open-webui.git
[submodule "Dia-TTS-Server"]
path = Dia-TTS-Server
url = https://github.com/devnen/Dia-TTS-Server.git
[submodule "open_webui/open-webui"]
path = open_webui/open-webui
url = https://github.com/open-webui/open-webui.git
🤖 Prompt for AI Agents
In the .gitmodules file around lines 9 to 14, the submodule directory "Dia TTS
Server/dia-tts-server" contains spaces which cause issues in unquoted path
references. Rename the submodule directory path to use hyphens instead of
spaces, such as "Dia-TTS-Server/dia-tts-server" or
"dia-tts-server/dia-tts-server". Update the .gitmodules file accordingly and
rename the actual folder on disk to match. Also, adjust all related references
in Dockerfile, docker-compose.yml, server-config.ts, CI scripts, and Makefiles
to use the new hyphenated path.

11 changes: 11 additions & 0 deletions Dia TTS Server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
.git
.gitignore
*.md
!.env.example
test-*.pem
test-*.crt
*.log
.vscode
.idea
4 changes: 4 additions & 0 deletions Dia TTS Server/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LOG_LEVEL=trace
BLOCKCHAIN_URL=http://127.0.0.1:8545
BLOCKCHAIN_CONTRACT_ADDRESS=0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0

28 changes: 28 additions & 0 deletions Dia TTS Server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Исключаем тяжелые файлы из dia-tts-server
dia-tts-server/model_cache/
dia-tts-server/outputs/
dia-tts-server/reference_audio/
dia-tts-server/voices/
dia-tts-server/__pycache__/
dia-tts-server/*.pth
dia-tts-server/*.pt
dia-tts-server/*.bin
dia-tts-server/*.safetensors
dia-tts-server/venv/
certs/*
tunnel-client-certs/*
# Большие бинарники
spctl
model/

# Локальные тесты
test-*.pem
test-*.crt
.env
error.log

# TypeScript build artifacts
src/*.js
src/*.js.map
dist/
node_modules/
43 changes: 43 additions & 0 deletions Dia TTS Server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Node.js build stage
FROM node:20-bookworm AS builder
WORKDIR /app
COPY package*.json tsconfig*.json ./
RUN npm ci
COPY src ./src
COPY .env.example .env
RUN npm run build && npm ci --omit=dev

# Final image with PyTorch and Node.js
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime

ENV DEBIAN_FRONTEND=noninteractive \
PIP_PREFER_BINARY=1 \
PIP_ROOT_USER_ACTION=ignore \
PYTHONUNBUFFERED=1 \
LOG_LEVEL=info \
INPUT_DATA_FOLDER=/sp/inputs

# Install Node.js 20 from official repository
RUN apt-get update && apt-get install -y curl \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs git git-lfs build-essential libgl1-mesa-glx libsndfile1 ffmpeg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

WORKDIR /opt/app

# Copy built Node.js application from builder
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/.env ./.env

# Copy and install Python dependencies
COPY dia-tts-server ./dia-tts-server
RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu124 \
&& pip install --no-cache-dir -r dia-tts-server/requirements.txt

# Create necessary directories
RUN mkdir -p /sp/inputs /sp/outputs /sp/secrets

ENTRYPOINT ["node", "dist/index.js"]

1 change: 1 addition & 0 deletions Dia TTS Server/dia-tts-server
Submodule dia-tts-server added at 3e428f
17 changes: 17 additions & 0 deletions Dia TTS Server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:

dia-tts-server:
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
volumes:
- ./certs:/sp/certs
- ./tunnel-client-certs:/sp/inputs/input-0002
# Mount standard model_cache and create separate model folder
- ./dia-tts-server/model_cache:/sp/inputs/input-0001
environment:
# Standard settings
- DIA_MODEL_REPO_ID=ttj/dia-1.6b-safetensors
- DIA_MODEL_CONFIG_FILENAME=config.json
- DIA_MODEL_WEIGHTS_FILENAME=dia-v0_1_bf16.safetensors
Loading