Add a Script
🔤 Transforming words into sound with text-to-speech.
This page offers an example of writing a text-to-speech script, as it is required to create the video. The AI-powered text-to-speech API can improve accessibility for visually impaired users and enhance the user experience of various applications that require spoken audio output.
After adding an actor, you should fill in the script
parameter with a text that will be converted into a human-like speech.
A request example to add a script is as follows:
Caution:
Don't forget to replace the placeholder "YOUR API KEY" with your unique API key in the header. If you haven't obtained one yet, please contact us at [email protected], and we will provide one as soon as possible.
curl -X 'POST' \
'https://api.yepic.ai/v1/talkingphotos' \
-H 'accept: application/json' \
-H 'X-Api-Key: YOUR API KEY' \
-H 'Content-Type: application/json' \
-d
'
{
"parentId": null,
"groupId": null,
"draft": false,
"avatarId": "15a861f5-0f6e-4298-b26f-7c7e72c76dc3",
"avatarName": null,
"avatarUrl": null,
"fullFrame": true,
"dynamic": false,
"voiceId": "en-US-JennyMultilingualNeural",
"voiceOverId": "af-ZA-AdriNeural",
"voiceOverName": null,
"voiceOverUrl": "https://file.api.audio/voice-samples/adri.mp3",
"script": "Creating eye-catching videos is a must-have for anyone, not just marketers, as the Internet becomes synonymous with video.",
"videoFormat": "mp4",
"videoWidth": 256,
"videoHeight": 256,
"videoTitle": "My talking photo video title.",
"visibility": "Public"
}
'
📌 Need help?
Updated 10 days ago