#4002 NORM Opportu: espeak fails on words starting with [ckpqtvz]

Zarro Boogs per Child bugtracker at laptop.org
Sun Nov 11 12:18:56 EST 2007


#4002: espeak fails on words starting with [ckpqtvz]
-------------------------------+--------------------------------------------
  Reporter:  MitchellNCharity  |       Owner:  jg         
      Type:  defect            |      Status:  new        
  Priority:  normal            |   Milestone:  Opportunity
 Component:  distro            |     Version:             
Resolution:                    |    Keywords:             
  Verified:  0                 |  
-------------------------------+--------------------------------------------

Comment(by jonsd):

 Is this still a problem?
 My theory is that
   espeak --stdout "hello" | aplay

 May not work because it produces WAV output, but with length = 0 in the
 WAV header. This is because when it starts to produce the speech sound, it
 doesn't know how long it will be. espeak -w is OK because it writes to a
 file, and it can rewind and fill in the length information in the header
 after it has finished writing the speech sound data. But espeak --stdout
 can't do that.

  So whether espeak --stdout is useful depends on whether the program which
 uses its output (aplay) can cope with "length = 0".

  Is that the problem?

 Alternatives are to write the speech to a file and then play it:
   espeak -f temp.wav "hello"

 Or use the espeak API to generate buffers of speech which your application
 can then play under its control.
 Or use espeak with its portaudio interface to play the sound.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4002#comment:5>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list