搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.9

livespeechtotext

輕鬆為您的 Flutter 應用程式加入語音轉文字功能,啟用語音控制功能。使用此外掛可更輕鬆地將口語轉換為文字。

AndroidiOS
近 30 天下載
49
喜歡數
27
Pub 分數
150

安裝套件

flutter pub add livespeechtotext

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

LiveSpeechToText 是一個 Flutter 插件,可在行動應用程式中實現即時語音轉文字功能。它讓使用者能無縫地將口語轉換為文字,非常適合語音控制介面、語音輸入工具和輔助功能。此插件適用於 Android 與 iOS,可透過簡單指令輕鬆整合至 Flutter 專案。支援連續轉錄,適合免手持互動。由 ihsanberahim.com 開發,利用原生語音辨識 API 以確保穩定表現。

適用情境

  • 語音控制的應用程式導航
  • 即時語音輸入工具
  • 為視障使用者提供的無障礙功能
  • 免提資料輸入
  • 互動式語音助理
  • 口語筆記的轉錄

主要特色

  • 即時語音辨識
  • 對 Android 和 iOS 的支援
  • 透過 pub.dev 的簡單整合
  • 連續轉錄模式
  • 輕便高效
  • 內建錯誤處理

適合對象

  • 開發語音功能應用的開發者
  • 需要免提輸入的應用程式
  • 注重可訪問性的應用程式
  • 快速原型化語音功能
  • 具有語音輸入的教育或生產力工具

使用建議

  • 需要麥克風權限
  • 性能取決於設備硬體
  • 雲端識別需要網路連接
  • 有限的離線功能
  • 準確率會因口音和背景噪音而異
  • 激活時可能消耗大量電池

原始 README

以下為關聯原始碼儲存庫的 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

所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.0.2

原始碼儲存庫

使用此套件的專案

暫無相關資料。