|
From: Jonathan D. <jo...@ta...> - 2010-05-04 19:22:40
|
On 04 May, Christoph Lorenzi <chr...@se...> wrote: > Is it possible to output the length of a spoken phoneme? I found > -phonout but is there something that returns each phoneme with it's > length in the spoken version. It depends on how you are using eSpeak and what you want to do. If you are using the "libespeak" shared library, then your callback function can receive phoneme events, which include the name and time of each phoneme. You enable phoneme events by setting an option in your call of espeak_Initialize(). Details are in speak_lib.h That is the method to use if you want to make an animation of a mouth whose movements are synchronized with the speech. If you are using the command-line version of eSpeak then you can get phoneme names with length and pitch information by using one of eSpeak's Mbrola voices. This produces information which can passed to a Mbrola synthesizer, eg: espeak -v mb-en1 "Hello world" or espeak -v mb-en1 --phonout=file.txt "Hello world" |