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