Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var transcript;
  2. var mySpeechShortcuts = [{found: "moneysmile", substitute: '🤑'}, {found: "poop", substitute: '💩'}];
  3. var finalTxt = '';
  4. mySpeechShortcuts.map((shortcut) => {
  5. finalTxt += transcript.replace(shortcut.found, shortcut.substitute);
  6.  
  7. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement