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,115 |
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 |
Retro text with hover | 1,578 Kb |
Animated image gallery preloader | 2,405 Kb |
Animated CSS3 social buttons | 2,573 Kb |
JQuery Adaptive Slider Demo | 3,568 Kb |
Glowing lights loader animation with pure CSS | 2,785 Kb |
Colorful glass menu concept | 3,022 Kb |
Animated scroll-dependant menu using scrollMonitor | 2,734 Kb |
CSS3 animated sliding box without javascript. | 2,554 Kb |
Textured text | 1,947 Kb |
Sass colorful shadows experiment | 2,886 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 |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Webkit decolorize | Fivera | 1,675 Kb |
VerbalExpressions Converter | Cmalven | 2,607 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
Material Design-Layout-Principles Practice | Fraina | 2,331 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
Resize image | Happyhj | 1,892 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!