protected override IEnumerable <object> GetLine() { yield return(TaskId); yield return(TaskName); yield return(AudioId); yield return(AudioName); yield return(Dialect); yield return(SpeakerId); yield return(UniversalSpeakerId); yield return(UniversalFileId.ToString("00000")); yield return(InputTextPath); yield return(InputAudioPath); yield return(LocalAudioPath); yield return(Online); yield return(Valid); }
protected override void SetLine(string[] split) { TaskId = int.Parse(split[0]); TaskName = split[1]; AudioId = int.Parse(split[2]); AudioName = split[3]; Dialect = split[4].ToLower(); SpeakerId = split[5]; UniversalSpeakerId = split[6].Contains('_') ? split[6] : int.Parse(split[6]).ToString("00000"); UniversalFileId = int.Parse(split[7]); InputTextPath = split[8].ToLower(); InputAudioPath = split[9].ToLower(); LocalAudioPath = split[10].ToLower(); Online = bool.Parse(split[11]); Valid = bool.Parse(split[12]); DeliveredTextPath = Path.Combine(@"F:\WorkFolder\300hrsAnnotation", Dialect, UniversalSpeakerId, UniversalFileId.ToString("00000") + ".txt").ToLower(); DeliveredTextFolder = Path.Combine(@"F:\WorkFolder\300hrsAnnotation", Dialect, UniversalSpeakerId); Sanity.Requires(DeliveredTextFolder.Split('\\').Length == 5); DeliveredAudioPath = Path.Combine(@"F:\WorkFolder\300hrsRecording", Dialect, UniversalSpeakerId, UniversalFileId.ToString("00000") + ".wav").ToLower(); DeliveredAudioFolder = Path.Combine(@"F:\WorkFolder\300hrsRecording", Dialect, UniversalSpeakerId); Sanity.Requires(DeliveredAudioFolder.Split('\\').Length == 5); }