home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / speechlb.zip / Talk.C < prev   
C/C++ Source or Header  |  1999-10-24  |  295b  |  22 lines

  1. #include <stdio.h>
  2. #include "speech.h"
  3.  
  4. void main (void)
  5. {
  6. char in[100];
  7. char out[256];
  8. int n;
  9. while (audio_term() !=0) ;
  10. audio_init(-1);
  11. for(;;)
  12.  {
  13.    gets(in);
  14.    n=255;
  15.    say_string(in);
  16.    string2phone(in,out,&n);
  17.    puts(out);
  18.    say_phones(out,n);
  19.  }
  20. audio_term();
  21. }
  22.