Vits Software and web development services
Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Vits Software and web development services, Entrepreneur, 136, Eldoret.
Other than software and web development services, I offer Graphic design services, always welcome
Text to Speech
Text to Speech
Speak
// Check if the browser supports the Web Speech API
if ('speechSynthesis' in window) {
const speakButton = document.getElementById('speakButton');
const textToSpeak = document.getElementById('textToSpeak');
// Create a SpeechSynthesisUtterance object
const utterance = new SpeechSynthesisUtterance();
// Set default values
utterance.rate = 1; // Speech rate (0.1 to 10)
utterance.pitch = 1; // Speech pitch (0 to 2)
utterance.lang = 'en-US'; // Language
// Handle the speak button click event
speakButton.addEventListener('click', () => {
if (textToSpeak.value !== '') {
utterance.text = textToSpeak.value;
speechSynthesis.speak(utterance);
}
});
} else {
console.log("Web Speech API is not supported in this browser.");
}
I personally use this to study for test and exams as my note are in PDF😊
Source: Cyberpunk coding
Click here to claim your Sponsored Listing.
Category
Website
Address
136
Eldoret