SHARE
TWEET

Untitled

a guest Mar 21st, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top