Discussions
Issue with StreamingAvatarSDK Integration and Voice Input via LiveKit
Dear HeyGen Team,
I have followed all the steps outlined in your documentation at Streaming API Integration with LiveKit. I have successfully connected to the LiveKit "room", retrieved the avatar data, and triggered the streaming.task endpoint to make the avatar speak the provided text. Additionally, I am able to listen for the avatar_start_talking and avatar_stop_talking events within the room.
I have also established a WebSocket connection using the following URL (with the required parameters):
wss://api.heygen.com/v1/ws/streaming.chat?session_id=...
The WebSocket connection is established successfully, but no data is transmitted afterward.
Furthermore, although I have manually triggered the streaming.start_listening and streaming.stop_listening endpoints, the user's audio input is not received by HeyGen. I can confirm that the audio is being sent to the LiveKit room—this is visible in the browser console logs—however, there is no corresponding response or event from the HeyGen side, neither via WebSocket nor through the room.
I am using Angular 14 for this project. Due to SDK compatibility issues with this version, I am utilizing version 2.0.3 of the LiveKit client library.
Could you please advise on what might be causing this issue and how it can be resolved?
Thank you.