Statistics
| Branch: | Revision:

root / tts.c

History | View | Annotate | Download (567 Bytes)

1 0:3c15de202295 ee11d037
#include <stdio.h>
2
#include <curses.h>
3
4
int main ()
5
{
6
  char string [100];
7
  char cmd[115];
8
  char ch;
9
  int i=0;
10
  strcpy (cmd,"./flite -t ");
11
  printf ("please the text that should be reada and ';' to exit\n");
12
  while (1)
13
  {
14
    ch = getch ();
15
//    printf ("-----%c",ch);
16
    string[i]=ch;
17
    if (ch == '-')
18
    break;
19
    else if (ch == '\n')
20
    {
21
     string[i]='\0';
22
     strcat(cmd,string);
23
//     printf ("%s",cmd);
24
     system(cmd);
25
     strcpy(string,"");
26
     strcpy(cmd,"./flite -t ");
27
     i=-1;
28
    }
29
    i++;
30
//    if (ch == ' ')
31
//    i=0;
32
  }
33
}
Redmine Appliance - Powered by TurnKey Linux