VadInputEntity.cs 832 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace AliFsmnVadSharp.Model
  7. {
  8. internal class VadInputEntity
  9. {
  10. private float[]? _speech;
  11. private int _speechLength;
  12. private List<float[]> _inCaches = new List<float[]>();
  13. private float[]? _waveform;
  14. private E2EVadModel _vad_scorer;
  15. public float[]? Speech { get => _speech; set => _speech = value; }
  16. public int SpeechLength { get => _speechLength; set => _speechLength = value; }
  17. public List<float[]> InCaches { get => _inCaches; set => _inCaches = value; }
  18. public float[] Waveform { get => _waveform; set => _waveform = value; }
  19. internal E2EVadModel VadScorer { get => _vad_scorer; set => _vad_scorer = value; }
  20. }
  21. }