Spaces:
Running
Running
Update api.js
Browse files
api.js
CHANGED
|
@@ -202,8 +202,9 @@ app.post('api/generate/speech', async (req, res) =>{
|
|
| 202 |
})
|
| 203 |
|
| 204 |
|
| 205 |
-
app.get('/api/hello',
|
| 206 |
-
|
|
|
|
| 207 |
res.end()
|
| 208 |
})
|
| 209 |
// This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table
|
|
|
|
| 202 |
})
|
| 203 |
|
| 204 |
|
| 205 |
+
app.get('/api/hello', (req, res) => {
|
| 206 |
+
res.setHeader("Content-Type", "application/json")
|
| 207 |
+
res.json({"hello": "goodbye"})
|
| 208 |
res.end()
|
| 209 |
})
|
| 210 |
// This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table
|