linanwx / aosr

Aosr is Another Obsidian plugin for Spaced Repetition.
Other
68 stars 7 forks source link

tts example? #14

Closed huachuman closed 1 year ago

huachuman commented 1 year ago

I'm curious what you would put as a tts url. I'm not sure how to find those... mostly what I can find is free online tools that record audio through the broswer or whatnot. Is there an API I don't know about?

linanwx commented 1 year ago

This is really awkward, I never thought there would actually be users using the TTS feature. I implemented a basic version of this feature that only works with "::" and detects complete English letters (using regex [a-zA-Z]) and I'm using an English TTS pronunciation. If you need further improvements on this feature, I can enhance it.

linanwx commented 1 year ago

Personally, I use Youdao's pronunciation, which only supports English. You can access it at http://dict.youdao.com/dictvoice?type=0&audio=%s