tiro
09/10/2025, 9:07 AMChiranjeet Mishra
09/12/2025, 7:13 AMtrack-started event manually by adding your logic after the event is triggered. Here’s a general approach:
1. **Capture the Track**: When you receive a track-started event, intercept the event and obtain the media stream track.
2. **Custom Playback**: Use your own Three.js audio integration by applying the captured audio track to your Three.js audio context or audio nodes.
3. **Prevent Default Audio Element**: After setting up your custom playback, you might want to explore modifying or removing the default audio element if it appears. However, the best practice is to configure your application to ignore or hide this element if you cannot avoid its creation without modifying the SDK source.
If SDK modifications are an option, consider contributing to its codebase or using a fork of the library where you can modify the code according to your needs.
For more information on managing audio within the Web SDK, you can refer to the relevant [Web SDK documentation](https://docs.vapi.ai/chat/web-widget).