xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.53k stars 83 forks source link

[Bug] Web dictionary triggers an automatic pronunciation #1296

Open Exponent4806 opened 8 months ago

Exponent4806 commented 8 months ago

Describe the bug Using a web dictionary triggers an automatic pronunciation totally unrelated to the search query.

For example: looking for the German word "Haus" leads to GoldenDict pronouncing the word "Frequency".

Independently of the queried word, GD always pronounces the word "Frequency".

There might be a problem in the code related to "automatic pronunciations" in GD.

To Reproduce Steps to reproduce the behavior:

  1. Add the following web dictionary: https://www.dwds.de/r/?q=%GDWORD%&corpus=public

image

  1. Enable the dictionary and leave the option "enable as a link" unselected.
  2. Put the web dictionary in a group without any other dictionaries
  3. Search the following words:
    • Haus
    • Buckel
    • Talg
  4. Listen the English word "Frequency" being pronounced.

Affected Dictionaries DWDS Corpus (German): https://www.dwds.de/d/korpora/public

Query link for GoldenDict: https://www.dwds.de/r/?q=%GDWORD%&corpus=public

Expected behavior The English Word "Frequency" should not be pronounced automatically by GD.

Screenshots Here is a Video of 60 seconds showing the issue: GD Bug - Web Dictionary-.zip

OS and software versions Goldendict-ng 23.11.09.7adfb2eb at 2023-11-22T13:19:53 Qt 6.6.0 GCC 13.2.1 20230801 endeavouros linux 6.6.2-arch1-1 x86_64-little_endian-lp64 Flags:USE_XAPIAN MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT

image

Additional context GoldenDict continues to pronounce the word "Frequency" over and over again, even if no new queries are done.

For example: a search for the word "Haus" would pronounce the word "Frequency" many times as long as the tab is open.

xiaoyifang commented 8 months ago

can not reproduced.

How do you configured your audio engine in the preference->audio ->Engine ?

Exponent4806 commented 8 months ago

How do you configured your audio engine in the preference->audio ->Engine ?

image

The bug appeared a couple of months ago, but I did not care much about it. It is not critical.

However, let's keep this issue open to see if someone else has a similar problem...

Thanks for your awesome job!