espnet2.fileio.score_scp.SingingScoreReader
Less than 1 minute
espnet2.fileio.score_scp.SingingScoreReader
class espnet2.fileio.score_scp.SingingScoreReader(fname: ~pathlib.Path | str, dtype: type = <class 'numpy.int16'>)
Bases: Mapping
Reader class for ‘score.scp’.
Examples
key1 /some/path/score.json key2 /some/path/score.json key3 /some/path/score.json key4 /some/path/score.json …
>>> reader = SoundScpReader('score.scp')
>>> score = reader['key1']
get_path(key)
keys() → a set-like object providing a view on D's keys