You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.1 KiB

  1. import 'dart:typed_data';
  2. import 'package:audio_waveforms/audio_waveforms.dart';
  3. import 'package:demo001/xunfei/phonetic_dictation/phonetic_dictaion_model/w.dart';
  4. import 'package:demo001/xunfei/recognition_result/recognition_content/recognition_content.dart';
  5. import 'package:get/get_rx/src/rx_types/rx_types.dart';
  6. class TranslateState {
  7. RxBool isRecorderReady = false.obs; //是否录音已准备
  8. RxBool isRecording = false.obs; //是否录音中
  9. RxList<KDXFSentenceModel> kdxfSentenceList = <KDXFSentenceModel>[].obs;
  10. }
  11. class KDXFSentenceModel {
  12. String content = '';
  13. String sid = '';
  14. String transResult = '';
  15. String audioPath = '';
  16. Uint8List audioBytes = Uint8List(0);
  17. ///已经释放好的最终文本
  18. List<String> isFinalTransString = [];
  19. ///临时翻译文件
  20. // String isTempTransString = '';
  21. List<W> perviousWs = [];
  22. List<RecognitionContent> contentList = [];
  23. int audioDuration = 0;
  24. final PlayerController playerController = PlayerController();
  25. KDXFSentenceModel({
  26. required this.content,
  27. required this.sid,
  28. required this.transResult,
  29. required this.audioPath,
  30. required this.perviousWs,
  31. });
  32. }