Home > Mobile >

Use speechSynthesis javascript code to produce a welcome voice for your landers (5)


12-01-2017 03:45 AM #1 duiyao (Member)
Use speechSynthesis Javascript Code to Produce a Welcome Voice For Your Landers

I stumped upon an antivirus lander today, and when I opened it, there was a voice telling me 'Your device is infected by 7 viruses!'. I thought, woah, this guy really invested in his landers by using voice recordings. And then after several times of thorough searchs I still couldn't find the audio 'src=' code. It got me curious, so after some digging,I found this code snippet:

Code:
<script type="text/javascript">
                function speak(text) {
                var msg = new SpeechSynthesisUtterance();
                var voices = speechSynthesis.getVoices();
                msg.voice = voices[2];
                msg.voiceURI = 'native';
                msg.volume = 1;
                msg.rate = 1;
                msg.pitch = 1;
                msg.text = text;
                msg.lang = 'en';
 
                speechSynthesis.speak(msg);
} 
                speak('Your device is infected by 7 viruses!');
 </script>
I marked the parts that are changeable in red.

msg.lang = 'en' sets the language spoken to be English, you can find the ISO language code here

http://www.lingoes.net/en/translator/langcode.htm

'speak('Your device is infected by 7 viruses!!')' tells the computer what words to speak, punctuations make impacts on the tone, confirmed by experiments.

I couldn't seem to find any mentions of this in the forum, so I think I'll post here. Just in case any fellow newbies want to try this technique on their landers. I personally find it very fun to explore.


12-01-2017 05:12 AM #2 erikgyepes (Moderator)

Thanks for the share duiyao.

I've seen it's being used for a while especially on AV and sweeps campaigns.

Have you done any split tests how it performs with and without the audio?


12-01-2017 09:33 AM #3 syabuzar (Member)

Whoa!
I've seen such kinda LP that use the audio to get attention, I'm petty sure this technique work for them but we need to split test to be 100% sure!
Thanks a lot for sharing it with the community....


12-05-2017 05:56 PM #4 duiyao (Member)

I have tried it in several campaigns, so far, nothing noteworthy, almost no impact to the conversions. But I think it is a cool and fun trick to know about.


12-20-2017 08:39 AM #5 j80montes (AMC Alumnus)

Awesome


Home > Mobile >