project-spiel / libspiel

Speech synthesis client library
https://project-spiel.org/libspiel
GNU Lesser General Public License v2.1
40 stars 5 forks source link

Support language detection #4

Open eeejay opened 1 year ago

eeejay commented 1 year ago

It would be cool if libspiel selected a language appropriate voice after determining automatically what language it is. This functionality could be added with a language detection library like CLD2 or something similar.

There would probably be a performance/latency cost so this should be an opt-in kind of feature. Maybe passing "auto" as language.

TTWNO commented 9 months ago

I think this massively expands the scope and complexity of a basic speech protocol. Would it not make sense to put this on the client?

eeejay commented 9 months ago

Right, this would be in the client. It wouldn't add anything to the dbus spec or providers. Basic idea is that an app calls speak on some text and the client library does some automatic language detection and voice selection and then sends it to the appropriate provider.