home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / VOICE / VOICE-C.DOC < prev    next >
Text File  |  2000-06-30  |  2KB  |  27 lines

  1.      The file VOICE.C contains a major subroutine "talk" which enables the 
  2. user to operate a Votrax SC-01 speech synthesizer chip phonetically. That is, 
  3. the subroutine takes as right argument a character string made up of the 
  4. Votrax standard phoneme descriptors. For example the statement
  5.      talk("T,EH,N,PA1,");    (the trailing , is mandatory)
  6. will say the word ten. Note that without the final PA1 the synthesizer will 
  7. say NNNNNN.... if you use a latched scheme like I do. 
  8.      Some other subroutines to make life easier are included. They are
  9. [1] saynum(num)    will pronounce a number (num is unsigned integer)
  10. [2] sayday(dayow)   will say the day of the week (dayow is char 0-6)
  11. [3] saymonth(month) will say the month  (month is char 0-11).
  12.      No doubt this could be sped up in some way, but it simplifies 
  13. code. Especially if you want to write an interactive program to check out 
  14. various phoneme combinations. The routine "pronounce" assumes that you have 
  15. the chip set up as a LIST device when IOBYTE is set for UC3: . I.E. setting 
  16. STAT LIST:=UC3: on my micro gets the Votrax ready for LIST output. This 
  17. routine will most likely need changing on your machine, although this route is 
  18. convenient for interfacing less tolerant languages as STAT can do all the 
  19. work.
  20.      Easiest method of use in BDS-C is to compile VOICE.C separately and CLINK 
  21. it to whatever routines you write to use the synthesizer.
  22.  
  23. /* written by Mark Zachmann
  24.                 56 Rutgers St. #4
  25.                 Rochester, N.Y. 14607
  26.         */
  27.