Skip to main content

Featured

Tic Tac Toe

Tic Tac Toe Tic Tac Toe is a simple, two-player strategy game played on a 3x3 grid. Players take turns marking a square with either an "X" or an "O", with the goal of being the first to align three of their marks in a row, column, or diagonal.  I have made a simple Tic Tac Toe game using html, css, javascript.  The game doesnot have much features. The game is created to be played by two peoples. It is just a simple game. The code of this game you get in my github page   Link of this game code is below: Tic Tac Toe Game Code /

Changing text into voice using Javascript just in browser's console

 This blog is about how you can change the text into voice. First of just open the chrome

do ctrl+shift+i

Or you can just right click in any where inside the browser and  click on inspect then

one box will appear when in top 'console' is also one of the option click there.

From here the main thing starts

write this code

first -- > wordToSpeak = new SpeechSynthesisUtterance;

Second --> wordToSpeak.text = "Hello world";

You can know more voices by typing 'speechSynthesis.getVoices()' in console

Third --> wordToSpeak.lang = speechSynthesis.getVoices()[2]

Fourth --> speechSynthesis.speak(wordToSpeak)

Comments

Popular Posts