festvox / festival

Festival Speech Synthesis System
Other
391 stars 58 forks source link

text2wave segmentation fault #33

Open ropery opened 4 years ago

ropery commented 4 years ago

The text2wave script produces segfault:

$ text2wave -o t.wav <<< test
[1] 307267 segmentation fault (core dumped) text2wave -o t.wav <<< test

The following patch (apparently) fixes it for me:

--- /usr/bin/text2wave  2020-05-19 09:57:28.000000000 +0000
+++ /usr/bin/text2wave  2020-05-19 09:57:28.000000000 +0000
@@ -140,7 +140,7 @@
 (define (combine_waves)
   "Join all the waves together into the desired output file
 and delete the intermediate ones."
-  (let ((wholeutt (utt.synth (Utterance Text ""))))
+  (let ((wholeutt (Utterance Text "")))
     (mapcar
      (lambda (d) 
        (utt.import.wave wholeutt d t)

This is reported on the Arch Linux bug tracker FS#67420.

Update: Since the b61902a rewrite this patch no more applies. The new script can't be run with festival 2.5.0, though. When festival makes a release 2.5.1, we'll see if it works.