In the text-to-speech dialog there's an option to choose the sublanguage in
case more than one variant is available. Just make sure it's set to
'default'.

Cheers,

Peter

On Wed, Feb 3, 2021 at 7:04 PM W NW <[email protected]> wrote:

> Thank you Oisin and Peter.
>
> I am afraid that I will have to hope for the Windows installer that Peter
> mentioned as I am not "technical" enough to change the Mnemosyne source
> code... I also do not know how not-to select the sublanguage.
>
> Or perhaps I am missing something? And if the workaound could be applied
> from the level of Mnemosyne itself or by editing some Mnamosyne files -
> could you please give me more details how to do this?
>
> regards
> blickwn
>
> On Wednesday, February 3, 2021 at 11:47:53 AM UTC+1 Peter Bienstman wrote:
>
>> Thanks for tracking this down! (My own cards never used a sublang, which
>> is why I could not reproduce it.)
>>
>> I noticed that the people behind gtts, the google text-to-speech library,
>> are preparing a new release to fix these and other issues, and when it's
>> released, I can prepare a new Windows installer.
>>
>> Meanwhile, Oisin's workaround of not selecting a sublanguage should help.
>>
>> Cheers,
>>
>> Peter
>>
>> On Tue, Feb 2, 2021 at 11:05 PM Oisín Mac Fhearaí <[email protected]>
>> wrote:
>>
>>> The "lang" parameter in the call to gTTS seems to have caused problems
>>> for people recently.
>>> See this example: https://github.com/pndurette/gTTS/issues/252
>>>
>>> The problem in the cases I've seen were caused by a language string of
>>> "en-US" and "en-CA". In both cases, switching to just "en" fixed the
>>> problem.
>>> Looking at the file google_pronouncer.py in the Mnemosyne source
>>> suggests that the language parameter is derived from the card type property
>>> "sublanguage_id", or the property ""language_id" if that's not available.
>>> Can you check if they're set to something like "en-US" and replace them
>>> with "en" to see if that helps?
>>>
>>> Oisín
>>>
>>> On Tue, 2 Feb 2021 at 20:08, W NW <[email protected]> wrote:
>>>
>>>> Hi, thanks for taking time.
>>>>
>>>> Under Windows 7 I have been using Mnemosyne 2.7.3  since it was
>>>> published with no issues at all. So it would be quite strange that Win7 is
>>>> the main culprit , though of course one cannot exclude it.
>>>>
>>>> Today I noticed two similar errors, please see below. I also noticed
>>>> that the issue occurs also when trying to export cards - after clicking the
>>>> last "OK" before exporting; and the cards are not exported.
>>>>
>>>> Today I tried uninstalling and installing the Mnemosyne again - with no
>>>> effect. Would you have any other suggestions please? The text-to-speech is
>>>> a very important function to me, used on a daily basis...
>>>>
>>>> [image: error_02.jpg]
>>>>
>>>> [image: error_03.jpg]
>>>>
>>>> regards
>>>> blickwn
>>>>
>>>> On Tuesday, February 2, 2021 at 11:26:24 AM UTC+1 Peter Bienstman wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm afraid it works fine on my Windows 10 machine. It might be a
>>>>> temporary glitch with the Google servers. So far I have not received any
>>>>> other reports from this. Note that Windows 7 is no longer supported, it
>>>>> reached end-of-life in January 2020...
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Peter
>>>>>
>>>>> On Mon, Feb 1, 2021 at 10:04 PM W NW <[email protected]> wrote:
>>>>>
>>>>>> Dear,
>>>>>>
>>>>>> I am using 2.7.3 Mnemosyne version under Windows 7.
>>>>>>
>>>>>> Since couple of days I have the below error message when trying to
>>>>>> add the google text-to-speech: "An unexpected error has occured. Please
>>>>>> forward the following to the developers:
>>>>>> Traceback (innemorst last): File "mnemosyne\pyqt_ui\qtextedit2.py",
>>>>>> line 107, in keyPressEvent (...)" etc. - I paste the screen.
>>>>>>
>>>>>> [image: error.jpg]
>>>>>>
>>>>>> Effectively no Google-pronounciation is added to cards; before it
>>>>>> used to work perfectly under 2.7.3.
>>>>>>
>>>>>> Could you please let me know any suggestions?
>>>>>>
>>>>>> regards
>>>>>> blickwn
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "mnemosyne-proj-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/mnemosyne-proj-users/b21c00fb-7f2c-42a8-be51-215f740e8b96n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/b21c00fb-7f2c-42a8-be51-215f740e8b96n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "mnemosyne-proj-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/mnemosyne-proj-users/460ee7bc-bc46-4466-92b2-d7fff4b08037n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/460ee7bc-bc46-4466-92b2-d7fff4b08037n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "mnemosyne-proj-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/mnemosyne-proj-users/CAO-0pXC%3DUvaUfb4iVWhr7V1ZRQ9%3D%2Bb_12Sh_nA2fTAShyqhcTQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/CAO-0pXC%3DUvaUfb4iVWhr7V1ZRQ9%3D%2Bb_12Sh_nA2fTAShyqhcTQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/008d49af-3104-440d-8bd8-9f0c2d13ea2an%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/008d49af-3104-440d-8bd8-9f0c2d13ea2an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CAMdxoPFcLTL6fYGh3mHsL1VzSpNQBTb89SsCsHJS3hoVr-5fwg%40mail.gmail.com.

Reply via email to