home *** CD-ROM | disk | FTP | other *** search
/ Game Killer / Game_Killer.bin / 078.SPEECH.DOC < prev    next >
Text File  |  1993-02-27  |  3KB  |  66 lines

  1.  
  2.  
  3.                              Approach Control
  4.                                Version 2.0
  5.  
  6.                       A Pre-compiler for the Microsoft
  7.                       Flight Simulator's Aircraft and
  8.                              Adventure Factory
  9.  
  10.                          (c) 1993 by John Mechalas
  11.   
  12.  
  13. This program is shareware.  It may be distributed freely provided that
  14. it is not modified in any way, and that all the accompanying files
  15. in this archive are distributed with it.
  16.  
  17.  
  18. - Using the Digitized Speech -
  19.  
  20. If you decide to include the digitized speech in your adventure files, 
  21. you need to have the .VOC files included in this package stored in a
  22. subdirectory named APPVOC in your Flight Simulator directory.  If, for
  23. example, your Flight Simulator program is in C:\FLTSIM, the .VOC
  24. files must be in C:\FLTSIM\APPVOC.  This is done so that you can keep
  25. these sound files seperate from any others that you might have.
  26.    Feel free to record your own voice files if you don't like the voice
  27. I have chosen for this package.  If you do redistribute this archive,
  28. however, I ask that you distribute the original .VOC files, and not any
  29. new ones that you have created.
  30.    The speech routines are still in the "experimental" stages, and 
  31. depending on user input, I may or may not attempt to improve (or keep)
  32. the feature as a part of the program.  Let me know what you think.
  33.    See your AAF manual for hardware requirements.
  34.  
  35.  
  36. - Special Considerations and General Notes -
  37.  
  38. Perhaps the most limiting part of AAF's PLAY command is the fact that
  39. you can't specify a variable as a filename.  As such, I was forced to
  40. make a few concessions when creating the voice engine, and although its
  41. not perfect, it does work fairly well.
  42.    First off, I wanted the program to be capable of speaking heading
  43. changes as they are issued by ATC.  The natural choice was to create
  44. a sperate file for each digit from 0 to 9, and then play them one at
  45. a time, back-to-back.  So, if you are asked to turn to heading 230,
  46. the program will play 2.VOC, followed by 3.VOC, and then 0.VOC.
  47.    Since you can't specify variables in a filename in AAF, I was forced
  48. to use a rather complex IF-ENDIF structure that accomplishes the 
  49. necessary tasks, and it is fairly slow.  I "tweaked" the algorithm as much
  50. as I could, and it does a pretty good job, but there is a noticeable
  51. delay between the times when the digits are spoken.
  52.    You will probably want to have some sort of disk-caching software,
  53. and it would also be a good idea to install FASTOPEN.  That way, you
  54. can reduce the time it would take to find/load the .VOC files, hence
  55. speeding up the speech process.
  56.    The .VOC files don't exactly match with the printed ATC commands, due
  57. mostly to limitations imposed by AAF, but I did my best to make things
  58. work out.  You may find different ways of implementing the speech
  59. routines, so experiment a bit if you find what I have to be inadequate.
  60.    The files VOC.RSC contains the basic command structure for playing
  61. most of the .VOC files (namely the digits and the heading commands).  If
  62. you plan on using the digitized speech files, this file MUST be in the
  63. same directory as the APP.EXE program.  Feel free to modify this file as
  64. mentioned above, but if you redistribute this archive, I again ask that
  65. you include the original VOC.RSC, and not a modified one.
  66.