Beispiel #1
0
    def setup_segments(self, ):
        """Create segments in data directory"""
        target = os.path.join(self._output_path(), 'segments')

        # even if there is only one utterance per wav, we add the
        # tstart/tstop in the segment file
        CorpusSaver.save_segments(self.corpus, target, force_timestamps=True)
Beispiel #2
0
 def setup_segments(self,):
     """Create segments in data directory"""
     target = os.path.join(self._output_path(), 'segments')
     # write only if starts and stops are specified in segments.txt
     if self.corpus.has_several_utts_per_wav():
         CorpusSaver.save_segments(self.corpus, target)