-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, we statically link in the espeak-ng code on Linux but we still require espeak-ng-data to be installed system-wide for the voice data etc. In the future, it would ease compatibility if we could bundle those data files into the Python wheel.
The hard part would be getting the espeak-ng to use those files instead of looking in system-wide ones. This is hard because data files bundled into wheels are not guaranteed to have a stable location in the file-system. My idea to do this is:
- in the Rust lib, define a wrapper for
fopenwhich can override libc's version at link-time. - this wrapper calls into a Python util that uses the ResourceManager API to open the data file in the wheel and write it to a tempfile
- Rust wrapper returns (and probably caches) a libc
FILEpointing to that tempfile
I have already spent almost 3 days building this package, though, so this work will have to wait.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request