File size: 410 Bytes
c961996
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from dataclasses import dataclass
import os


@dataclass
class LyricsCommentData(object):
    music4all_id: str
    songmeanings_id: str
    lyrics: str
    comment: str

    def get_audio_path(self): # get audio path from id
        self.audio_path = os.path.join("Music4All/music4all/audios",
                            self.music4all_id + '.mp3'
                            )
        return self.audio_path