espressif / esp-sr

Speech recognition
Other
559 stars 104 forks source link

tts_parser would crash if it cannot find input words in voice data set (AIS-870) #36

Closed mike-2020 closed 1 year ago

mike-2020 commented 2 years ago

Hello,

I got this error when input "ni3 hao3". I'd suggest that return an error code instead of crashing the system.

_E (159060) tts_parser: Fail to search ni3 hao3 in voice set xiaole

assert failed: esp_tts_utt_append esp_tts_parser.c:92 (syllidx>=0)

feizi commented 2 years ago

The input format should be Chinese characters(utf-8), like ”你好“.