home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / speech / 422 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.6 KB  |  110 lines

  1. Newsgroups: comp.speech
  2. Path: sparky!uunet!munnari.oz.au!hp9000.csc.cuhk.hk!cucs5.cs.cuhk.hk!yu030
  3. From: yu030@cs.cuhk.hk (Yu Wai Leung)
  4. Subject: Klatt SYnthesizer (How to work)
  5. Message-ID: <1993Jan8.024840.12894@cucs5.cs.cuhk.hk>
  6. Sender: news@cucs5.cs.cuhk.hk
  7. Organization: Faculty of Engineering, The Chinese U. of Hong Kong
  8. Date: Fri, 8 Jan 1993 02:48:40 GMT
  9. Lines: 99
  10.  
  11. Hi!
  12.  
  13.        Guide to make a workable Klatt Synthesizer
  14.        ------------------------------------------
  15.  
  16.        1. Subscribe the 3 parts of the Klatt synthesizer from
  17.           nn. (The set sent by "CTI acct" is ok!)
  18.        2. Cut off the header for the three files. You can do
  19.           this by using a text editor (like vi). For each file,
  20.           you can identify the header part and data part 
  21.           easily because the data part is a long, continous and
  22.           unreadable string of characters.
  23.  
  24.           Note: The first line of the data part of PART ONE starts
  25.                 like this:
  26.  
  27.                 begin 777 klatt.tar.Z
  28.                 [Subsequent lines]
  29.            
  30.        3. Merge the 3 files into a single text file using a text
  31.           editor. Put PART ONE in the editor first, then insert
  32.           PART TWO at the end of PART ONE (leaving no spaces)
  33.           Then insert PART THREE at the end of PART TWO.       
  34.  
  35.        4. Let us called the merged file "klatt.tar.Z". Now we are
  36.           ready to extract the source codes.
  37.  
  38.           A) Use uudecode to get a compressed tar file FIRST:
  39.  
  40.           % uudecode klatt.tar.Z
  41.  
  42.           This will produce a compressed tar file klatt.tar.Z
  43.  
  44.           B) Then use uncompress to get a "plain" tar file
  45.  
  46.           % uncompress klatt.tar.Z
  47.  
  48.           This will produce a tar file called klatt.tar
  49.  
  50.           C) Use tar to extract all sources files
  51.  
  52.           % tar -xvf klatt.tar
  53.  
  54.           This time the source files will be produced. Wow!
  55.  
  56.           Notice: The source codes will be produced on a 
  57.                   subdirectory called "klatt" under your
  58.                   working directory.
  59.  
  60.           D) Use "make" to build all executables
  61.  
  62.           % cd klatt
  63.           % make
  64.  
  65.           CAUTION: Unless you are VERY LUCKY, you must modify the
  66.                    source codes before you can get a WORKABLE
  67.                    version.
  68.  
  69.    
  70.    SOFTWARE:
  71.  
  72.    There are 4 executables:
  73.  
  74.    klatt: Klatt synthesizer
  75.  
  76.           A menu-driven (though very "UGLY") klatt syn which can
  77.           accept a parameter files are produce sound from it. Ideal
  78.           for experts who wish to generate parameter file by his own
  79.           and fine-tuning parameters of the synthesizers.
  80.  
  81.    gen:   Phoneme-to-speech
  82.         
  83.           Users can produce speech from phonemes input by user, ideal
  84.           for casual users. It calls uklatt to produce sound.
  85.  
  86.    uklatt: Parameter-file to speech converter.
  87.    sklatt: Similar to uklatt (?)
  88.  
  89.  
  90.    NECESSARY MODIFICATION:
  91.  
  92.    hplay.c: If you examine the code you'll find a "dummy" printf 
  93.             statement, you should use hplay.old instead.
  94.  
  95.    libaudio.h: These are a set of SUN audio header files. Make sure
  96.    (and others) that you've selected the right include file path in your
  97.                 makefile            
  98.   
  99.    libaudio.a: You must supply this library in the linking process,
  100.                otherwise there will be linking errors.
  101.  
  102.    The speech waveform is stored in an array called "iwave". This
  103.    array is a short integer array (so, the resolution is 16-bits).
  104.    These data are compressed by mu-law and stored in another array
  105.    called "plabuf". Speech sampling freq=8000 Hz. If you want to
  106.    extract the waveform, you can "hooked" into the routine
  107.    "hplay" in hplay.old.
  108.  
  109.  
  110.