Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        internal static void CreateAndAnnotateSegment(TimeTier tier, float startTime, float endTime)
        {
            var segment = tier.AddSegment(startTime, endTime);

            File.OpenWrite(Path.Combine(tier.SegmentFileFolder, tier.GetFullPathToCarefulSpeechFile(segment))).Close();
            File.OpenWrite(Path.Combine(tier.SegmentFileFolder, tier.GetFullPathToOralTranslationFile(segment))).Close();
        }
Exemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        public override string GetFullPathOfOtherAnnotationFileForTimeRange(TimeRange timeRange)
        {
            var segment = TimeTier.Segments.FirstOrDefault(s => s.TimeRange == timeRange) ??
                          new AnnotationSegment(null, timeRange);

            return(TimeTier.GetFullPathToCarefulSpeechFile(segment));
        }
Exemplo n.º 3
0
 public void GetFullPathToCarefulSpeechFile_PassNullSegment_ThrowsException()
 {
     Assert.Throws <NullReferenceException>(() => _tier.GetFullPathToCarefulSpeechFile(null));
 }