xiaoyifang / goldendict-ng

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

Pronunciation becomes very slow #1612

Closed playgithub closed 3 months ago

playgithub commented 3 months ago

描述 bug 发音变得很慢

复现 bug 的步骤

  1. 打开某词典 '牛津高阶8简体'
  2. 查单词,点击 '喇叭'发音
  3. 发音变得很慢,至少0.5倍数,以前正常

受影响的词典 牛津高阶8简体

期望的结果 正常发音

系统和软件的版本

额外的信息

Menu / Edit / Preferences / Audio / Playback / Use internal player 选FFmpeg / Qt Multimedia都一样

github-actions[bot] commented 3 months ago

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

Describe bug Pronunciation becomes very slow

Steps to reproduce bug

  1. Open a dictionary 'Oxford Advanced Level 8 Simplified Chinese'
  2. Look up the word and click 'trumpet' to pronounce it
  3. Pronunciation becomes very slow, at least 0.5 times, which was normal before

Affected dictionaries Oxford Advanced Level 8 Simplified Chinese

Desired results normal pronunciation

System and software version

Additional information

Menu / Edit / Preferences / Audio / Playback / Use internal player It’s the same whether you choose FFmpeg / Qt Multimedia

xiaoyifang commented 3 months ago

音频保存到本地,然后播放一下看看。

github-actions[bot] commented 3 months ago

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

Save the audio locally and play it for a while.

playgithub commented 3 months ago

音频保存到本地,然后播放一下看看。

正常

github-actions[bot] commented 3 months ago

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

Save the audio locally and play it for a while.

normal

xiaoyifang commented 3 months ago

内部播放声音的时候,没有额外控制速度。 建议你从几个方面先排查下: 1,发音是词典发出的,还是gd-ng发出的。 gd-ng工具栏上的发音按钮正常吗。有的词典会自己通过js发音。 2,排除其他词典影响。禁用其他词典,比如建个分组,分组里面只有这个词典,发音是否正常。

github-actions[bot] commented 3 months ago

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

When playing sound internally, there is no additional speed control. It is recommended that you check several aspects first:

  1. Is the pronunciation given by the dictionary or gd-ng. Is the pronunciation button on the gd-ng toolbar normal? Some dictionaries will pronounce the words themselves through js.
  2. Exclude the influence of other dictionaries. Disable other dictionaries, such as creating a group. There is only this dictionary in the group, and the pronunciation is normal.
playgithub commented 3 months ago

内部播放声音的时候,没有额外控制速度。 建议你从几个方面先排查下: 1,发音是词典发出的,还是gd-ng发出的。 gd-ng工具栏上的发音按钮正常吗。有的词典会自己通过js发音。 2,排除其他词典影响。禁用其他词典,比如建个分组,分组里面只有这个词典,发音是否正常。

最近Qt等升级了,然后goldendict-ng运行不了,然后重新编译,然后就出现这个问题了。 以前都正常的,碰到运行不了,重新编译安装,然后一切正常,就这次发音变慢了。

github-actions[bot] commented 3 months ago

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

When playing sound internally, there is no additional speed control. It is recommended that you check from several aspects: 1. Is the pronunciation coming from a dictionary or gd-ng. Is the pronunciation button on the gd-ng toolbar normal? Some dictionaries will pronounce the words themselves through js. 2. Exclude the influence of other dictionaries. Disable other dictionaries, such as creating a group. There is only this dictionary in the group, and the pronunciation is normal.

Recently, Qt etc. were upgraded, and then goldendict-ng could not run, and then it was recompiled, and then this problem occurred. It used to be normal, but when it fails to run, I recompile and install it, and then everything is normal. This time, the pronunciation becomes slower.

playgithub commented 3 months ago

音频保存到本地,然后播放一下看看。

用VLC播放正常,用ffplay播放出现同样的问题(非常慢) 用ffplay播放本地音乐(flac/mp3)正常 网上随便下了一个spx格式的音频,出现同样的问题 所以,应该是ffmpeg播放spx的问题

github-actions[bot] commented 3 months ago

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

Save the audio locally and play it for a while.

Playback is normal with VLC, but the same problem occurs when playing with ffplay (very slow)

xiaoyifang commented 3 months ago

用VLC播放正常,用ffplay播放出现同样的问题(非常慢)

如果是这样,可能是ffplay的问题,可以提给ffmpeg先看下。

github-actions[bot] commented 3 months ago

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

Playing normally with VLC, playing with ffplay has the same problem (very slow)

If so, it may be a problem with ffplay. You can ask ffmpeg to take a look first.

playgithub commented 3 months ago

Bug reported https://trac.ffmpeg.org/ticket/11078

playgithub commented 3 months ago

Solved by using mplayer as the external audio player.