xiaoyifang / goldendict-ng

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

When using The little dict dictionary to query certain words, enter the word and press Enter. Some words have sounds and some words have no sounds. #1540

Open zw963 opened 4 months ago

zw963 commented 4 months ago

描述 bug

复现 bug 的步骤

打开 goldendict ng 界面,如下面截图,然后(1)位置输入 professional, 然后回车。

image

期望的结果 期望看到翻译的同时,同时会发出这个单词的读音.

实际的结果 而实际上,按下回车后,并没有发出声音,必须鼠标移动到上面截图 (2) 发音图标位置,才会发音。

为什么我说这可能是 bug 呢? 因为如果换个单词,例如: hello, 完全同样的操作,回车就会立即发出声音。请看截图:

image

因为我经常通过查询 professional 来时测试辞典是否工作,所以我相当确认,同样的问题在 goldendict 上是没有的,直到最近 goldendict 不可用了,切换到 ng 之后,又发现这个问题。

相关选项也是开启状态 (看截图)

image

受影响的词典 (The little dict)

相关的截图

系统和软件的版本

Goldendict-ng 24.05.13.e6a2be83 at 2024-05-29T22:05:12Z Qt 6.7.1 GCC 14.1.1 20240522 arch linux 6.9.2-arch1-1 x86_64-little_endian-lp64 Flags: MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT

github-actions[bot] commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.

Describe bug

Steps to reproduce bug

Open the goldendict ng interface, as shown in the screenshot below, then enter professional in position (1), and press Enter.

image

Expected results I hope that when I see the translation, I will also pronounce the pronunciation of the word.

Actual results In fact, after pressing Enter, no sound is emitted. The mouse must be moved to the pronunciation icon in the screenshot above (2) before the sound can be pronounced.

Why do I say this might be a bug? Because if you change another word, for example: hello, it is exactly the same operation, and the carriage return will make a sound immediately. Please see the screenshot:

image

Because I often test whether the dictionary is working by querying professional, I am quite sure that the same problem does not exist on goldendict. Until recently, goldendict was unavailable, and after switching to ng, I discovered this problem again.

Related options are also enabled (see screenshot)

image

Affected dictionaries (The little dict)

Relevant screenshots

System and software version

Goldendict-ng 24.05.13.e6a2be83 at 2024-05-29T22:05:12Z Qt 6.7.1 GCC 14.1.1 20240522 arch linux 6.9.2-arch1-1 x86_64-little_endian-lp64 Flags: MAKE_ZIM_SUPPORT USE_ICONV MAKE_CHINESE_CONVERSION_SUPPORT

zw963 commented 4 months ago

我刚刚尝试删除了所有配置文件,仅仅导入 The little dict, 重试了一下,问题依旧,所以,这应该不是配置文件的问题。

谢谢。

github-actions[bot] commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.

I just tried to delete all the configuration files and only imported The little dict. I tried again and the problem remains, so this should not be a problem with the configuration files.

Thanks.

xiaoyifang commented 4 months ago

改为第三方的播放引擎看一下,比如ffplayer image

github-actions[bot] commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically.

Change to a third-party playback engine and take a look image

zw963 commented 3 months ago

你好, 刚刚试了一下:

  1. 改为第三方播放器 mpv, 还是翻译 professional, 鼠标 hover 可以播放, 但是从命令行还是不播放.
  2. 我使用 arch linux 的包管理器安装, 当前安装的版本 git hash 基于最新的 master, 应该已经包含了最新的修复.

    ╰─ $ 1 pacman -Q |grep goldendict-ng-git goldendict-ng-git 24.02.16.r5447.4ac44e9a-1

所以, 结论是, 貌似还是不工作.

你觉得有没有可能跟这个问题有关?

https://bbs.archlinux.org/viewtopic.php?id=295776

问题已经提出,但是一直没有人回复.

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

Hello, just tried this:

  1. Change to the third-party player mpv, or translator professional. It can be played by hovering the mouse, but it still does not play from the command line.
  2. I used the arch linux package manager to install it. The currently installed version git hash is based on the latest master and should already contain the latest fixes.

    ╰─ $ 1 pacman -Q |grep goldendict-ng-git goldendict-ng-git 24.02.16.r5447.4ac44e9a-1

So, the conclusion is, it still doesn't seem to be working.

Do you think it might be related to this problem?

https://bbs.archlinux.org/viewtopic.php?id=295776

The question has been raised, but no one has responded.

xiaoyifang commented 3 months ago

不是很确定,因为你的是有的单词正常发音,有的不能发音,可能跟单词的音频格式有关系,记得这本little dict词典用的是spx格式的音频。

也可能是系统中的qt的版本比较低,qtmultimedia的模块还没有集成ffmpeg的后端。

你可以采用第三方播放引擎 ffmpeg中的 ffplay试一下。

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

I'm not sure, because some of your words are pronounced normally and some cannot be pronounced. It may be related to the audio format of the words. Remember that this little dict dictionary uses audio in spx format.

It may also be that the version of qt in the system is relatively low, and the qtmultimedia module has not yet integrated the ffmpeg backend.

You can try it using the third-party playback engine ffplay in ffmpeg.

zw963 commented 3 months ago

你可以采用第三方播放引擎 ffmpeg中的 ffplay试一下。

一样的结果, 鼠标 hover 播放, 但是仅仅输入回车不播放.

github-actions[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.

You can try it using the third-party playback engine ffplay in ffmpeg.

The same result, mouse hover plays, but just entering Enter does not play.