Discussions
Video generation
I'm trying to generate a video from a motion capture where I added a sound effect beforehand.
But the videos come out without the sound effect.
What am I doing wrong?
I'm using this endpoint
https://api.heygen.com/v2/video/generate
I pass the motion ID and the path to the soundtrack with text for the animation, but the sound effects are lost
Hi, I am not aware of any 'motion ID' supported. Can you tell me which parameter in the API docs, providing a link, you are using for this 'motion id'?
As I said earlier I use {{baseUrl}}/v2/video/generate
with params like this
{
"title": "<my name>",
"video_inputs": [
{
"character": {
"type": "talking_photo",
"talking_photo_id": "<motion id>",
"scale":1.0,
"offset":{"x":0.0,"y":0.0},
"talking_style":"expressive",
"expression":"default",
"talking_photo_style":"circle"
},
"voice": {
"type": "audio",
"audio_url":"<my voice from cdn>"
}
}
],
"test": false,
"callback_id": null,
"dimension": {
"width": 1280,
"height": 720
}
}
And yes I get the video, but the sound effect that was on this motion is no longer there
?
Can you tell me what is the 'motion ID' you are using?
"talking_photo_id": "",
Again, I'm not sure where you get the term 'motion ID', as this should be an Avatar ID.
I believe that the sound effect is getting overwritten because you are using your own audio file. If you generate the video with Text and an AI Voice, does the sound effect stay in the background?
As an example
For generating video I use motion with ID 77d08de6090149e7a105be182029328e
This motion has a sound effect
And I get a video with ID 18ea33810fb14769aa6f18e9afb23130
Already without sound effect
Help me figure this out
When you submit a video with an Audio asset it will overwrite the background noise from the photo avatar look. If you use the normal text-to-speech then the background audio from the photo avatar will remain.
Is there a way to do what I need?
Video with my voice and sound effects
Unfortunately not, you will need to use a text-to-speech option, not sending audio of your voice.
ο»Ώ