shithub: flite

Download patch

ref: 6a2b3b03e3a985937ef609830599572545fce77e
parent: fecc1652cb5196838ea5382264e471fea8db887e
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jun 4 04:59:11 EDT 2021

fixup

--- a/main/flite_plan9.c
+++ b/main/flite_plan9.c
@@ -137,6 +137,8 @@
 		fd = runconv(w);
 
 	write(fd, cst_wave_samples(w)+start, 2*size);
+	if(last)
+		return CST_AUDIO_STREAM_STOP;
 
 	return CST_AUDIO_STREAM_CONT;
 }
@@ -170,7 +172,6 @@
 		sysfatal("invalid voice %q", v);
 
 	feat_copy_into(new_features(), voice->features);
-
 	a = new_audio_streaming_info();
 	a->asc = audiochunk;
 	a->min_buffsize = 4096;
@@ -179,6 +180,7 @@
 	for(;;){
 		if((s = Brdstr(&in, '\n', 1)) == nil)
 			break;
+
 		flite_text_to_speech(s, voice, "stream");
 	}
 
--- a/mkfile
+++ b/mkfile
@@ -3,7 +3,7 @@
 %.all:V:
 	for(src in $root/src/*/)
 		cd $src && mk $stem
-	for(lang in $root/lang/^(cmu_us_slt cmulex usenglish))
+	for(lang in $root/lang/^(cmu_us_awb cmu_us_rms cmu_us_slt cmulex usenglish))
 		cd $lang && mk $stem
 	cd $root/main && mk $stem