translate-shell
translate-shell copied to clipboard
Option to not say "Translations of" during speech
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.
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)
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.
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
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 likesptlrx 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.
So, is it possible to drop translations-of
but see multiple versions of the translation?