speechd-discuss
[Top][All Lists]
Advanced

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

pulseaudio problems again


From: Jeremy Whiting
Subject: pulseaudio problems again
Date: Fri, 1 May 2015 14:17:23 -0600

Yes, it's intermittent for sure. I can go for days without having this
issue, or have it clear up within a few minutes sometimes. I think
Luke described the same problem on the list in February. Changing the
tlength requested in the code seems to make it work much better here
so far.

On Fri, May 1, 2015 at 2:06 PM, Micha? Zegan <webczat_200 at poczta.onet.pl> 
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Does it work like so for the whole time, or it sounds like that for
> some time and then sounds normally?
>
> W dniu 2015-05-01 o 22:04, Jeremy Whiting pisze:
>> When I log in to my computer, play music in amarok, if
>> speech-dispatcher is running, the music is super choppy, if I kill
>> speech-dispatcher, the music is smooth and sounds fine. Starting
>> speech-dispatcher again the music becomes choppy again.
>>
>> On Fri, May 1, 2015 at 9:55 AM, Micha? Zegan
>> <webczat_200 at poczta.onet.pl> wrote: Just for sure, can you tell me
>> what issue are you exactly getting?
>>
>> W dniu 2015-05-01 o 07:42, Jeremy Whiting pisze:
>>>>> Hey all,
>>>>>
>>>>> I hit this issue this evening a bit (have hit it off and on
>>>>> lately) so I asked in #pulseaudio and got some suggestions. I
>>>>> first tried using libao, but with that I got no speech at
>>>>> all. At any rate, it seems we are asking for too small of a
>>>>> tlength in the bufferAttr we pass in to pa_simple_new. The
>>>>> default in the code is 100, and it's taking a value from the
>>>>> config also. default of 100. If I set it to something much
>>>>> bigger like 4096, everything sounds fine (and pacmd
>>>>> list-input-sinks shows the latency we are asking for as much
>>>>> longer than .50ms. I gather that ideally we should calculate
>>>>> that from the sample itself. I.e with a 30ms latency and a
>>>>> sample of 22050Hz (which I'm getting here from espeak) * 0.03
>>>>> seconds (30ms) * 1 channel * 2 bytes because of the 16 bit
>>>>> sample we should be asking for 1324, not 100. If that makes
>>>>> sense to everyone I'll put together a patch that does the
>>>>> calculation based on the sample tomorrow.
>>>>>
>>>>> thanks, Jeremy
>>>>>
>>>>> On Wed, Feb 25, 2015 at 3:02 PM, Micha? Zegan
>>>>> <webczat_200 at poczta.onet.pl> wrote: Hey.
>>>>>
>>>>> I have installed archlinux with pulse/speech-dispatcher
>>>>> compiled with libao, set libao as my default module, and set
>>>>> libao to use pulse. It seems that at the moment everything
>>>>> mostly works, like it still happens that there is a bad sound
>>>>> on login or on login screen, but it is far better, and for a
>>>>> very short period of time. After that, the sound of espeak is
>>>>> okay, unless someone overuses the cpu of course. On a side
>>>>> note, I am using teamtalk and when there are too many people
>>>>> then the effect is sometimes a little bit similar to the
>>>>> thing that happens on the beginning of the session so I am
>>>>> wondering if this is the same issue and what it actually is
>>>>> :O anyway libao seems to be better, so if you have this
>>>>> problem you can test it yourself to confirm if it's gone.
>>>>>>
>>>>>> _______________________________________________ Speechd
>>>>>> mailing list Speechd at lists.freebsoft.org
>>>>>> http://lists.freebsoft.org/mailman/listinfo/speechd
>>>
>>> _______________________________________________ Speechd mailing
>>> list Speechd at lists.freebsoft.org
>>> http://lists.freebsoft.org/mailman/listinfo/speechd
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQIcBAEBAgAGBQJVQ9zCAAoJEHb1CzgxXKwY1rcP+waYJutIanPboyreUbZmi17j
> 9oCg3KUZYBemuWi6EJUmnqQEK2Vu+5J/aMtLnIGCCL/e06V8Hoj8ksuz9ci7E9Fp
> BWtnWeiV2w2oVbMJ624+OIFEf9dHY4WgeJggXhEwEWz/6MHjvX9vk4vw6JZuye1S
> TlxTMSeYPTcc8SvIyfwDg8sjqh2FcpZWCbiiFt2yj0e7oyQ+EpBOlKOyLuDM4Oix
> yoxl69x4pGZ47WnalCayFVVb0YEim2ALY8nBoEdFNfr05T/y4LMZbI0H4VOzJuPw
> nO3OfVJV/EsCcwE9CoxqbO3/LFUMQlgpG1WDIYn2eYWovmOpXf1wLh6HaMmfXm6U
> vFXid4Gp+rIxin87DrR+G/ew9vgf5dsT4fmafG8P0IE1tYBKYwstaqIRlUnFoDz6
> tOy7KIcJBLyIbdlK8Vnvla0BoQP5j1VOAl9vtEc9U7monW0ut8t7EoBJYgJcMj9g
> VWrN8gCaCLhsdPZ7AhxDgrnNXhyr1pGNlrirYdZUL/DESHfoXCPOLWQnmCQlVUUf
> /FhGlTSfL4Q3c6nUsT/lJAep0X9EjSdSCPKo1xuSAbInwb4b0VRsvTY9sHYasbIZ
> 2WEeAKCJopDCmMmfWhQqlpXUoIEGiQDLl+8vVemfzIj1Ch5+gQEjjkW1PrCW6otm
> qiW0TAy6Qyk8HzRoj0YS
> =mT9q
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speechd mailing list
> Speechd at lists.freebsoft.org
> http://lists.freebsoft.org/mailman/listinfo/speechd



reply via email to

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