Package: speech-dispatcher / 0.8.6-4+deb9u1

pulse-default-latency.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: speech-dispatcher defaults to extreme low latency
 speech-dispatcher requests a total latency of 1 ms, which in turn gives
 sub-ms latency inside the PulseAudio engine. This causes unnecessary CPU
 consumption, or underruns. I understand that you would want immediate
 feedback, but 20 ms seems more reasonable.
Author: David Henningsson <david.henningsson@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/1208826
Index: speech-dispatcher/src/audio/pulse.c
===================================================================
--- speech-dispatcher.orig/src/audio/pulse.c	2013-08-07 09:53:52.198165780 +1000
+++ speech-dispatcher/src/audio/pulse.c	2013-08-07 09:53:52.194165780 +1000
@@ -64,7 +64,8 @@
 
 /* This is the smallest audio sound we are expected to play immediately without buffering. */
 /* Changed to define on config file. Default is the same. */
-#define DEFAULT_PA_MIN_AUDIO_LENgTH 100
+/* Default to 20 ms of latency (1764 = 44100 * 0.020 * 2) */
+#define DEFAULT_PA_MIN_AUDIO_LENgTH 1764
 
 static int pulse_log_level;
 static char const *pulse_play_cmd = "paplay";
Index: speech-dispatcher/config/speechd.conf
===================================================================
--- speech-dispatcher.orig/config/speechd.conf	2013-08-07 09:53:52.198165780 +1000
+++ speech-dispatcher/config/speechd.conf	2013-08-07 09:53:52.194165780 +1000
@@ -171,7 +171,7 @@
 
 #AudioPulseServer "default"
 
-#AudioPulseMinLength 100
+#AudioPulseMinLength 1764
 
 # -- ALSA parameters --