added tts
This commit is contained in:
parent
dcb3e01faa
commit
3659d2c306
@ -10,6 +10,7 @@
|
|||||||
#include <libxml/HTMLparser.h>
|
#include <libxml/HTMLparser.h>
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
#include <libxml/xpath.h>
|
#include <libxml/xpath.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@ -107,6 +108,10 @@ void* company_refresh(void* arg)
|
|||||||
mvwprintw(window, START_ROW+5, i, " ");
|
mvwprintw(window, START_ROW+5, i, " ");
|
||||||
// print the funny reference
|
// print the funny reference
|
||||||
mvwprintw(window, START_ROW+5, START_COL, "%s", tagline);
|
mvwprintw(window, START_ROW+5, START_COL, "%s", tagline);
|
||||||
|
// say the funny reference
|
||||||
|
char buf[1024];
|
||||||
|
sprintf(buf, "espeak \"%s\" >/dev/null 2>&1", tagline);
|
||||||
|
system(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user