Discussions

Ask a Question

Create chatbot

Hello HeyGen, I am trying to create a chatbot with the API, similar to the one you have, first I want to set a stable background, but when modifying the code it does not take effect and the other thing is if you help me or suggest how to create the script to call my video chat

ANSWERED

API for proccessing question and give answer with AI Avatar

so I want to input questions to my AI Avatar via API. However, when I read the documentation I didn't find an API to enter my question which was then processed by LLM and then answered using voice by AI Avatar sata. I only found an API to create my AI avatar for drive to speak not one that manages and answers questions.

What event assures me the session is ready?

I want to be able to invoke the streaming.task endpoint after the session is ready. I was checking for the peerConnection.iceConnectionState == "connected" in the peerConnection.oniceconnectionstatechange event, but I get the following error:

ANSWERED

I have a strong french canadian accent and my avatar is not reproducing it well

Dear HeyGen Friends,

ANSWERED

When will we have the ability to use audio variables in the Generate Video from Template V2 endpoint?

The documentation says that the ability to customize audio via the generate video from template endpoint is coming soon. Is there a timeframe when that functionality will be ready?

I have a problem with audio that changes tone over time.

Is it possible to set a tone that never changes?

ANSWERED

Transitions between clips API

I can easily create clips using the V2 API, each with their own background. Is there any way to control either the way the avatar ends a clip or use traditional transitions like a fade into the next clip? I'm finding that the avatar I'm using (I think Luke in a suit) moves ever so slightly while speaking so that the transition between the end of a clip and his starting position for the next clip is a little jarring.

ANSWERED

Error call https://api.heygen.com/v2/video/generate

Hi,

Couldn't start streaming

--- ServiceManager: Request
POST
https://api.heygen.com/v1/streaming.start
Headers:
Content-Type: application/json
Accept: application/json
x-api-key: ZjU3NzRjYjM5M2NjNGJiZmFiNWE0NmQ3MmZhYjRhNWItMTcxMDkwNzk0Mw==
Body:
{
"sdp" : {
"type" : "answer",
"sdp" : "v=0\r\no=- 1891831427269633215 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1 2\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS pion\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:h9W6\r\na=ice-pwd:8GddK72kWxJtF2Z5Mhf9k1Rt\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 A5:0F:29:0E:02:C7:15:3B:F7:72:87:30:87:7B:83:1E:43:A5:54:80:88:58:EB:EF:03:F5:30:6A:D7:D0:7A:83\r\na=setup:active\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=ssrc:1135250575 cname:J+Cph4BCs1aoNrUQ\r\na=ssrc:1135250575 msid:pion video\r\na=ssrc:1135250575 mslabel:pion\r\na=ssrc:1135250575 label:video\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:h9W6\r\na=ice-pwd:8GddK72kWxJtF2Z5Mhf9k1Rt\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 A5:0F:29:0E:02:C7:15:3B:F7:72:87:30:87:7B:83:1E:43:A5:54:80:88:58:EB:EF:03:F5:30:6A:D7:D0:7A:83\r\na=setup:active\r\na=mid:1\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=ssrc:102127718 cname:J+Cph4BCs1aoNrUQ\r\na=ssrc:102127718 msid:pion audio\r\na=ssrc:102127718 mslabel:pion\r\na=ssrc:102127718 label:audio\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:h9W6\r\na=ice-pwd:8GddK72kWxJtF2Z5Mhf9k1Rt\r\na=ice-options:trickle renomination\r\na=fingerprint:sha-256 A5:0F:29:0E:02:C7:15:3B:F7:72:87:30:87:7B:83:1E:43:A5:54:80:88:58:EB:EF:03:F5:30:6A:D7:D0:7A:83\r\na=setup:active\r\na=mid:2\r\na=sctp-port:5000\r\n"
},
"session_id" : "a5b3da13-f1e2-11ee-aa3d-8aaf6ccda56f"
}

Streaming Error

Hi,