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

  1. Newsgroups: comp.speech
  2. Path: sparky!uunet!boulder!spot.Colorado.EDU!gordon
  3. From: gordon@spot.Colorado.EDU (GORDON ALLEN R)
  4. Subject: Re: Klatt SYnthesizer (How to work)
  5. Message-ID: <gordon.726766695@spot.Colorado.EDU>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: spot.colorado.edu
  8. Organization: University of Colorado, Boulder
  9. References: <1993Jan8.024840.12894@cucs5.cs.cuhk.hk> <gordon.726507433@spot.Colorado.EDU> <1993Jan11.013217.8139@cucs5.cs.cuhk.hk>
  10. Date: 11 Jan 93 15:38:15 GMT
  11. Lines: 44
  12.  
  13. yu030@cs.cuhk.hk (Yu Wai Leung) writes:
  14.  
  15. >gordon@spot.Colorado.EDU (GORDON ALLEN R) writes:
  16.  
  17.  
  18. >According to my interpretation, "klatt" will produce files with the 
  19. >following extensions: .xgr, .dat and .au. Only files of extension
  20. >.au are playable on sparc stations. And the .xgr and .dat files
  21. >are binary files which contain the entire waveform produced by the
  22. >synthesizer. If you found that the .xgr's and .dat's non-readable,
  23. >you can try to extract the waveform by yourself by looking into
  24. >the content of the short integer array "iwave" in the source file
  25. >"klatt.c". In "klatt.c", the content of "iwave" are compressed
  26. >(using mu-law) and the results will be placed in a character array
  27. >called "plabuf". 
  28.  
  29. >Cheers!
  30.  
  31. >Yu Wai-Leung
  32. >Dept of Computer Science, 
  33. >Chinese University of Hong Kong
  34. >e-mail: yu030@cs.cuhk.hk
  35.  
  36. Thanks,  
  37.  
  38. The .au file was not written.  Examination of the code in klatt.c revealed that
  39. the code segment that created the header and wrote the data to the .au file 
  40. was in a #if FALSE ....  #endif   conditional.   Removal of this conditional,
  41. then allowed for the creation of the file, which is an audio data file 
  42. (according to file).  However,  playing the test file hello.par produces sound
  43. which is unintelligble.  It is identical to playing back the audio file 
  44. hello.au.  Furthermore, something that wasn't clear in my original note was thatwhile hello.xgr file could be displayed with xplot, the plot really didn't 
  45. look like speech.  Similarly for hello.dat.
  46.  
  47. What am I missing here?  I'll check the short array iwave to see if I can find
  48. anything else.  However, as I read klatt.c, iwave is filtered through
  49. audio_s2u to produce plabuf.  The ascii files hello.xgr and hello.dat are
  50. produced from audio_u2s(plabuf).  Shouldn't this be the same as iwave, then?
  51. The file hello.au is essentially plabuf with an audio header.
  52. -- 
  53. Allen Gordon                  *If the folly of but one of us was changed to*
  54. Research Associate              *intelligence, and divided amongst a thousand*
  55. gordon@tramp.colorado.edu        *toads, each would be more intelligent than  *
  56.                  *Aristotle                      *
  57.