Search packages, repositories and app categories

Package detailsv1.0.9

livespeechtotext

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

AndroidiOS
30-day downloads
49
Likes
27
Pub points
150

Install package

flutter pub add livespeechtotext

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

LiveSpeechToText is a Flutter plugin that enables real-time speech-to-text functionality in mobile applications. It allows users to convert spoken language into text seamlessly, ideal for voice-controlled interfaces, dictation tools, and accessibility features. Built for Android and iOS, it integrates easily with Flutter projects using a simple command. The plugin supports continuous transcription, making it suitable for hands-free interaction. Developed by ihsanberahim.com, it leverages native speech recognition APIs for reliable performance.

Use cases

  • Voice-controlled app navigation
  • Real-time dictation tools
  • Accessibility features for visually impaired users
  • Hands-free data entry
  • Interactive voice assistants
  • Transcription of spoken notes

Key features

  • Real-time speech recognition
  • Support for Android and iOS
  • Simple integration via pub.dev
  • Continuous transcription mode
  • Lightweight and efficient
  • Built-in error handling

Suitable for

  • Developers building voice-enabled apps
  • Apps requiring hands-free input
  • Accessibility-focused applications
  • Prototyping voice features quickly
  • Educational or productivity tools with voice input

Considerations

  • Requires microphone permissions
  • Performance depends on device hardware
  • Internet connection needed for cloud-based recognition
  • Limited offline capabilities
  • Accuracy varies with accent and background noise
  • May consume significant battery when active

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 1 items

  • plugin_platform_interface^2.0.2

Source repository

Projects using this package

No data available yet.