Contains a Flutter plugin for converting LaTeX to speakable text that can be read aloud by a text-to-speech engine.
Add the following dependency to your pubspec.yaml file:
dependencies:
tex_to_speech:
git:
url: git@github.com:simpleclub/tex_to_speech_flutter
ref: 0.0.3
path: tex_to_speechThe plugin depends on flutter_rust_bridge project to create a bindings and glue code between Rust implementation and Dart APIs.
MathCAT- a library for producing speech text from MathML. It can also have other features (Braille support, text-to-speech) which are not used.pulldown_latex- a library for converting LaTeX to MathML. It may limit the number of TeX commands that can be correctly converted. See Unsupported Plain-TeX & LaTeX behavior for details.
- Flutter SDK version 3.x or higher
- Rust toolchain installed
- flutter_rust_bridge_codegen [https://cjycode.com/flutter_rust_bridge/quickstart]
flutter_rust_bridge_codegen generate
flutter_rust_bridge_codegen build-web --release -o ..
- If you encounter issue with loading the WASM file try running
cargo updateintex_to_speech/rustproject directory. - Check SETUP_NOTES.md for informations about steps to setup the project.
Follow steps in the flutter_rust_bridge_codegen documentation to update the source code.
After that you can run generate_update.sh to prepare the update. Updated sources (and binaries) should be pushed to the repository.