aiTextToSpeech
parent
3a73d0a9be
commit
2593bfc7d9
|
@ -14,8 +14,8 @@ const aiTextToSpeech = async (req, res) => {
|
|||
"Ava": "Ivy",
|
||||
"Monstero": "Justin",
|
||||
"Dax": "Kevin",
|
||||
"Kai": "Daniele",
|
||||
"Yara": "Sally"
|
||||
"Kai": "Danielle",
|
||||
"Yara": "Salli"
|
||||
};
|
||||
|
||||
const { text, voiceId: frontendVoiceId } = req.body;
|
||||
|
@ -56,7 +56,7 @@ const aiTextToSpeech = async (req, res) => {
|
|||
formData.append('file1', audioBuffer, 'speech.mp3');
|
||||
formData.append('file2', textBuffer, 'text.txt');
|
||||
// formData.append('folder', folderName); // Send folder name
|
||||
// formData.append('bucket', 'docs'); // Adjust bucket
|
||||
formData.append('bucket', 'polly-bs'); // Adjust bucket
|
||||
|
||||
const response = await axios.post(
|
||||
'https://preschool-curriculum.in/api/one/v1/file/upload',
|
||||
|
|
Loading…
Reference in New Issue