Skip to content

Commit

Permalink
Back-End: Text to speech api temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
king112ola committed Oct 29, 2024
1 parent c34c102 commit bc99f79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Back-End/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,10 +790,16 @@ app.post('/api/v1/T2SEDEN', async (req, res) => {

}


try {

let T2SEDENAudio_resource_url = await createTextToSpeechFromEden('lovoai')

res.status(200).send(JSON.stringify([
{ audioOnIpfs: T2SEDENAudio_resource_url },
{ promptOnIpfs: 'Chatgpt-659.prompt.json' }
]));

return
downloadT2SEDENAudio(T2SEDENAudio_resource_url, 'audio/T2SEDEN', function (callbacks) {
uploadToIpfs_Moralis(callbacks, prompt, 'T2SEDEN').then((resultIpfsLinks) => {
res.status(200).send(resultIpfsLinks)
Expand Down

0 comments on commit bc99f79

Please sign in to comment.