misaki library
Shared, platform-neutral APIs for the Misaki Dart port.
Language engines are exposed from their own entrypoints, such as
package:misakid/misaki_ja.dart, so applications only import the APIs they
use.
Classes
- AsyncG2pEngine
- A reusable engine whose backend requires asynchronous work.
- BackendInfo
- Stable identity information reported by an injected backend.
- EnglishTokenMetadata
- Metadata produced by the English pipeline.
- G2pEngine
- A synchronous, reusable grapheme-to-phoneme engine.
- G2pResult
- Exact output from one grapheme-to-phoneme conversion.
- JapaneseTokenMetadata
- Metadata produced by the pyopenjtalk-style Japanese pipeline.
- KokoroEnglishG2pFrontend
- Kokoro 0.9.4's token-aware English G2P frontend.
- KokoroG2pChunk
- One text-and-phoneme chunk ready for Kokoro model input preparation.
- KokoroNonEnglishG2pFrontend
- Kokoro 0.9.4's pre-G2P chunking contract for non-English languages.
- MisakiBackend
- Common contract for explicitly supplied language backends.
- MisakiToken
- Immutable token shared by all language engines.
- TokenMetadata
- Language-specific, typed token details.
- UnknownMarkerG2pEngine
- A synchronous G2P engine whose unresolved-token marker is inspectable.
- VietnameseTokenMetadata
- Metadata produced by the Vietnamese pipeline.
Constants
- defaultUnknownMarker → const String
- Default replacement for text that a selected engine cannot phonemize.
- misakiUpstreamCommit → const String
- The authoritative upstream revision for fixtures and copied data.
- misakiUpstreamRepository → const String
- The upstream project whose observable behavior this package ports.
- misakiUpstreamVersion → const String
- The Python package version at misakiUpstreamCommit.
Exceptions / Errors
- BackendFailureException
- A configured backend failed while processing input.
- A required explicitly configured backend is not available.
- InvalidConfigurationException
- The selected options do not form a supported configuration.
- MalformedDataException
- Generated or copied runtime data failed validation.
- MisakiException
- Base class for failures exposed by Misaki Dart APIs.