Skip to content

Commit

Permalink
Updated text splitting function, char limit seems to be 99 for some l…
Browse files Browse the repository at this point in the history
…anguages.
  • Loading branch information
zaf committed Aug 20, 2013
1 parent 3bebc50 commit d8844eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/googletts-cli.pl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
exit 1;
}
$_ .= "." unless (/^.+[.,?!:;]$/);
@text = /.{1,100}[.,?!:;]|.{1,100}\s/g;
@text = /.{1,99}[.,?!:;]|.{1,99}\s/g;
}

my $ua = LWP::UserAgent->new;
Expand Down
2 changes: 1 addition & 1 deletion googletts.agi
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ for ($AGI{arg_1}) {
die "$name No text passed for synthesis.\n" if (!length);
# Split input to comply with google tts requirements #
$_ .= "." unless (/^.+[.,?!:;]$/);
@text = /.{1,100}[.,?!:;]|.{1,100}\s/g;
@text = /.{1,99}[.,?!:;]|.{1,99}\s/g;
}

# Setting language, interrupt keys and speed rate #
Expand Down

0 comments on commit d8844eb

Please sign in to comment.