सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Flutter TTS एक क्रॉस-प्लेटफॉर्म प्लगइन है जो Flutter एप्लिकेशन में टेक्स्ट-टू-स्पीच सुविधा को सक्षम करता है। यह Android, iOS, Web, macOS और Windows जैसे कई प्लेटफॉर्म का समर्थन करता है, जिससे डेवलपर्स अपने एप्लिकेशन में आवाज़ आउटपुट को बिना किसी दिक्कत के एकीकृत कर सकते हैं। इस प्लगइन के पास टेक्स्ट को बोली गई ऑडियो में बदलने के लिए सरल API हैं, जो एक्सेसिबिलिटी फीचर्स, वॉइस असिस्टेंट्स और इंटरैक्टिव लर्निंग टूल्स के लिए आदर्श हैं। यह प्रत्येक प्लेटफॉर्म पर मौजूद नेटिव बोली गई सिंथेसिस इंजन का उपयोग करता है, जिससे विश्वसनीय प्रदर्शन और प्राकृतिक आवाज़ मिलती है।
उपयोग
एक्सेसिबिलिटी फीचर्स
वॉइस-गाइडेड नेविगेशन
शैक्षिक ऐप्स
इंटरैक्टिव चैटबॉट्स
ऑडियो फीडबैक प्रणाली
मुख्य विशेषताएँ
क्रॉस-प्लेटफ़ॉर्म समर्थन
सरल API एकीकरण
मूल बोली इंजन उपयोग
कस्टमाइज़ेबल वॉइस पैरामीटर्स
रियल-टाइम टेक्स्ट प्लेबैक
इनके लिए उपयुक्त
प्रगत एप्लिकेशन बनाने वाले डेवलपर्स
शैक्षिक सॉफ्टवेयर निर्माता
वॉइस सहायक एंटीग्रेशन
ऑडियो फीडबैक की आवश्यकता वाले ऐप्स
विचार योग्य बातें
मोबाइल पर विशिष्ट प्लेटफॉर्म की अनुमति की आवश्यकता होती है
उपकरण के अनुसार आवाज की उपलब्धता में भिन्नता होती है
वेब पर सीमित कस्टमाइज़ेशन
प्रदर्शन मूल इंजन पर निर्भर करता है
iOS और Android पर उपयोगकर्ता की अनुमति की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Text To Speech
A flutter text to speech plugin (Swift,Kotlin)
Features
[x] Android, iOS, Web, Windows & macOS
[x] speak
[x] stop
[x] get languages
[x] set language
[x] set speech rate
[x] set speech volume
[x] set speech pitch
[x] get voices
[x] set voice
[x] Android, iOS, Web & macOS
[x] is language available
[x] Android, iOS, Web
[x] speech marks (requires iOS 7+, Android 26+, and default voice engine for web)
Progress updates are only supported for native speech synsthesis. Use the default engine to ensure support for progress updates. Chromium#41195426
Android
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
Update the Kotlin Gradle Plugin Version
Change the verision of the Kotlin Gradle plugin to 1.9.10.
If your project was created with a version of Flutter before 3.19, go to the android/build.gradle file and update the ext.kotlin_version:
ext.kotlin_version = '1.9.10'
Otherwise go to android/settings.gradle and update the verion of the plugin org.jetbrains.kotlin.android:
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
Android TTS does not support the pause function natively, so we have implemented a work around. We utilize the native onRangeStart() method to determine the index of start when pause is invoked. We use that index to create a new text the next time speak is invoked. Due to using onRangeStart(), pause works on SDK versions >= 26. Also, if using start and end offsets inside of setProgressHandler(), you'll need to keep a track of them if using pause since they will update once the new text is created when speak is called after being paused.
await flutterTts.pause()
iOS
There's a known issue with integrating plugins that use Swift into a Flutter project created with the Objective-C template. Flutter#16049
To set audio category and options with optional mode (iOS only). The following setup allows background music and in-app audio session to continue simultaneously: