Beispiel #1
0
 def textgrid(self):
     if os.path.exists(self.tgpath):
         res = TextGrid.load(self.tgpath)
     else:
         res = None
     self.__dict__['textgrid'] = res
     return res
Beispiel #2
0
 def textgrid(self):
     if os.path.exists(self.tgpath):
         res = TextGrid.fromFile(self.tgpath)
     else:
         res = None
     self.__dict__['textgrid'] = res
     return res
Beispiel #3
0
def get_text_grid(fn):
    in_name = os.path.splitext(os.path.basename(fn))[0]
    tg_fn = data_file_path(in_name + '.TextGrid')
    return TextGrid.load(tg_fn)