yx_speech_to_text_flutter/example
Max e961996ec6 Remove recognition history functionality
Complete removal of recognition history features:

1. State Variables Removed:
   - _recognitionHistory list variable
   - _realtimeResults list variable
   - All history-related state management

2. Methods Updated:
   - _clearHistory() renamed to _clearContent()
   - Simplified to only clear current text and base text
   - Removed history list operations

3. UI Components Removed:
   - _buildHistoryCard() method completely removed
   - History card from main layout removed
   - History-related ListView and ListTile widgets removed

4. Callback Logic Simplified:
   - onListeningStatusChanged callback cleaned up
   - Removed history insertion logic when recording stops
   - Removed _realtimeResults.clear() operations
   - Simplified state management to focus only on current text

5. App Bar Updated:
   - Clear button tooltip changed from '清除历史' to '清除内容'
   - Button now calls _clearContent() instead of _clearHistory()

The app now focuses purely on real-time speech recognition with
editable text input, without maintaining any recognition history.
This simplifies the codebase and improves performance by removing
unnecessary data storage and UI rendering.
2025-09-09 16:22:38 +08:00
..
android Fix Android namespace issues: add namespace to build.gradle, update AGP and Kotlin versions 2025-09-06 17:25:05 +08:00
assets/models Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
ios Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
lib Remove recognition history functionality 2025-09-09 16:22:38 +08:00
test Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
.gitignore Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
.metadata Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
README.md Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
analysis_options.yaml Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
pubspec.lock Initial commit: Flutter speech-to-text plugin with Sherpa-ONNX integration 2025-08-27 17:09:36 +08:00
pubspec.yaml Fix Flutter assets configuration: explicitly specify all model files in pubspec.yaml 2025-09-06 17:36:54 +08:00

README.md

yx_asr_example

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.