(new Audio("data:@audio/mp3;base64,....")).play()
document.createEvent()
.function getTextSplitted(text, font, maxWidth){
let splitted = text.split(/\s+/g);
let rows = [];
let curRow = splitted.shift();
while(splitted.length){
let nextWord = splitted.shift();
if( getTextWidth( curRow + ' ' + nextWord, font ) <= maxWidth) {
curRow += ' ' + nextWord;
}
else {
rows.push(curRow);
curRow = nextWord;
}
}
rows.push(curRow);
return rows;
}