chore: change DECTalk port to 33001, Morshu port to 33002, add AI context file
This commit is contained in:
@@ -6,15 +6,15 @@ Quick testing guide to verify everything works.
|
||||
|
||||
```bash
|
||||
cd ~/Desktop/ttstoy/dectalk-server
|
||||
PORT=3001 npm start
|
||||
PORT=33001 npm start
|
||||
```
|
||||
|
||||
You should see:
|
||||
```
|
||||
DECTalk TTS Server running on http://localhost:3001
|
||||
Health check: http://localhost:3001/health
|
||||
Simple API: http://localhost:3001/say?text=Hello
|
||||
MiniMax-compatible API: POST http://localhost:3001/v1/t2a_v2
|
||||
DECTalk TTS Server running on http://localhost:33001
|
||||
Health check: http://localhost:33001/health
|
||||
Simple API: http://localhost:33001/say?text=Hello
|
||||
MiniMax-compatible API: POST http://localhost:33001/v1/t2a_v2
|
||||
```
|
||||
|
||||
## Step 2: Test the API Directly
|
||||
@@ -23,10 +23,10 @@ Open a new terminal and test:
|
||||
|
||||
```bash
|
||||
# Test health check
|
||||
curl http://127.0.0.1:3001/health
|
||||
curl http://127.0.0.1:33001/health
|
||||
|
||||
# Test simple endpoint (saves to test.mp3)
|
||||
curl "http://127.0.0.1:3001/say?text=Hello%20world" -o test.mp3
|
||||
curl "http://127.0.0.1:33001/say?text=Hello%20world" -o test.mp3
|
||||
|
||||
# Play the audio
|
||||
ffplay test.mp3
|
||||
@@ -34,7 +34,7 @@ ffplay test.mp3
|
||||
mpv test.mp3
|
||||
|
||||
# Test MiniMax-compatible endpoint
|
||||
curl -X POST http://127.0.0.1:3001/v1/t2a_v2 \
|
||||
curl -X POST http://127.0.0.1:33001/v1/t2a_v2 \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"text": "Testing DECTalk compatibility", "voice_setting": {"voice_id": "default"}}' \
|
||||
| jq '.base_resp'
|
||||
@@ -53,7 +53,7 @@ Expected output:
|
||||
In Discord:
|
||||
|
||||
```
|
||||
[p]ttstoy dectalkurl http://127.0.0.1:3001
|
||||
[p]ttstoy dectalkurl http://127.0.0.1:33001
|
||||
[p]ttstoy mode dectalk
|
||||
[p]ttstoy mode
|
||||
```
|
||||
@@ -61,7 +61,7 @@ In Discord:
|
||||
You should see:
|
||||
```
|
||||
Current TTS Mode: 🤖 DECTALK
|
||||
DECTalk API URL: http://127.0.0.1:3001
|
||||
DECTalk API URL: http://127.0.0.1:33001
|
||||
```
|
||||
|
||||
## Step 4: Test TTS in Discord
|
||||
@@ -88,21 +88,21 @@ The bot should mix DECTalk voice with sound effects.
|
||||
### Server won't start (port in use)
|
||||
|
||||
```bash
|
||||
# Find what's using port 3001
|
||||
lsof -i :3001
|
||||
# Find what's using port 33001
|
||||
lsof -i :33001
|
||||
|
||||
# Use a different port
|
||||
PORT=3002 npm start
|
||||
PORT=33002 npm start
|
||||
|
||||
# Update TTSTOY
|
||||
[p]ttstoy dectalkurl http://127.0.0.1:3002
|
||||
[p]ttstoy dectalkurl http://127.0.0.1:33002
|
||||
```
|
||||
|
||||
### "Cannot reach DECTalk API"
|
||||
|
||||
1. Check server is running:
|
||||
```bash
|
||||
curl http://127.0.0.1:3001/health
|
||||
curl http://127.0.0.1:33001/health
|
||||
```
|
||||
|
||||
2. Check server logs in the terminal where you started it
|
||||
|
||||
Reference in New Issue
Block a user