PerformanC / NodeLink

Performant LavaLink alternative written with Node.Js
BSD 2-Clause "Simplified" License
38 stars 23 forks source link

[FR]: Wait x Milliseconds for startSpeakingEvent before sending Voice Websocket Data #34

Closed clapann closed 6 months ago

clapann commented 6 months ago

Description

Introduce a configuration setting that enables users to specify a delay before sending WebSocket data, awaiting a start-speaking event. This delay is designed to mitigate issues where a user's speech may be interrupted.

Reason

I think this would be great, since sometimes Discord decides to cut out your audio completely, therefore resulting in 2 different audio buffers instead of a single one for a sentence.

Example code

No response

Confirmations

Code of Conduct

ThePedroo commented 6 months ago

Landed on https://github.com/PerformanC/NodeLink/commit/9e37ba110707479f463bbc677d52cf37f5ded223.