flutter_baidu_speech_tts 1.0.3
flutter_baidu_speech_tts: ^1.0.3 copied to clipboard
Baidu TTS plugin for Flutter: online, offline and mixed speech synthesis on Android, iOS and HarmonyOS.
1.0.3 #
- Docs: added the OHOS
build-profile.json5useNormalizedOHMUrlnote and an iOSpod installfallback pointing to the official Baidu SDK integration guide. No code or API changes.
1.0.2 #
- Docs: display the example screenshots in a side-by-side table and add a note reminding users not to commit real credentials. No code or API changes.
1.0.1 #
- Docs: rewrote the README as a bilingual (English / δΈζ) guide with expanded setup and usage instructions. No code or API changes.
1.0.0 #
First stable release.
- English-only README and CHANGELOG to satisfy pub.dev validation.
- Example credentials in
example/lib/utils/tts_config.dartare now placeholders; fill in your own Baidu AI Speech credentials before running. - No API changes from 0.0.1.
0.0.1 #
First release.
- Online / offline / mixed (MIX) speech synthesis on Android, iOS and
HarmonyOS (OHOS). API:
initializeWithConfig/synthesizeText/speakText/pauseTts/resumeTts/stopTts/releaseTts. typedEventsexposes synthesis and playback callbacks asBaiduTtsEvent(start, data arrived, playback progress, finish, error, etc.);SYNTHESIZE_DATA_ARRIVEDpasses PCM chunks throughaudioData.- The native layer returns
{code, message, ...}uniformly; on failurecode != 0and noPlatformExceptionis thrown. UseBaiduTtsResult.isSuccessto check. - iOS supports physical devices only (the SDK static library has an arm64 device slice only), and the static library itself is not shipped with the repo. See the README.
- Offline model files and permissions beyond
INTERNET/ACCESS_NETWORK_STATEare provided by the integrator; the plugin neither bundles nor redistributes them (consistent across all three platforms: Android loads from the host app'sassets/, iOS fromBundle.main, OHOS from the entry module'sresources/resfile/), referenced by file name viaofflineTextModelAsset/offlineSpeechModelAsset. See the README. - The iOS static library
libBDSpeechTTSBaseKit.a(~239MB, exceeding the pub 100MB limit) is downloaded automatically duringpod install; the URL can be overridden with theFLUTTER_BAIDU_TTS_IOS_LIB_URLenvironment variable, so no manual copy is needed.