PRATHAMESH75
297f5142a6
fix(discord): prepend warm-up silence so TTS first word isn't clipped
...
Discord's voice socket needs a brief warm-up before receiving clients
actually hear audio; the first ~100-200ms is lost, clipping the first
word/syllable of TTS playback. Prepend a configurable lead of silence to
speech on both playback paths:
- Mixer path: new _lead_silence_bytes() helper prepends PCM silence
(BYTES_PER_MS constant added to voice_mixer.py) before play_speech, on
both the reply and the pre-tool ack.
- Legacy FFmpegPCMAudio path: apply -af adelay=<ms>:all=1.
Tunable via discord.voice_fx.lead_silence_ms (default 200, 0 disables).
Fixes #66827
2026-07-28 11:56:37 -07:00
..
2026-07-25 18:06:32 -07:00
2026-07-22 12:10:58 -05:00
2026-07-28 11:54:46 -07:00
2026-07-23 05:45:17 +00:00
2026-07-28 08:10:58 -07:00
2026-07-26 03:38:23 -05:00
2026-07-26 16:52:25 +10:00
2026-07-28 11:52:47 -07:00
2026-07-27 19:19:01 +05:30
2026-07-28 08:25:25 -07:00
2026-07-28 11:56:37 -07:00
2026-07-28 11:54:01 -07:00
2026-07-17 06:53:38 -07:00
2026-07-24 07:53:12 -07:00
2026-07-24 13:00:53 +05:30
2026-07-28 11:54:46 -07:00
2026-07-25 22:46:35 -07:00
2026-07-28 08:25:25 -07:00
2026-07-27 21:10:51 -07:00
2026-07-22 03:20:45 -07:00
2026-07-26 20:59:26 -07:00
2026-07-24 16:00:34 -07:00
2026-07-28 11:55:48 -07:00
2026-07-28 19:37:14 +05:30
2026-07-26 16:01:32 -07:00
2026-07-22 04:40:07 -07:00
2026-07-23 07:24:46 -07:00
2026-07-22 04:39:28 -07:00
2026-07-25 07:17:52 -07:00
2026-07-23 11:44:43 -07:00
2026-07-28 10:07:18 -07:00
2026-07-22 03:20:25 -07:00
2026-07-22 04:39:17 -07:00
2026-07-22 10:35:04 -07:00
2026-07-20 05:39:09 -07:00
2026-07-24 17:10:39 -07:00
2026-07-18 00:34:54 -04:00
2026-07-25 22:47:07 -07:00
2026-07-27 17:27:38 -07:00
2026-07-25 21:44:43 -07:00
2026-07-28 19:07:28 +05:30
2026-07-16 12:48:48 -07:00
2026-07-17 20:55:24 +00:00
2026-07-18 19:18:03 +05:30
2026-07-26 19:30:32 -07:00
2026-07-18 18:40:59 -04:00
2026-07-28 11:53:12 -07:00
2026-07-26 16:06:50 -05:00
2026-07-24 09:49:00 -07:00
2026-07-24 09:49:00 -07:00
2026-07-24 09:49:00 -07:00
2026-07-24 21:20:52 -05:00
2026-07-21 12:15:46 +05:30
2026-07-27 21:10:51 -07:00
2026-07-22 03:19:32 -07:00
2026-07-22 16:51:01 -04:00
2026-07-26 19:29:07 -07:00
2026-07-27 21:10:51 -07:00
2026-07-16 19:48:47 -04:00
2026-07-25 07:09:22 -07:00
2026-07-22 07:56:47 -07:00
2026-07-28 20:29:44 +05:30
2026-07-26 02:58:20 -05:00
2026-07-22 21:14:44 -07:00
2026-07-18 04:15:13 -07:00
2026-07-25 21:44:43 -07:00
2026-07-25 21:44:43 -07:00
2026-07-22 04:42:50 -07:00
2026-07-18 01:11:03 -07:00
2026-07-23 21:06:47 -07:00
2026-07-23 16:21:03 -07:00
2026-07-21 12:43:27 -07:00
2026-07-28 01:48:08 -05:00
2026-07-28 12:11:52 -05:00
2026-07-26 14:14:03 -07:00
2026-07-16 15:23:32 -04:00
2026-07-16 14:43:14 +02:00
2026-07-24 11:45:57 -07:00
2026-07-24 23:06:05 -07:00