Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var transcript;
- var mySpeechShortcuts = [{found: "moneysmile", substitute: '🤑'}, {found: "poop", substitute: '💩'}];
- var finalTxt = '';
- mySpeechShortcuts.map((shortcut) => {
- finalTxt += transcript.replace(shortcut.found, shortcut.substitute);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement