sth2018 / FastWordQuery

Query words definitions or examples etc. from local or web dictionaries to fill into Anki cards.
https://ankiweb.net/shared/info/1807206748
GNU General Public License v3.0
270 stars 85 forks source link

能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 #156

Open jiaqiangmit opened 5 years ago

jiaqiangmit commented 5 years ago

RT,我希望能每次学一批单词时,将他们的真人发声例句(一个词条有多句,每条为单独文件)朗读音频单独提取,以便单独开车和睡前听。希望也能把单词读音音频也以其拼写命名。 如果能把一个词条的单词和例句批量以单词命名(例句命名方式为单词拼写+后缀1 、2、 3)后,另存到指定文件夹更好。当然,不另存也行,单一定要把例句的音频重命名哈。 实现的效果就是播放一次单词,然后播放各个例句。 谢谢作者,请联系我 280074573@qq.com

jiaqiangmit commented 5 years ago

也许我只是需要将anki的类hash的命名方式还原成原来的英文。求开发。

yu7777 commented 5 years ago

这一行 name = get_hex_name('mdx-'+self.unique.lower(), audio, 'mp3') 大概改写为 name = self.word + "number" + ".mp3"

jiaqiangmit commented 5 years ago

十分感谢!

------------------ 原始邮件 ------------------ 发件人: "Shengbing YU"notifications@github.com; 发送时间: 2019年9月21日(星期六) 上午10:13 收件人: "sth2018/FastWordQuery"FastWordQuery@noreply.github.com; 抄送: "Jack London"280074573@qq.com;"Author"author@noreply.github.com; 主题: Re: [sth2018/FastWordQuery] 能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 (#156)

这一行 name = get_hex_name('mdx-'+self.unique.lower(), audio, 'mp3') 大概改写为改写 name = self.word + "number" + ".mp3"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

yu7777 commented 5 years ago

其实根本不需要单独提取文件。 把卡片做成单词+所有例句, 自动播放卡片的所有音频就可以了。 电脑可以用automatically flip cards插件, 手机anki app也可以自动播放。

jiaqiangmit commented 5 years ago

我是单独提取出来,开车或者晚上听,这样在不同场合见、不同形式输入单词,效果会好些。相当于自己做了一本刘毅词汇。谢谢哈。网上牛津高阶例句人声版好像都出来了

------------------ 原始邮件 ------------------ 发件人: "Shengbing YU"notifications@github.com; 发送时间: 2019年9月27日(星期五) 上午7:27 收件人: "sth2018/FastWordQuery"FastWordQuery@noreply.github.com; 抄送: "Jack London"280074573@qq.com;"Author"author@noreply.github.com; 主题: Re: [sth2018/FastWordQuery] 能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 (#156)

其实根本不需要单独提取文件。 把卡片做成单词+所有例句, 自动播放卡片的所有音频就可以了。 电脑可以用automatically flip cards插件, 手机anki app也可以自动播放。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

yu7777 commented 5 years ago

既然已经提取出来了,就不用再做卡片了。 我主要用ldoce5++, 欧陆的例句质量参差不齐,不好用。 pdawiki上等级太低了,看不到大牛的牛津高阶例句。 等高手分享适配到fastwordquery插件里。

jiaqiangmit commented 5 years ago

牛津那本卖300多人民币。卡片加例句单独听,效果好。

------------------ 原始邮件 ------------------ 发件人: "Shengbing YU"notifications@github.com; 发送时间: 2019年9月27日(星期五) 下午2:05 收件人: "sth2018/FastWordQuery"FastWordQuery@noreply.github.com; 抄送: "Jack London"280074573@qq.com;"Author"author@noreply.github.com; 主题: Re: [sth2018/FastWordQuery] 能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 (#156)

既然已经提取出来了,就不用再做卡片了。 我主要用ldoce5++, 欧陆的例句质量参差不齐,不好用。 pdawiki上等级太低了,看不到大牛的牛津高阶例句。 等高手分享适配到fastwordquery插件里。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jiaqiangmit commented 4 years ago

你好,这样改了,单词读音的名字变了。但是例句的变了但又不是单词拼写开头的。能否麻烦你看看?

------------------ 原始邮件 ------------------ 发件人: "Shengbing YU"<notifications@github.com>; 发送时间: 2019年9月21日(星期六) 上午10:13 收件人: "sth2018/FastWordQuery"<FastWordQuery@noreply.github.com>; 抄送: "Jack London"<280074573@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [sth2018/FastWordQuery] 能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 (#156)

这一行 name = get_hex_name('mdx-'+self.unique.lower(), audio, 'mp3') 大概改写为改写 name = self.word + "number" + ".mp3"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jiaqiangmit commented 4 years ago

这些写,"number"出来的是文字number,怎么自动累加数字编号啊

------------------ 原始邮件 ------------------ 发件人: "Shengbing YU"<notifications@github.com>; 发送时间: 2019年9月21日(星期六) 上午10:13 收件人: "sth2018/FastWordQuery"<FastWordQuery@noreply.github.com>; 抄送: "Jack London"<280074573@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [sth2018/FastWordQuery] 能否单独提取朗文Ldoce6的例句音频并以单词拼写1.2.3的方式重命名 (#156)

这一行 name = get_hex_name('mdx-'+self.unique.lower(), audio, 'mp3') 大概改写为改写 name = self.word + "number" + ".mp3"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jiaqiangmit commented 4 years ago

搞定了,谢谢。

单词后带1是单方,带2是例句。不过还有个问题,那个val太长了,怎么取短些?比如取前8位。我把文件给你麻烦看看哈

yu7777 commented 4 years ago

我也不清楚