home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 120.lha / SpeechToy / SpToy.doc < prev    next >
Text File  |  1986-11-20  |  3KB  |  99 lines

  1. /* SpeechToy.c  Original by Dave Lucas, Enhancements by Rob Peck.
  2.  *
  3.  * o  Can now read and write its own icon to get the defaults you set.
  4.  * o  New menu item added to save current speech settings.
  5.  * o  Can be started from WBENCH or CLI; if from CLI, can still
  6.  *    read the icon file to get the default values.
  7.  *
  8.  * In the toolstrings, the data takes the form:
  9.  *
  10.  * SEX=1
  11.  * SEX=0
  12.  * for female (1) or male (0) voice.
  13.  *
  14.  * MODE=0
  15.  * MODE=1
  16.  * for expressive (0) or robotic (1) voice.
  17.  *
  18.  * FREQUENCY=20000
  19.  * numeric range from sampling frequency MIN to 
  20.  * frequency MAX (see the audio.h file)
  21.  * 
  22.  * RATE=150
  23.  * words per minute rate, see audio.h for range.
  24.  *
  25.  * VOLUME=64
  26.  * volume range from 0 to 64 (max).
  27.  *
  28.  * PITCH=224
  29.  * pitch value for speech, range see audio.h
  30.  *
  31.  * These values can be saved in the icon by using the save menu item
  32.  * --------------------------------------------------------------------
  33.  *
  34.  * WORDS=This is Amiga Speaking
  35.  * anything you want it to insert in the English Phrase area.
  36.  *
  37.  * TRANS=1
  38.  * means: Translate whatever words there are in the english.
  39.  *
  40.  * SPEAK=1
  41.  * means: Say it.  When this is in the icon, it opens up talking.
  42.  *
  43.  * PHON=DHIHS IHZ AHMIY3GAH SPIY4KIHNX.
  44.  * This is the way you insert your own custom pronunciation.
  45.  * Note that it MUST be legal phonetics per the Speech docs.
  46.  */
  47.  
  48. /* AREXX support:
  49.  *
  50.  * AREXX port is named SPEECHTOY, so that AREXX, which capitalizes
  51.  * things automatically, doesn't need quotes on the name to
  52.  * prevent it from capitalizing and not finding the port.
  53.  *
  54.  * To change any parameter, do EXACTLY as the toolstrings description
  55.  * shows... I use the SAME routines to parse the command that AREXX
  56.  * sends as are used to decode the icon's toolstrings.
  57.  *
  58.  * To send a command directly from a CLI interface, using AREXX
  59.  * support function, do this:
  60.  *
  61.  * rx "address speechtoy 'WORDS=Say this you turkey'"
  62.  * rx "address speechtoy 'TRANS=1'"
  63.  * rx "address speechtoy 'SPEAK=1'"
  64.  */
  65.  
  66. /* CLI startup:
  67.  *
  68.  * To allow speechtoy to read its own icon, either CD to the
  69.  * directory where speechtoy is located, then:  run speechtoy
  70.  * OR CD anywhere, then:
  71.  *
  72.  *     run speechtoy <dir-where-icon-is-located>
  73.  *
  74.  * example:
  75.  *
  76.  * CD DF0:
  77.  * RUN df1:speechtoy df1:
  78.  */
  79.  
  80. /* COMPILING:  Lattice - compiles cleanly under Lattice 3.03 and 4.0
  81.  *             if stack is set to 20000
  82.  *
  83.  *             Manx 3.4b compiles cleanly, used for this object file.
  84.  *           Use "cc +L toywork9.c" and "ln toywork9.o c32.lib"
  85.  *             (have not tried to adjust it for 16 bit integers).
  86.  *
  87.  * Original LUCAS comments (for most part) removed, see the FISH
  88.  * disk with original speechtoy to see what was there before.
  89.  * File got up over 65k source when I was through with it.
  90.  *
  91.  * Enhancements needed:  Add capability to input PHONETIC strings.
  92.  *                       Strip it down into just a speech server
  93.  *                       with no windowing interface, but still read
  94.  *                       the icon file for the defaults.
  95.  */
  96.  
  97. /* Written by David M Lucas. */
  98. /* Enhanced by Rob Peck */
  99.