home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / m / m003_1 / sdk_dos.ddi / C / TC / SPEECH / DEMOSBTS.C
Encoding:
C/C++ Source or Header  |  1991-09-07  |  1.9 KB  |  49 lines

  1. /* ------------------------------------------------------------------------ */
  2. /*  @@ Source Documentation                        *** MSC/TC Version ***   */
  3. /*                                                                          */
  4. /*  Copyright (c) Creative Technology Pte Ltd, 1991. All rights reserved.   */
  5. /*                                                                          */
  6. /*   TITLE       : DEMOSBTS.C                                               */
  7. /*                                                                          */
  8. /*   DESCRIPTION :                                                          */
  9. /*       This program demostrates how to use the Text-to-Speech functions.  */
  10. /*                                                                          */
  11. /*       Note that the BLASTER environment has to be set before executing   */
  12. /*       this program.                                                      */
  13. /*                                                                          */
  14. /* ------------------------------------------------------------------------ */
  15.  
  16. #include  <sbcts.h>
  17.  
  18. main()
  19. {
  20.     if (sbts_init())
  21.     {
  22.         printf("SBTALKER installed.\n\n") ;
  23.         sbts_say("SB-talker installed.") ;
  24.  
  25.         printf("Press a key to continue...") ;
  26.         getch() ;
  27.  
  28.         sbts_settings(0,0,9,5,5) ;
  29.         printf("I can speak louder.\n") ;
  30.         sbts_say("I can speak louder.") ;
  31.  
  32.         printf("Press a key to continue...") ;
  33.         getch() ;
  34.  
  35.         sbts_settings(0,0,9,9,5) ;
  36.         printf("I can change my pitch.\n") ;
  37.         sbts_say("I can change my ptich.") ;
  38.  
  39.         printf("Press a key to continue...") ;
  40.         getch() ;
  41.  
  42.         sbts_settings(0,0,9,9,9) ;
  43.         printf("I can speak very fast.\n\n") ;
  44.         sbts_say("I can speak very fast.") ;
  45.     }
  46.     else
  47.         printf("SBTALKER not installed.\n") ;
  48. }
  49.