qwerty-learner icon indicating copy to clipboard operation
qwerty-learner copied to clipboard

单词发音的组件是哪个呀?

Open 11003 opened this issue 1 year ago • 2 comments

学习一下大佬的代码

11003 avatar Jul 27 '23 15:07 11003

check src\hooks\usePronunciation.ts.

  1. use generateWordSoundSrc to get voice url for specific word from youdao voice api.
  2. passing voice url as a parameter to useSound, a third-party npm package which can play sound.

more detail for useSound

YoonTso avatar Aug 20 '23 08:08 YoonTso

ok, Thank you!😍谢谢

11003 avatar Aug 21 '23 02:08 11003