gedoor / legado

Legado 3.0 Book Reader with powerful controls & full functions❤️阅读3.0, 阅读是一款可以自定义来源阅读网络内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。
GNU General Public License v3.0
28.25k stars 3.78k forks source link

朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 #3675

Closed kulkatt closed 5 months ago

kulkatt commented 7 months ago

确认 / Assignments

功能描述 / Features

比如我要从中文朗读状态切换到英文朗读状态,要先开始朗读,再点屏幕调出工具栏,再点系统TTS设置,再点语言,再在列表中选中另一种语言,再返回APP,再重新调整语速,对于经常切换中英文朗读的用户来讲实在太繁琐了。

期望实现方式 / How to implement

复杂的解决方案,实现双语(多语)朗读,对中英文自动分别调用不同的预设TTS 简单的解决方案,做一个切换TTS语言profile的选项

821938089 commented 7 months ago

长按朗读会直接弹出菜单

系统TTS设置是安卓系统的东西 嫌麻烦可以用别的app创建个快捷方式直接进

larry801 commented 7 months ago

换一个支持自动切换的tts smartvoice

kulkatt commented 7 months ago

长按朗读会直接弹出菜单

系统TTS设置是安卓系统的东西 嫌麻烦可以用别的app创建个快捷方式直接进

没写过安卓的代码,但是这应该是有方法可以实现的吧?

https://medium.com/@vedantkingh/unlocking-the-power-of-android-tts-a-guide-to-using-different-languages-and-voices-fe4e6ead2368

  1. Set language and voice: To use different languages and voices, you need to specify the desired language and voice using thee setLanguage() and setVoice() methods. You can obtain a list of available voices by calling the getVoices() method. Add the following code snippet to set the language and voice:

private void setLanguageAndVoice() { Locale desiredLocale = Locale.US; // Change to the desired language/locale tts.setLanguage(desiredLocale);

Set<Voice> voices = tts.getVoices();
List<Voice> voiceList = new ArrayList<>(voices);
Voice selectedVoice = voiceList.get(10); // Change to the desired voice index
tts.setVoice(selectedVoice);

}

kulkatt commented 7 months ago

换一个支持自动切换的tts smartvoice

谢谢,不过似乎这个smart voice的可选语音里面并没有中文。。。

larry801 commented 7 months ago

需要在blindhelp下载 https://blindhelp.net/software/smart-voice

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: kulkatt @.> Sent: Sunday, February 11, 2024 7:01:10 AM To: gedoor/legado @.> Cc: Larry Wang @.>; Comment @.> Subject: Re: [gedoor/legado] 朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 (Issue #3675)

换一个支持自动切换的tts smartvoicehttps://poretsky.github.io/android/smartvoice/

谢谢,不过在这个页面没找到下载链接

换一个支持自动切换的tts smartvoicehttps://poretsky.github.io/android/smartvoice/

谢谢,不过似乎这个smart voice的可选语音里面并没有中文。。。

― Reply to this email directly, view it on GitHubhttps://github.com/gedoor/legado/issues/3675#issuecomment-1937134066, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKAIMGIVCNUDTQA3UZK5KKLYS7NZNAVCNFSM6AAAAABCMBVQVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXGEZTIMBWGY. You are receiving this because you commented.Message ID: @.***>

ivysrono commented 7 months ago

需要在blindhelp下载 https://blindhelp.net/software/smart-voice

试了下读取是成功了,就是没能成功把中文读出来,有什么设置关键点么?

larry801 commented 7 months ago

还要设置一下语音数据所在目录

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: ivysrono @.> Sent: Tuesday, February 13, 2024 10:23:55 PM To: gedoor/legado @.> Cc: Larry Wang @.>; Comment @.> Subject: Re: [gedoor/legado] 朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 (Issue #3675)

需要在blindhelp下载 https://blindhelp.net/software/smart-voice

试了下读取是成功了,就是没能成功把中文读出来,有什么设置关键点么?

― Reply to this email directly, view it on GitHubhttps://github.com/gedoor/legado/issues/3675#issuecomment-1941397159, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKAIMGNRDTSSF7K4T7BEW6TYTNLNXAVCNFSM6AAAAABCMBVQVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGM4TOMJVHE. You are receiving this because you commented.Message ID: @.***>

ivysrono commented 7 months ago

还要设置一下语音数据所在目录

确实没找到这个设置。

Vocalizer Expressive voices data folder 改成下载下来的数据目录,没找到其他设置目录的地方。

larry801 commented 7 months ago

打开smart voice点击右上角齿轮图标 general settings voalizer expressive data folder

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: ivysrono @.> Sent: Tuesday, February 13, 2024 10:41:14 PM To: gedoor/legado @.> Cc: Larry Wang @.>; Comment @.> Subject: Re: [gedoor/legado] 朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 (Issue #3675)

还要设置一下语音数据所在目录

确实没找到这个设置。

― Reply to this email directly, view it on GitHubhttps://github.com/gedoor/legado/issues/3675#issuecomment-1941435618, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKAIMGOH42LRSX23IXQA46DYTNNOVAVCNFSM6AAAAABCMBVQVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGQZTKNRRHA. You are receiving this because you commented.Message ID: @.***>

ivysrono commented 7 months ago

这个路径设置点我找到了,但是我之前就是把下载下来的数据地址与这个地址保持一致才能读取到下载下来的中文等数据的,不然只有自带的7个 Robot 选择。 版本的问题?装的最新的4.1.8版。

larry801 commented 7 months ago

是不是路径问题呀 多一层不行 /storage/emulated/0/voice_data 下面直接是一堆语音才行 要不试试这个精简版只有中英文的 https://we.tl/t-IzymHf7M2L

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: ivysrono @.> Sent: Tuesday, February 13, 2024 11:14:42 PM To: gedoor/legado @.> Cc: Larry Wang @.>; Comment @.> Subject: Re: [gedoor/legado] 朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 (Issue #3675)

这个路径设置点我找到了,但是我之前就是把下载下来的数据地址与这个地址保持一致才能读取到下载下来的中文等数据的,不然只有自带的7个 Robot 选择。 版本的问题?装的最新的4.1.8版。

― Reply to this email directly, view it on GitHubhttps://github.com/gedoor/legado/issues/3675#issuecomment-1941490600, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKAIMGLJGQVR3QVDMM6TH2DYTNRMFAVCNFSM6AAAAABCMBVQVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGQ4TANRQGA. You are receiving this because you commented.Message ID: @.***>

ivysrono commented 7 months ago

能把实际那个目录截图给我看下不?

我现在是:

/storage/emulated/0/VocalizerEx2/chinesemandarinlili/……

/storage/emulated/0/VocalizerEx2/chinesemandarintiantian/……

不这样读不出。

larry801 commented 7 months ago

用的是 /storage/emulated/0/VocalizerEx2 把几个中英文声音的 chinesexxxx 文件夹内容移动到 VocalizeEx2 里面看看


发件人: ivysrono @.> 发送时间: 星期三, 二月 14, 2024 12:01:34 上午 收件人: gedoor/legado @.> 抄送: Larry Wang @.>; Comment @.> 主题: Re: [gedoor/legado] 朗读模式下切换中英文太麻烦了,希望能有至少两个自定义的TTS设置可以切换 (Issue #3675)

能把实际那个目录截图给我看下不?

我现在是:

/storage/emulated/0/VocalizerEx2/chinesemandarinlili/……

/storage/emulated/0/VocalizerEx2/chinesemandarintiantian/……

不这样读不出。

― Reply to this email directly, view it on GitHubhttps://github.com/gedoor/legado/issues/3675#issuecomment-1941586676, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKAIMGIMHYN2QG6RCNPCCJLYTNW35AVCNFSM6AAAAABCMBVQVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGU4DMNRXGY. You are receiving this because you commented.Message ID: @.***>

ivysrono commented 7 months ago

把几个中英文声音的 chinesexxxx 文件夹内容移动到 VocalizeEx2 里面看看

试了,结果就是读取不到中文选项了。

kulkatt commented 7 months ago

用的是 /storage/emulated/0/VocalizerEx2 把几个中英文声音的 chinesexxxx 文件夹内容移动到 VocalizeEx2 里面看看 谢谢,弄成了,但是后面还是遇到了问题,可能是那个400多M的包里面语音太多,解决办法是只留中文。 但之后还是遇到了问题,就是静读天下和Legado里面SmartVoice都不识别中文字符,全是按某种西语来读(听不太清楚,还夹杂着刺啦刺啦的噪音,像是德/英/法/俄之一) 安卓10 miui12.0.6

github-actions[bot] commented 6 months ago

由于长期没有状态更新,该问题将于5天后自动关闭。如有需要可重新打开。