added tts

This commit is contained in:
scoliono 2021-04-09 21:32:59 -07:00
parent dcb3e01faa
commit 3659d2c306
2 changed files with 7 additions and 0 deletions

View File

@ -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);
}

View File

@ -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.