FLUTTER ECOSYSTEM

ihsanberahim/livespeechtotext-for-flutter

अपने फ्लटर ऐप में स्पीच-टू-टेक्स्ट को आसानी से जोड़ें, जिससे आवाज़ द्वारा नियंत्रित विशेषताएं सक्षम हों। इस प्लगइन के साथ बोले गए शब्दों को टेक्स्ट में आसानी से ट्रांसक्राइब करें।

livespeechtotext-for-flutter प्रोजेक्ट कवर
Stars
10
Forks
2
अंतिम पुश (UTC)
27 नव॰ 2023
प्रोजेक्ट स्थिति
सक्रिय
Muhammad Nur'Ihsan Bin Berahim GitHub avatar
भाषाएँDartKotlinSwiftRubyObjective-C

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 4 आइटम
  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^2.0.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Live Speech-To-Text

Effortlessly add speech-to-text to your Flutter apps, enabling voice-controlled features. Transcribe spoken words into text easier with this plugin.

SDK

  • Android
  • MinSDK 21 /CompileSDK 31
    • android/local.properties
    flutter.minSdkVersion=21
    flutter.compileSdkVersion=21
    
    • android/app/build.gradle
    def flutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
    if (flutterMinSdkVersion == null) {
        flutterMinSdkVersion = '21'
    }
    
    def flutterCompileSdkVersion = localProperties.getProperty('flutter.compileSdkVersion')
    if (flutterCompileSdkVersion == null) {
        flutterCompileSdkVersion = '31'
    }
    
    android {
        ...
        compileSdkVersion flutterCompileSdkVersion.toInteger()
        ...
    
        defaultConfig {
          ...
          minSdkVersion flutterMinSdkVersion.toInteger()
          ...
        }
    }
    
  • iOS
    • this package tested on target iOS 13

Permissions

It is highly recommended use permission_handler:^9.2.0 package to make sure the user have required permissions granted.

  • Android
    • android/app/src/{debug,main,profile}/AndroidManifest.xml
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    
  • iOS
    • ios/Runner/Info.plist
    <key>NSMicrophoneUsageDescription</key>
      <string>Your voice input needed for the speech to text functionality</string>
      <key>NSSpeechRecognitionUsageDescription</key>
      <string>Allow app to get text input from your speech</string>
    
    • ios/Podfile
      • First refer the guide
      • Uncomment these lines
            ## dart: PermissionGroup.microphone
            'PERMISSION_MICROPHONE=1',
      
            ## dart: PermissionGroup.speech
            'PERMISSION_SPEECH_RECOGNIZER=1',
      

Troubleshoots

  • Android Emulator (without Android Studio) not receive input from microphone on MacOS 13
    • Open 'Activity Monitor' find process name like 'qemu'. get the full process name
    • run command
      • sudo defaults write com.apple.security.device.microphone qemu-system-aarch64 -bool true
      • restart the emulator