Jimex / DictTango-Android

22 stars 2 forks source link

French tts sound like English, and __addTTS_ByCssClass('ex', 'fr') #45

Closed javalover123 closed 2 months ago

javalover123 commented 2 months ago

Describe the bug French tts sound like English, and __addTTS_ByCssClass('ex', 'fr')

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Tts correct

Screenshots or recordings If applicable, add screenshots or screen recordings to help explain your problem.

Android (please complete the following information):

App Info (please complete the following information):

Additional context Add any other context about the problem here.

Jimex commented 2 months ago

I tested with no problem, please show me your raw html.

javalover123 commented 2 months ago
  1. Download 新法汉_20210705.zip
  2. Add to DictTango, set JS as below:
  3. __addTTS_ByCssClass('words', 'fr_FR'); __addTTS_ByCssClass('cont-exam-ex-span', 'fr-CA');
  4. Search word aller, click to hear voice
javalover123 commented 2 months ago

After add French audio resource file, click Pronounce button at bottom is correct(but long press Pronounce then click TTS is not correct, whatever TTS language is default or French), but __addTTS_ByCssClass still sound like English

javalover123 commented 2 months ago

After install google Speech Recognition & Synthesis, TTS is ok.

Should be ColorOS 12 TTS just support Chinese and English, doesn't support French