[Python] Pyttsx3 does not read text in other languages

Discussão em 'Python' iniciado por Stack, Março 23, 2025.

  1. Stack

    Stack Membro Participativo

    When I try to read text with pyttsx3, it only reads the English text and it does not read any text which is in some other language.

    Here's my code:

    import pyttsx3

    engine = pyttsx3.init()

    engine.say("'Hello world' in Chinese: 你好,世界")
    engine.say("'Hello world' in Japanese: こんにちは世界")
    engine.say("'Hello world' in Hindi: नमस्ते दुनिया")

    engine.runAndWait()


    Here, pyttsx3 only reads the English text and it does not the text in other languages.

    Is there any way to fix this problem?

    It would be great if anyone could help me out.

    Continue reading...

Compartilhe esta Página