translate-shell icon indicating copy to clipboard operation
translate-shell copied to clipboard

Option to not say "Translations of" during speech

Open simbleau opened this issue 3 years ago • 5 comments

Honestly I'm surprised this hasn't been suggested already.

Whenever using speech, the playback says: "Translations of {source}, {translations}."

However when you disable alternatives, there is only and will ever be one playback. Therefore the "Translations of" prefix to the audio is redundant, and only slows down the return of the shell.

Notable, it's also very annoying to hear a 1-1.5 second introduction to every translation, especially if you use it a lot.

Please add a flag or omit the "Translations of" from speech playback when alternatives are disabled.

simbleau avatar Jul 05 '21 15:07 simbleau

The brief mode (-b) is intended for this very purpose. (although there is currently no option to control this behavior separately in the default/verbose mode)

soimort avatar Jul 05 '21 19:07 soimort

Hmm. I was not aware -b affected pronunciation. Maybe this issue should be asking to decouple brief text output and brief pronunciation.Please excuse my brevity as this was sent from my smartphone.Thanks,Spencer C. Imbleau -------- Original message --------From: Mort Yao @.> Date: 7/5/21 3:06 PM (GMT-05:00) To: soimort/translate-shell @.> Cc: Spencer Imbleau @.>, Author @.> Subject: Re: [soimort/translate-shell] Option to not say "Translations of" during speech (#408) The brief mode (-b) is intended for this very purpose.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

simbleau avatar Jul 05 '21 19:07 simbleau

image Can we add an option to remove the last two sections ? Currently doing: echo "それを忘れたフリ 疲れたよ" | trans -s ja -t en | head -n 4 But it doesn't work with continuous piping like sptlrx pipe | trans -s ja -t en | head -n4 where i'm trying to continuously translate lyrics of a song

strikerlulu avatar Jul 24 '23 09:07 strikerlulu

image Can we add an option to remove the last two sections ? Currently doing: echo "それを忘れたフリ 疲れたよ" | trans -s ja -t en | head -n 4 But it doesn't work with continuous piping like sptlrx pipe | trans -s ja -t en | head -n4 where i'm trying to continuously translate lyrics of a song

What you are looking for is

-show-prompt-message=N -show-languages=N -show-alternatives=N

See trans -h on options that show or hide each display section.

soimort avatar Jul 24 '23 12:07 soimort

So, is it possible to drop translations-of but see multiple versions of the translation?

vitaly-zdanevich avatar Apr 02 '24 12:04 vitaly-zdanevich