A Pen by Creative Punch
How do I make an a pen by creative punch?
What is a a pen by creative punch? How do you make a a pen by creative punch? This script and codes were developed by Creative Punch on 09 December 2022, Friday.
A Pen by Creative Punch - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Creative Punch</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>HTML5 Speech Synthesis</h1>
<table id="speech-synthesis-demo"> <tbody colspan="2"> <tr> <td>Voice:</td> <td> <select id="voicelist"> </select> </td> </tr> <tr> <td>Text:</td> <td> <textarea rows=6 id="speech-input"></textarea> </td> </tr> <tr> <td></td> <td> <button id="speak-btn">Speak!</button> </td> </tr> </tbody>
</table>
<h1 class="author">Demo by <a href="http://creative-punch.net" target="_blank">Creative Punch</h1> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Creative Punch - Script Codes CSS Codes
body { background-color: #38c;
}
h1 { text-align: center; color: white; text-shadow: 0 2px 2px #148;
}
h1 a { color: #9ef; text-decoration: none; font-style: italic;
}
h1 a:hover { color: #fff;
}
#speech-synthesis-demo { width: 650px; margin: 50px auto 0;
}
#speech-synthesis-demo td:nth-child(1){ color: white; text-shadow: 0 1px 0 #888;
}
#voicelist, #speech-input, #speak-btn{ width: 100%; display: block; margin: 5px; padding: 5px; border: 0; box-sizing: border-box;
}
A Pen by Creative Punch - Script Codes JS Codes
$(function(){ speechSynthesis.onvoiceschanged = function() { var $voicelist = $('#voicelist'); speechSynthesis.getVoices().forEach(function(voice, index) { console.log(index, voice.name, voice.default ? '(default)' :''); var $option = $('<option>') .val(index) .html(voice.name + (voice.default ? ' (default)' :'')); $voicelist.append($option); }); } $('#speak-btn').click(function(){ var text = $('#speech-input').val(); var msg = new SpeechSynthesisUtterance(); var voices = window.speechSynthesis.getVoices(); msg.voice = voices[$('#voicelist').val()]; msg.text = text; msg.onend = function(e) { console.log('Finished in ' + event.elapsedTime + ' seconds.'); }; speechSynthesis.speak(msg); })
});
Developer | Creative Punch |
Username | CreativePunch |
Uploaded | December 09, 2022 |
Rating | 3.5 |
Size | 2,368 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS3 animated sliding box without javascript. | 2,554 Kb |
Animated CSS3 social buttons | 2,573 Kb |
Animated scroll-dependant menu using scrollMonitor | 2,734 Kb |
Glowing lights loader animation with pure CSS | 2,785 Kb |
Textured text | 1,947 Kb |
Retro text with hover | 1,578 Kb |
3D jQuery rotator | 3,238 Kb |
Animated image gallery preloader | 2,405 Kb |
Gradient text with CSS3 | 2,032 Kb |
Long shadow social icons with Sass | 4,129 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Alter bg opacity on hover... | Chrisboon27 | 2,054 Kb |
Exploding Text | Jjmartucci | 4,749 Kb |
Wikipedia Viewer | Odylic | 2,333 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
CSS Tooltips | Darylldoyle | 2,599 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!