{"name":"QR Voice Maker","key":"qrvoicemaker","version":"1.0.2","instructions":"Enter the text to be read between the qrvoicemaker tags after they are inserted on the page.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"https://cdnjs.cloudflare.com/ajax/libs/qrcode-generator/1.3.1/qrcode.min.js","shim":"","defaults":"format=\"text|ssml\",voice=\"Mizuki|Takumi|Nicole|Russell|Maxim|Tatyana|Miguel|Penelope\",size=6","amd":"1","body":"<div id=\"@@AUTOID@@\">","bodyend":"</div>","script":"//this writes the data as UTF8 bytes for non ascii. We decode in qr text reader\nqrcode.stringToBytes = qrcode.stringToBytesFuncs['UTF-8'];\n\nvar usetext = $('#' + @@AUTOID@@).text();\nconsole.log(usetext);\nvar typeNumber = 0; //the higher the number ... the more data\nvar errorCorrectionLevel = 'L';\nvar qr = qrcode(typeNumber, errorCorrectionLevel);\nqr.addData(@@format@@ + '|' + @@voice@@ + '|' + usetext);\nqr.make();\ndocument.getElementById(@@AUTOID@@).innerHTML = qr.createImgTag(@@size@@,8);","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}