Commit ·
bb473c7
1
Parent(s): e3c5f70
fix
Browse files
server.js
CHANGED
|
@@ -16,7 +16,7 @@ app.get('/tts/:text', async (req, res) => {
|
|
| 16 |
let startTime=Date.now();
|
| 17 |
console.log('start /tts ' + startTime);
|
| 18 |
let text = req?.params?.text || 'test';
|
| 19 |
-
let subtext= text.substring(0,
|
| 20 |
try {
|
| 21 |
const response = await fetch("https://api.ttsopenai.com/api/v1/public/text-to-speech-stream", {
|
| 22 |
method: "POST",
|
|
|
|
| 16 |
let startTime=Date.now();
|
| 17 |
console.log('start /tts ' + startTime);
|
| 18 |
let text = req?.params?.text || 'test';
|
| 19 |
+
let subtext= text.substring(0, 498);
|
| 20 |
try {
|
| 21 |
const response = await fetch("https://api.ttsopenai.com/api/v1/public/text-to-speech-stream", {
|
| 22 |
method: "POST",
|