Discussions
Retaining the conversation context
I'm using your streaming avatar demo on my localhost, but the avatar keeps resetting (losing context of previous entries) every time I hit "TALK". How can I get it to keep the previous entries in memory?
Posted by JR 15 days ago
l am trying to submit a video but it keeps saying " Should have at least one scene "
Hi, l am trying to submit a video but it keeps saying " Should have at least one scene " can anyone help me ?thanks
Posted by Liz Ma 15 days ago
video to video
I uploaded a video file and then try to convert in AI video using your apis but throw error voice is not audio type. So how to resolve it?
Posted by vishal misrha 15 days ago
Streaming API - session start error
Hi, I am getting the following response when I try to start a session
{"code":400,"message":"peer start failed,please check the answer"}, below is my code for your reference
<br>
peerConnection.createAnswer().then(createdDescription).catch(errorHandler);
createdDescription = function(description) {
peerConnection.setLocalDescription(description).then(() => {
<br>
me.syncCall('<https://api.heygen.com/v1/streaming.start'>, 'post', JSON.stringify({ session_id: me.session.data.session_id, sdp : peerConnection.localDescription }))
}).catch(errorHandler);
}
Posted by null 16 days ago
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
Posted by JC 17 days ago
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:
```json
{"code":10002,"message":"session state wrong: connecting"}
```
What event is the correct one to look for to be sure the session is connected and ready to send tasks?
Thank you
Posted by Jose Galindo 18 days ago
I have a problem with audio that changes tone over time.
Is it possible to set a tone that never changes?
Posted by Hwang yeo ho su a 19 days ago
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"
}
***
\--- ServiceManager: Response
<https://api.heygen.com/v1/streaming.start>
400 bad request
Headers:
Server: gunicorn
Date: Wed, 03 Apr 2024 17:52:59 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 54
Body:
{
"message" : "session state wrong: closed",
"code" : 10005
}
***
Posted by Kathir 24 days ago
Streaming Error
Hi,
I have added the VP8 codec and getting the following error. Help me to resolve.
\--- ServiceManager: Request
POST <https://api.heygen.com/v1/streaming.start>
Headers:
Accept: application/json
x-api-key: ZjU3NzRjYjM5M2NjNGJiZmFiNWE0NmQ3MmZhYjRhNWItMTcxMDkwNzk0Mw==
Content-Type: application/json
Body:
{
"sdp" : {
"sdp" : "v=0\\r\\no=- 6550805846016689436 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:77fq\\r\\na=ice-pwd:otDBOx0mBba4JKXTHget8Nuj\\r\\na=ice-options:trickle renomination\\r\\na=fingerprint:sha-256 B5:C6:80:36:14:04:A6:16:A0:C4:E2:77:0A:D9:83:45:0E:DE:96:2D:2A:AB:20:A7:A6:42:59:1C:6D:43:7D:46\\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:809998815 cname:SuCI1nXLLeM5j0U0\\r\\na=ssrc:809998815 msid:pion video\\r\\na=ssrc:809998815 mslabel:pion\\r\\na=ssrc:809998815 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:77fq\\r\\na=ice-pwd:otDBOx0mBba4JKXTHget8Nuj\\r\\na=ice-options:trickle renomination\\r\\na=fingerprint:sha-256 B5:C6:80:36:14:04:A6:16:A0:C4:E2:77:0A:D9:83:45:0E:DE:96:2D:2A:AB:20:A7:A6:42:59:1C:6D:43:7D:46\\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:2071616269 cname:SuCI1nXLLeM5j0U0\\r\\na=ssrc:2071616269 msid:pion audio\\r\\na=ssrc:2071616269 mslabel:pion\\r\\na=ssrc:2071616269 label:audio\\r\\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\\r\\nc=IN IP4 0.0.0.0\\r\\na=ice-ufrag:77fq\\r\\na=ice-pwd:otDBOx0mBba4JKXTHget8Nuj\\r\\na=ice-options:trickle renomination\\r\\na=fingerprint:sha-256 B5:C6:80:36:14:04:A6:16:A0:C4:E2:77:0A:D9:83:45:0E:DE:96:2D:2A:AB:20:A7:A6:42:59:1C:6D:43:7D:46\\r\\na=setup:active\\r\\na=mid:2\\r\\na=sctp-port:5000\\r\\n",
"type" : "answer"
},
"session_id" : "7c1e9df3-f181-11ee-8a17-76281e342ddf"
}
Task .\<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={\_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x280fb1470 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={\_kCFStreamErrorCodeKey=-2102, \_kCFStreamErrorDomainKey=4}}, \_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .\<1>, \_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .\<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=<https://api.heygen.com/v1/streaming.start>, NSErrorFailingURLKey=<https://api.heygen.com/v1/streaming.start>, \_kCFStreamErrorDomainKey=4}
Posted by Kathir 24 days ago
"tts Request error" while editing scripts
I'm getting this error while trying to edit a video text script. Appears to block any other possible action on the video. I'd appreciate any help, or possible workaround. Thanks.
Posted by Zeke about 1 month ago