Coder Social home page Coder Social logo

emmett-deen / livespeechtotext-for-flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ihsanberahim/livespeechtotext-for-flutter

0.0 0.0 0.0 178 KB

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

Home Page: https://pub.dev/packages/livespeechtotext

License: BSD 3-Clause "New" or "Revised" License

Ruby 11.22% Objective-C 0.10% Kotlin 23.83% Dart 44.70% Swift 20.15%

livespeechtotext-for-flutter's Introduction

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
    def flutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
    if (flutterMinSdkVersion == null) {
        flutterMinSdkVersion = '21'
    }
    
    def flutterCompileSdkVersion = localProperties.getProperty('flutter.compileSdkVersion')
    if (flutterCompileSdkVersion == null) {
        flutterCompileSdkVersion = '31'
    }
    
    • android/app/build.gradle
    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

livespeechtotext-for-flutter's People

Contributors

ihsanberahim avatar emmett-deen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.