speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

speech-dispatcher makes pulseaudio eat cpu time


From: Jean-Noël AVILA
Subject: speech-dispatcher makes pulseaudio eat cpu time
Date: Mon, 7 Jan 2013 21:53:49 +0100

Dear Maintainer,

I just tried to have tts on my system and I noticed that if I use spd-say to 
use TTS with output as pulseaudio, after the end of the sentence, pulseaudio 
keeps waking up and sending some data regularly. I have to kill speech-
dispatcher to settle pulse-audio down again.

Otherwise, stracing pulseaudio shows the following:
 sudo strace -r -p 3720
Process 3720 attached - interrupt to quit
     0.000000 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN}, {fd=4, 
events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLIN}])
     0.301648 recvmsg(34, {msg_name(0)=NULL, 
msg_iov(1)=[{"\0\0\0\30\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], 
msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, 
cmsg_type=SCM_CREDENTIALS{pid=5816, uid=1000, gid=1000}}, msg_flags=0}, 0) = 
20
     0.000312 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN}, {fd=4, 
events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLIN}])
     0.000345 recvmsg(34, {msg_name(0)=NULL, 
msg_iov(1)=[{"L\0\0\0\16L\0\0\2AL\0\0\0\0TP\3532\274\0\16\257a", 24}], 
msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, 
cmsg_type=SCM_CREDENTIALS{pid=5816, uid=1000, gid=1000}}, msg_flags=0}, 0) = 
24
     0.000321 sendto(17, "\1\0\0\0\0\0\0\0", 8, MSG_NOSIGNAL, NULL, 0) = -1 
ENOTSOCK (Socket operation on non-socket)
     0.000285 write(17, "\1\0\0\0\0\0\0\0", 8) = 8
     0.000294 sendto(34, "\0\0\0S\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 
20, MSG_NOSIGNAL, NULL, 0) = 20
     0.000251 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN|POLLOUT}, 
{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLOUT}])
     0.000197 sendto(34, 
"L\0\0\0\2L\0\0\2AU\0\0\0\0\0\0\v_U\0\0\0\0\0\0\0\0000TP\353"..., 83, 
MSG_NOSIGNAL, NULL, 0) = 83
     0.000133 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN|POLLOUT}, 
{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLOUT}])
     0.000170 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN}, {fd=4, 
events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLIN}])
     1.499728 recvmsg(34, {msg_name(0)=NULL, 
msg_iov(1)=[{"\0\0\0\30\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], 
msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, 
cmsg_type=SCM_CREDENTIALS{pid=5816, uid=1000, gid=1000}}, msg_flags=0}, 0) = 
20
     0.000332 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN}, {fd=4, 
events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLIN}])
     0.000347 recvmsg(34, {msg_name(0)=NULL, 
msg_iov(1)=[{"L\0\0\0\16L\0\0\2BL\0\0\0\0TP\3532\276\0\7\26N", 24}], 
msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, 
cmsg_type=SCM_CREDENTIALS{pid=5816, uid=1000, gid=1000}}, msg_flags=0}, 0) = 
24
     0.000240 sendto(17, "\1\0\0\0\0\0\0\0", 8, MSG_NOSIGNAL, NULL, 0) = -1 
ENOTSOCK (Socket operation on non-socket)
     0.000090 write(17, "\1\0\0\0\0\0\0\0", 8) = 8
     0.000119 futex(0x113b5f0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
     0.000227 sendto(34, "\0\0\0S\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 
20, MSG_NOSIGNAL, NULL, 0) = 20
     0.000137 ppoll([{fd=5, events=POLLIN}, {fd=34, events=POLLIN|POLLOUT}, 
{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=33, events=POLLIN}, {fd=20, 
events=POLLIN}, {fd=21, events=POLLIN}, {fd=29, events=POLLIN}, {fd=32, 
events=POLLIN|POLLERR|POLLHUP}, {fd=31, events=POLLIN|POLLERR|POLLHUP}, 
{fd=31, events=0}, {fd=30, events=POLLIN}, {fd=23, events=POLLIN}, {fd=26, 
events=POLLIN}, {fd=16, events=POLLIN}, {fd=19, events=POLLIN}, {fd=15, 
events=POLLIN|POLLERR|POLLHUP}, {fd=15, events=0}, {fd=14, events=POLLIN}, 
{fd=13, events=POLLIN}, {fd=7, events=POLLIN}], 21, NULL, NULL, 8) = 1 
([{fd=34, revents=POLLOUT}])


Jean-No?l AVILA

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-rc2jna (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages speech-dispatcher depends on:
ii  adduser        3.113+nmu3
ii  dpkg           1.16.9
ii  install-info   4.13a.dfsg.1-10
ii  libao4         1.1.0-2
ii  libasound2     1.0.25-4
ii  libaudio2      1.9.3-5
ii  libc6          2.13-37
ii  libdotconf1.0  1.0.13-3
ii  libespeak1     1.46.02-2
ii  libflite1      1.4-release-6
ii  libglib2.0-0   2.33.12+really2.32.4-3
ii  libpulse0      2.0-6
ii  libspeechd2    0.7.1-6.2
ii  lsb-base       4.1+Debian8

Versions of packages speech-dispatcher recommends:
ii  pulseaudio  2.0-6

Versions of packages speech-dispatcher suggests:
pn  libttspico-utils            <none>
pn  speech-dispatcher-doc-cs    <none>
ii  speech-dispatcher-festival  0.7.1-6.2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]