ALT Linux repos
S: | 2.5-alt0.4 |
5.0: | 1.96-alt6 |
4.1: | 1.96-alt5.M41.1 |
4.0: | 1.96-alt2.6 |
3.0: | |
+backports: | 1.96-alt0.M30.1 |
Other repositories
Upstream: | 1.96-beta |
Group :: Sound
RPM: festival
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: speech_tools-1.2.95-alt-hts_support-fest1.96.patch
Download
Download
--- speech_tools/siod/siod.cc 2004-06-21 20:42:20 +0300
+++ speech_tools/siod/siod.cc 2006-11-12 21:38:21 +0200
@@ -289,9 +289,21 @@
return (float)FLONM(car(cdr(pair)));
else
{
+ // hack around buggy scm:
+ // in hts_voices from www.cstr.ed.ac.uk
+ // some floating values are written as strings.
+ // we allow here 'string of a float' too
+ const char *str_param=get_c_string(car(cdr(pair)));
+ char *endptr;
+ double converted_param=strtod(str_param, &endptr);
+ if (endptr == str_param) {
+ // conversion failed
cerr << "param " << name << " not of type float" << endl;
err("",NIL);
return -1;
+ } else {
+ return (float) converted_param;
+ }
}
}