added tts
This commit is contained in:
parent
dcb3e01faa
commit
3659d2c306
@ -10,6 +10,7 @@
|
||||
#include <libxml/HTMLparser.h>
|
||||
#include <libxml/tree.h>
|
||||
#include <libxml/xpath.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -107,6 +108,10 @@ void* company_refresh(void* arg)
|
||||
mvwprintw(window, START_ROW+5, i, " ");
|
||||
// print the funny reference
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -12,6 +12,8 @@ Best viewed on a wall-mounted 4:3 monitor with a VGA font.
|
||||
|
||||
- libxml2.2
|
||||
|
||||
- espeak (not as a library, just the program)
|
||||
|
||||
## Building
|
||||
|
||||
If you're on Windows you're fucked.
|
||||
|
Loading…
x
Reference in New Issue
Block a user