Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Voice output isn't available for English" #514

Closed
vitaly-zdanevich opened this issue Apr 2, 2024 · 6 comments
Closed

"Voice output isn't available for English" #514

vitaly-zdanevich opened this issue Apr 2, 2024 · 6 comments
Labels

Comments

@vitaly-zdanevich
Copy link
Contributor

$ trans :ru -p 'hello'
привет

Definitions of hello
[ English → Русский ]

verb
    здороваться
        greet, hello, salute, hallo, hullo, bow
    звать
        call, invite, shout, hail, hallo, hello
    окликать
        hail, holler, call, challenge, speak, hello

noun
    приветствие
        greeting, welcome, salute, salutation, hello, hail
    приветственный возглас
        hallo, halloa, hello, viva
    возглас удивления
        hallo, halloa, hello

hello
    привет, приветствовать, Здравствуйте
Voice output isn't available for English

Why do I have this orange warning? In this example, I hear both English and Russian.

@soimort
Copy link
Owner

soimort commented Apr 2, 2024

  1. What is your trans -V?

  2. Does it happen with other language pairs?

@soimort soimort added waiting for response CNR cannot reproduce labels Apr 2, 2024
@vitaly-zdanevich
Copy link
Contributor Author

$ trans -V
Translate Shell       0.9.7.1

platform              Linux
terminal type         xterm-kitty
bi-di emulator        [N/A]
gawk (GNU Awk)        5.3.0
fribidi (GNU FriBidi) 1.0.13
audio player          mpv --no-config
terminal pager        less
web browser           xdg-open
user locale           C.UTF8 (English)
host language         en
source language       auto
target language       en
translation engine    auto
proxy                 [NONE]
user-agent            Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36 Edg/104.0.1293.54
ip version            [DEFAULT]
theme                 happiness.trans
init file             /home/vitaly/.config/translate-shell/init.trans

@vitaly-zdanevich
Copy link
Contributor Author

2. Does it happen with other language pairs?

Looks like yes:

$ trans :de -p 'hello'
Hallo

Definitions of hello
[ English → Deutsch ]

interjection
    Hallo!
        Hello!, Hi!, Hey!, Howdy!, Yoo-Hoo!
    Hallo?
        Hello!
    Guten Tag!
        Hello!, Good day!, Good afternoon!, How do you do?
    Servus!
        Hello!, Goodbye!, Cheerio!, So long!

hello
    Hallo, hallo!
Voice output isn't available for English

@soimort
Copy link
Owner

soimort commented Apr 2, 2024

user locale C.UTF8 (English)

Which OS / distro are you running?

trans could be problematic under the locale C, as it sometimes gets confused when assuming the default language (which is English in this case). You can try changing the locale to en_US.UTF8 or ru_RU.UTF-8.
Or explicitly specify the source language (en) and see if the warning persists:

$ trans en:de -p 'hello'

@soimort soimort closed this as completed Apr 6, 2024
@vitaly-zdanevich
Copy link
Contributor Author

Which OS / distro are you running?

Gentoo Linux, installed from the system package manager.

@soimort
Copy link
Owner

soimort commented Apr 7, 2024

Which OS / distro are you running?

Gentoo Linux, installed from the system package manager.

Thanks for the info! Now I see that C.UTF-8 is indeed the default locale on Gentoo, and probably other more baremetal systems. Will fix that warning for C.UTF-8 later, but still, setting a language/region based locale is recommended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants