aiTextToSpeech

galleryApi
Kar 2024-11-22 14:10:16 +05:30
parent 3a73d0a9be
commit 2593bfc7d9
1 changed files with 3 additions and 3 deletions

View File

@ -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',