Complete removal of unused fields to simplify data structure:
1. SpeechRecognitionResult Model Simplified:
- Removed 'confidence' field (was always hardcoded to 0.8)
- Removed 'alternatives' field (was always empty array)
- Kept only 'recognizedWords' which is actually used
- Updated constructor, fromMap, toMap, toString, ==, hashCode accordingly
2. YxAsrService Updates:
- Simplified _sendResult() method signature
- Removed unused confidence and alternatives parameters
- Updated method call to only pass recognizedWords
- Cleaner method invocation: _sendResult(recognizedWords: result.text)
3. Benefits Achieved:
- 🧹 Simplified data structure - only essential fields remain
- 🚀 Reduced memory usage - no unnecessary field storage/transmission
- 💡 Cleaner API - method signatures reflect actual usage
- ⚡ Better performance - less data serialization/deserialization
- 🔍 Improved code clarity - no confusing unused parameters
4. Sherpa-ONNX Integration:
- OnlineRecognizerResult only provides: text, tokens, timestamps
- No confidence or alternatives data available from the library
- Our simplified structure now aligns with actual data source
This optimization removes all the 'fake' hardcoded values and focuses
on the actual speech recognition text result that users need.