Hello, Ravichandra & welcome to LQ.
You're off the map here for standard uses of alsa. Your problem happens when you have
Code:
Text-to-speech ---->----> alsa-lib
I can't imagine the speed of text to speech being constant, so there must be instances where you run out of speech and the buffer has to feed. I imagine that's creating the buffer under-run.
If it keeps going, fine. I imagine it pukes, and exits. Solutions
- Use bigger buffers, or fill them before starting to hear them.
- Patch or hack to allow silence. This would give you unwanted pauses, which are probably better than unwanted exits.