#NEWLINE# def __init__( self , root , encoding = 'utf8' ) : #NEWLINE# #INDENT# '\n        Construct a new TIMIT corpus reader in the given directory.\n        :param root: The root directory for this corpus.\n        ' #NEWLINE# if isinstance ( encoding , compat . string_types ) : #NEWLINE# #INDENT# encoding = [ ( '.*\\.wav' , None ) , ( '.*' , encoding ) ] #NEWLINE# #UNINDENT# CorpusReader . __init__ ( self , root , find_corpus_fileids ( root , self . _FILE_RE ) , encoding = encoding ) #NEWLINE# self . _utterances = [ name [ : ( - 4 ) ] for name in find_corpus_fileids ( root , self . _UTTERANCE_RE ) ] #NEWLINE# 'A list of the utterance identifiers for all utterances in\n        this corpus.' #NEWLINE# self . _speakerinfo = None #NEWLINE# self . _root = root #NEWLINE# self . speakers = sorted ( set ( ( u . split ( '/' ) [ 0 ] for u in self . _utterances ) ) )