soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
7k stars 392 forks source link

[Error] How to translate-shell text to audio mp3 even when the text is long? #431

Open kawaguchimaeda8 opened 3 years ago

kawaguchimaeda8 commented 3 years ago

I want to convert text to voice with translate-shell, but it doesn't work if the text is long.

This script works (I think because the text is short):

trans -b :fr "I have a question, I want to convert text to voice with translate-shell but why can't convert long text? Please help" -download-audio-as textaudio.mp3

This script doesn't work (presumably because the text is too long):

trans -b :fr "Stack Overflow for Teams, our core SaaS collaboration product, is helping thousands of companies around the world make the transition to remote work, address business continuity challenges, and undergo digital transformation. Whether it's on Stack Overflow or within Stack Overflow for Teams, community is at the center of all that we do." -download-audio-as textaudio.mp3