semperai / amica

Amica is an open source interface for interactive communication with 3D characters with voice synthesis and speech recognition.
https://heyamica.com
MIT License
581 stars 92 forks source link

Support for Chinese sentence segmentation #72

Closed Hbernet closed 6 months ago

Hbernet commented 6 months ago

const sentenceMatch = receivedMessage.match( /^(.+[.\。\!\!\?\?\,\n]|.{10,}[,])/, );

kasumi-1 commented 6 months ago

Thank you! I added this in bf6e57570c7ef9a25fa9215e9d1a411cf475de0a