espnet2.fileio.score_scp.SingingScoreWriter
Less than 1 minute
espnet2.fileio.score_scp.SingingScoreWriter
class espnet2.fileio.score_scp.SingingScoreWriter(outdir: Path | str, scpfile: Path | str)
Bases: object
Writer 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 …
>>> writer = SingingScoreWriter('./data/', './data/score.scp')
>>> writer['aa'] = score_obj
>>> writer['bb'] = score_obj
close()
get_path(key)