atykhonov/google-translate

Support long text for translate_tts

OGAWAHirofumi opened this issue · 1 comments

If text length is longer than 200 (in my test, limit was 200),
translate_tts returns 404 error.

To support longer than 200, this tries to split text at sentence if
possible. Then pass made URLs to google-translate-listen-program as
arguments at once.

Like following,

program "http://...&total=2&idx=0..." "http://...&total=2&idx=1..."

With this, the program can process long text.

patch file

This was not good to use widely yet, so withdraw.