anx-reader icon indicating copy to clipboard operation
anx-reader copied to clipboard

[Bug]: 熄屏朗读在下一章前朗读会暂停住不动直到亮屏并手动继续

Open tabortao opened this issue 8 months ago • 8 comments

Prerequisites|前提条件

  • [x] I have checked the troubleshooting|我已经查看过故障排除
  • [x] I have searched for similar issues and did not find any|我已经搜索过没有相同的问题

Describe the bug|描述问题

目前软件集成了第三方在线TTS,但不支持系统及第三方TTS软件(MultiTTS),之前版本是支持的,希望可以增加回来。

To reproduce|重现步骤

设置-更多设置-朗读

Expected behavior|预期行为

目前软件集成了第三方在线TTS,但不支持系统及第三方TTS软件(MultiTTS),之前版本是支持的,希望可以增加回来。

Screenshots|截图

No response

Platform (please complete the following information)|平台(请填写以下信息)

  • Platform: | 平台:Android [e.g. Android]
  • OS: | 操作系统:华为 Android10(EMUI 11.0) [e.g. Android13(MIUI14)]
  • AnxReader Version: | 安读版本:1.4.2 [e.g. 1.2.0+2033]
  • Device: | 设备:华为P40 [e.g. Xiaomi 13]

Additional context|其他信息

No response

tabortao avatar Apr 07 '25 04:04 tabortao

之后会有 系统tts和集成的tts 可选

Anxcye avatar Apr 08 '25 09:04 Anxcye

最好还能支持自定义在线tts接口@Anxcye 参考开源阅读的在线tts功能

M17764017422 avatar Apr 09 '25 02:04 M17764017422

1.4.3-1版本测试,报告问题: 系统朗读模式无限重复当前页的第一句。

内置朗读模式比上一版要好一点,语速设置0.0相对比较稳定了,小于0.4能读不稳定,大于0.6就容易跳读、漏读,更快的话基本上是一章只能听到半句话。

还有就是,没有支持自定义在线tts接口

M17764017422 avatar Apr 10 '25 17:04 M17764017422

1.4.3-2版本:系统朗读模式,初步测试没有问题,长时间朗读没有测。 内置朗读模式,跳读概率增加,不排除是网络环境的问题。 这是日志: SEVERE^^ 2025-04-13 20:32:44.074667^^ [PlatformException(AndroidAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, MEDIA_ERROR_UNKNOWN {what:1}, MEDIA_ERROR_SYSTEM, null)] :

SEVERE^^ 2025-04-13 20:32:47.088558^^ [Error: WebSocketChannelException: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = speech.platform.bing.com, port = 43540]

SEVERE^^ 2025-04-13 20:32:47.089485^^ [Null check operator used on a null value] : #0 EdgeTts.speak (package:anx_reader/service/tts/edge_tts.dart:150)

SEVERE^^ 2025-04-13 20:32:47.090278^^ [WebSocketChannelException: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = speech.platform.bing.com, port = 43540] :

SEVERE^^ 2025-04-13 20:53:47.666018^^ [Null check operator used on a null value] : #0 EdgeTts._preloadNextAudio (package:anx_reader/service/tts/edge_tts.dart:97) #1 EdgeTts.speak (package:anx_reader/service/tts/edge_tts.dart:155)

SEVERE^^ 2025-04-13 20:53:47.698877^^ [PlatformException(AndroidAudioError, Failed to set source. For troubleshooting, see: https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, MEDIA_ERROR_UNKNOWN {what:1}, MEDIA_ERROR_SYSTEM, null)] :

SEVERE^^ 2025-04-13 20:53:47.699820^^ [MissingPluginException(No implementation found for method callAsyncJavaScript on channel com.pichillilorenzo/flutter_inappwebview_0)] : #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:368) #1 AndroidInAppWebViewController.callAsyncJavaScript (package:flutter_inappwebview_android/src/in_app_webview/in_app_webview_controller.dart:2535) #2 EpubPlayerState.ttsNext (package:anx_reader/page/book_player/epub_player.dart:227) #3 EdgeTts.speak. (package:anx_reader/service/tts/edge_tts.dart:111)

M17764017422 avatar Apr 13 '25 14:04 M17764017422

1.4.3发行版本测试:系统朗读模式,6小时前台亮屏长时间朗读没有问题,但后台运行或者前台熄屏朗读,还是有问题。 熄屏朗读在下一章前朗读会暂停住不动直到亮屏并手动继续; 后台朗读会在系统其它音频声音播放或者停止播放时暂停,有概率在相同操作时恢复就是很不稳定。 内置朗读模式,6小时前台亮屏长时间朗读也基本没有问题,后台或者前台熄屏朗读问题和系统模式一样。

M17764017422 avatar Apr 20 '25 23:04 M17764017422

Screenshot_2025-04-20-14-19-44-288-edit_io.legado.app.releaseA.jpg

听书整体状态没有开源阅读稳定,另外能不能实现图片上的功能

M17764017422 avatar Apr 20 '25 23:04 M17764017422

熄屏朗读在下一章前朗读会暂停住不动直到亮屏并手动继续;

这是一个已知问题,目前还没有找到原因,比较可能的省电策略相关,还不确定

后台朗读会在系统其它音频声音播放或者停止播放时暂停,有概率在相同操作时恢复就是很不稳定。

这里我再测试修改看看

Anxcye avatar Apr 21 '25 15:04 Anxcye

建议将此bug置顶,与#278 议题合并避免重复分散提交@Anxcye 另外能不能给出可能相关的系统日志过滤标签,我有logfox可以帮忙收集日志。 经测试将省电策略改为无限制,问题依旧存在

M17764017422 avatar Apr 30 '25 07:04 M17764017422

👋 This issue has been automatically marked as stale because it has not had recent activity.

这个 issue 因为长时间没有活动而被自动标记为 stale。

It will be closed in 14 days if no further activity occurs. To keep it open:

  • Add a comment with updates or clarifications
  • Remove the stale label

如果没有进一步的活动,它将在 14 天后被关闭。要保持开放状态:

  • 添加包含更新或澄清的评论
  • 移除 stale 标签

Thank you for your contributions! 感谢您的贡献!

github-actions[bot] avatar Sep 05 '25 01:09 github-actions[bot]

🔒 This issue has been locked because it has been closed for 30 days.

此 issue 已被锁定,因为它已关闭 30 天。

If you believe this issue should be reopened, please create a new issue and reference this one.

如果您认为此 issue 应该重新打开,请创建新的 issue 并引用此问题。

github-actions[bot] avatar Oct 06 '25 01:10 github-actions[bot]