Esempio n. 1
0
void KTTSDLib::slotTextFinished(const uint job)
{
    kdDebug(100200) << "---- KTTSDLib::slotTextFinished(" << job << ")" << endl;
    
    // check if List is empty. If yes, send signalFinished().
    if ( jobList.empty() ){
        kdDebug(100200) << "    All jobs processed." << endl;
        emit signalFinished();
    } else {
        sayText();
    }
}
Esempio n. 2
0
/*
 * Flush the buffer
 *
 * This will send the current contents up to and including the last space
 */
static void flushPhrase(void){

	if(phraseBuffer.datalength){
		// Write up to the last space
		phrase[phraseBuffer.datalength] = 0;
		sayText((char*)phrase);

		// Reset buffer to start
		bufferFlush(&phraseBuffer);
		phraseBuffer.dataindex=0;
	}
}