|
From: Reece D. <ms...@go...> - 2010-06-29 01:58:10
|
On 29 June 2010 02:05, Jonathan Duddington <jo...@ta...> wrote:
> On 28 Jun, Reece Dunn <ms...@go...> wrote:
>
>> So you don't need to run espeak-phoneme-data if you run espeakedit?
>
> The espeak-phoneme-data is only needed to convert espeak-data which has
> been compiled on a little-endian processor into espeak-data for a
> big-endian processor. If you compile the data using espeakedit on a
> big-endian procrssor then you get big-endian data.
Ok. Thanks for the clarification.
>> Q: Do you need to run espeakedit to construct the espeak-data, or is
>> it sufficient to use what is in the svn repository?
>
> The svn repository only includes the source data, not the compiled data.
>
> To get compiled data (the files in espeak-data), you can either run
> espeakedit and do Compile->Compile phoneme data from its menu (or do
> espeakedit --compile from the command-line). Or alternatively you can
> download the it from the eSpeak website.
I am doing this from the command-line as I ideally want a
non-interactive way of building everything required for espeak to
work.
> Note that if you using a development version of eSpeak (eg. from SVN)
> then you must use the corresponding version of espeak-data (i.e. not
> the Ubuntu version).
I'm aware of this, which is why I am running into these problems :)!
>> $ espeak -v en hello
>> env2 = 1
>> env2 = 105
>> Segmentation fault
>
> That's probably an error in the file espeak-data/intonations (perhaps
> an incompatible version). This file is compiled from its source data
> at: phsource/intonation by using espeakedit with the menu option:
> Compile -> Compile intonation data
Ah, so that is my problem -- `espeakedit --compile` did not produce
it, so I copied the file from phsource!
> Currently this file is not compiled with
>
> espeakedit --compile
Ah. That makes it impossible to build everything from the command-line
non-interactively.
> or Compile -> Compile phoneme data
>
> Probably I should include it.
I would appreciate it. The following works:
----- 8< -----
diff --git a/src/espeakedit.cpp b/src/espeakedit.cpp
index 788927a..a681dbd 100644
--- a/src/espeakedit.cpp
+++ b/src/espeakedit.cpp
@@ -148,6 +148,7 @@ if(argc > 1)
if(strcmp(param,"--compile")==0)
{
CompilePhonemeData();
+ CompileIntonation();
exit(0);
}
}
----- >8 -----
I now have espeak, espeakedit and espeak-data built and `espeak -v en
hello` works!
Thank you for your help,
- Reece
|