Discussions

Ask a Question
Back to All

wher to get "audio_asset_id" ?

Hi

Thank you very much for your service. I am currently evaluating it and I already like it very much.

  1. I was able to create the following video manually, with a Photo Avatar. But I had to rework it, i.e. cut it to size
    https://ico-cdn.pages.dev/SampleSet/video/SampleSet.slide.video.ico-isms-27001-2022-foundation.start-DE.mp4
    I would now like to go into automation and create the videos via API V2.
    However, this requires that I have a scale of 1:1 and not 16:9 , Dimension 500pxx500px.
    https://docs.heygen.com/docs/using-audio-source-as-voice
    See example - would it work?

  2. I want to use allready-made audio files, so i don't want to use text to speech.

    "Now that your voice settings are in place, proceed with creating your video. Make sure to provide either an audio_url or an audio_asset_id."

    1. How do i get an audio_asset_id in V2? or do i have to use v1?
      https://docs.heygen.com/reference/upload-asset-1

    2. Can I list all existing audio files via V2?

If i would use URL the URL has to be public avaibale i guess :-()

Thank you very much!

Kind regards

Rob

curl -X POST https://api.heygen.com/v2/video/generate
-H 'X-Api-Key: '
-H 'Content-Type: application/json'
-d {
"video_inputs": [
{
"character": {
"type": "talking_photo",
"talking_photo_id": "15605f00f527410894dde377e87829e5",
"scale": 1.0,
"offset": {
"x": 0.0,
"y": 0.0
},
"matting": false,
"avatarStyle": "circle",
"super_resolution": false
},
"voice": {
"type": "audio",
"audio_asset_id": "<asset_id>"
},
"background": {
"type": "color",
"value": "#FAFAFA"
}
}
],
"test": true,
"dimension": {
"width": 500,
"height": 500
},
"aspect_ratio": 1:1,
"callback_id": null
}