How To Make Text To Voice Converter Using JavaScript | Text To Speech Generator

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • JavaScript project to Build Text to Voice generator using HTML, CSS and JavaScript Step by step tutorial for beginners
    ❤️ SUBSCRIBE: ‪@GreatStackDev‬
    👉 Download 30 JavaScript projects Source Code (Including Text to voice converter):
    greatstack.dev...
    In this video we will learn to make a Text to speech converter or Text to voice generator app using HTML CSS and JavaScript. We will also add feature to change the voice. We can generate the speech in different voices.
    This is best JavaScript project for college student or job portfolio.
    Download Images: greatstack.dev...
    #JavaScriptProject #JavaScript #WebDevelopment #GreatStack
    -----------------------------------------
    Suggested Course:
    ❤️ Complete website Using HTML and CSS
    ✔️ 8 Complete website step by step
    ✔️ Source Code Download
    ✔️ 76 Lectures, 12 Hours Video
    ✔️ Course Completion certificate
    👉 greatstack.dev...
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make a Business website step by step:
    ► • How To Make Website Us...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make fitness website design using HTML CSS:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make a Job Portal website design with HTML & CSS:
    ► • How To Make Website Us...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    ◼️ Source code link is shared in community post for all my coding videos exclusively for channel members (only channel members can see)
    Join Channel Membership:
    ► / @greatstackdev
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iama...
    Connect with GreatStack:
    Instagram: / greatstackdev
    Twitter: / greatstackdev
    Facebook: / greatstack

ความคิดเห็น • 166

  • @RajuAhmed-ze9gn
    @RajuAhmed-ze9gn ปีที่แล้ว +23

    Although your tutorials are simple, its your presentation and GUI that stands out

  • @kishorjha5028
    @kishorjha5028 ปีที่แล้ว +52

    you should also explain your js code

    • @__ikiran
      @__ikiran 5 หลายเดือนก่อน +5

      yes that's why we all are here

    • @SachinYadav-co4fm
      @SachinYadav-co4fm หลายเดือนก่อน +2

      Bilkul

  • @abdiladifmohamud5957
    @abdiladifmohamud5957 ปีที่แล้ว +6

    Thank you, sir. I am watching this video since I am working on your 30-day javascript projects challenge. Next, I request you add functionality where we can download the audio file.
    Thanks, Avinash

    • @rishabhinc2936
      @rishabhinc2936 8 หลายเดือนก่อน

      is it possible ??

    • @abdiladifmohamud5957
      @abdiladifmohamud5957 8 หลายเดือนก่อน

      @rishabhinc2936 yeah. It just needs someone who understands more of Javascript

  • @asheradanehi
    @asheradanehi 10 หลายเดือนก่อน +4

    Great tutorial, but you should try to explain your code a lot more. I love the playlist but you don’t explain a lot of your code. ChatGPT’s been a co-teacher for me since I started learning with your channel. Grateful for all you do still. ❤

  • @arabindrajak4951
    @arabindrajak4951 11 หลายเดือนก่อน +33

    js code with Explanation
    let speech = new SpeechSynthesisUtterance() //This line creates a new instance of the SpeechSynthesisUtterance object, which represents the text that will be spoken.
    let voices = []; //This line initializes an empty array called voices where the available voices will be stored.
    let voiceSelect = document.querySelector("select"); //This line selects the element from the HTML document, presumably used for selecting different voices.
    window.speechSynthesis.onvoiceschanged = () =>{ //is an event that fires when the list of available voices has been updated. The assigned arrow function is a callback that executes when this event occurs.
    voices = window.speechSynthesis.getVoices(); //This line retrieves the available voices using the getVoices() method and assigns them to the voices array.
    speech.voice = voices[0]; //This sets the voice property of the SpeechSynthesisUtterance object (speech) to the first voice in the voices array
    voices.forEach((voice, i) => (voiceSelect.options[i] = new Option(voice.name, i))); //This loop iterates over the voices array and populates the element (voiceSelect) with options representing different voices. It creates a new Option object for each voice and assigns the voice's name as the option text and the index i as the option value.
    };
    voiceSelect.addEventListener("change" , () =>{
    speech.voice = voices[voiceSelect.value] //sets the voice property of the SpeechSynthesisUtterance object (speech) to the selected voice, allowing the user to choose a specific voice from the dropdown menu.
    });
    document.querySelector("button").addEventListener("click", () =>{ //select button and when we click
    speech.text = document.querySelector("textarea").value; //take value from textarea and assign to st
    window.speechSynthesis.speak(speech); //using speak method we listen our speech
    });

    • @WEBSITEINTEGRATOR
      @WEBSITEINTEGRATOR 11 หลายเดือนก่อน

      Am using mobile phone t Android to code I don't think I will work , I have designed it but the JavaScript did not work

    • @WEBSITEINTEGRATOR
      @WEBSITEINTEGRATOR 11 หลายเดือนก่อน

      Sir am using mobile phone android to code , I have designed it but the JavaScript did not work , I don't think Mobile it will work with mobile phones

    • @arabindrajak4951
      @arabindrajak4951 11 หลายเดือนก่อน

      @@WEBSITEINTEGRATOR I don't have idea it's working on mobile or not

    • @asheradanehi
      @asheradanehi 10 หลายเดือนก่อน +1

      thank you for this ❤

    • @ananyababu7628
      @ananyababu7628 8 หลายเดือนก่อน +1

      Thank you so much for this . Your life saver

  • @DrMwamba
    @DrMwamba ปีที่แล้ว +6

    Hi Sir; thank-you for the hard work you are doing, we are do grateful.
    I would like to ask something, I don't get more voices in dropdown box, it's empty, the text only read in one default voice... Do you perapse know what could be the reason? Thank you

  • @ocram-00
    @ocram-00 ปีที่แล้ว +4

    Hi teacher, on each browser there is a different operation for example in Chroome and Edge it works fine, in Opera there are few options and in firefox it doesn't work at all, we don't even come up with options when you click on the select.

    • @Coding-pj4zq
      @Coding-pj4zq ปีที่แล้ว +1

      same issue here

    • @vdtnghia
      @vdtnghia ปีที่แล้ว +1

      same. Using FF I see no option dropping down

    • @gauravpatil68
      @gauravpatil68 ปีที่แล้ว

      same issue here

    • @fatemehasgharzadeh618
      @fatemehasgharzadeh618 11 หลายเดือนก่อน

      I had the same issue and searched about it, after adding setTimeout it works but select options are less than chrome select options :/

    • @Pawankumar-fu9yb
      @Pawankumar-fu9yb 8 หลายเดือนก่อน

      ​@@fatemehasgharzadeh618can u share the code brother

  • @MigKig-kw3ll
    @MigKig-kw3ll 11 หลายเดือนก่อน +1

    too much good project for beginner to expert level

  • @sayonpaul7357
    @sayonpaul7357 ปีที่แล้ว +3

    Awesome awesome.....bring more and more projects like this.

  • @MuhammadMukhtar-ow4lo
    @MuhammadMukhtar-ow4lo 9 วันที่ผ่านมา

    Thank you sir! please is their any setting make to the chrome before running js code because is not all the js code it execuiting pls i want know
    thank you so much sir

  • @jemsbond8802
    @jemsbond8802 ปีที่แล้ว +1

    Bro I always like watching your videos I really want But not everything is understood by watching TH-cam videos Sometimes help is not available I start over Let's start by watching w3 school Let's start with html The most important thing is that if I run into any problem, please tell me how to get your help the end your younger brother

  • @thething6268
    @thething6268 11 หลายเดือนก่อน

    damn , that is cool thank you for the toturial

  • @kkkim88
    @kkkim88 11 หลายเดือนก่อน

    i learn many from this tutorial thanks....

  • @worldmovie353
    @worldmovie353 ปีที่แล้ว +1

    Super ,Thank you sow much

  • @mariellepv3186
    @mariellepv3186 11 หลายเดือนก่อน

    Hello, great tutorial as usual ! Halfway through it, I have a question : the class 'hero' has a display flex center center, why then the class 'row' is on the left at 7:38min? When I do it it is in the center as I thought it would be. Anyway thank you for all your amazing and clear cut tutorials.

    • @roshinif
      @roshinif 10 หลายเดือนก่อน

      Justify content justifies the whole content.. if you wanna align that class row to dead center, put justify content to it as well.. or use text align or margin: 0 auto;.. also you can add display: grid; to the class row then place-items: center;

  • @fawaazshaikh5997
    @fawaazshaikh5997 ปีที่แล้ว

    Hey, thanks for making this short project. I hate to say this but the website is responsive... I've followed your code.

  • @UtiFavour
    @UtiFavour ปีที่แล้ว +2

    Thank you!

  • @Sriganeshreddy
    @Sriganeshreddy ปีที่แล้ว

    Thank You so much Its really very helpfull to learn Bro

  • @URRonaldo6724
    @URRonaldo6724 ปีที่แล้ว +2

    How to add voice record and download functionality In the same project.

    • @SOKHAN
      @SOKHAN ปีที่แล้ว

      Good question I need ❤

  • @k3nguyenvandiep923
    @k3nguyenvandiep923 4 หลายเดือนก่อน

    This an awesome tutorial video.
    Please instruct me how to write Javascript codes to set the Vietnamese voice language that contains "vi-VN" string?
    Thank you.

  • @ranisonawane5313
    @ranisonawane5313 ปีที่แล้ว

    thanku , its easily understanding code from u

  • @S-Lomar
    @S-Lomar 10 หลายเดือนก่อน

    Well done 🥰👍👍❤️💕👍👍❤️💕👍👍❤️💕👍👍❤️💕👍

  • @panzagamesplay902
    @panzagamesplay902 11 หลายเดือนก่อน

    this channel is the best

  • @yuva2916
    @yuva2916 2 หลายเดือนก่อน +1

    Tqsmmmmmm❤

    • @GreatStackDev
      @GreatStackDev  2 หลายเดือนก่อน +1

      Glad you liked it. Thanks for your comment. 😊

    • @yuva2916
      @yuva2916 2 หลายเดือนก่อน

      @@GreatStackDev need more videos sir ♥️🤌

  • @SandeepMR26
    @SandeepMR26 11 หลายเดือนก่อน

    Awesome keep it up

  • @RomioGamesplay
    @RomioGamesplay ปีที่แล้ว +1

    Wow 😮😮😮

  • @muhammedshahiduddin5904
    @muhammedshahiduddin5904 ปีที่แล้ว

    Thank you for awesome content

  • @niangcodeur
    @niangcodeur ปีที่แล้ว +1

    it is possible to change the language of a video

  • @wisdomelue
    @wisdomelue ปีที่แล้ว

    great stuff man

  • @ogunbowalenurudeen5511
    @ogunbowalenurudeen5511 ปีที่แล้ว +2

    Please create a way the voice generated can be downloaded

  • @ankitabiswas884
    @ankitabiswas884 4 วันที่ผ่านมา

    How to add voices? Do i have to download voices? And from where?

  • @YeahJack_
    @YeahJack_ ปีที่แล้ว +3

    Thank you so much. You explain it really well and keep it simple!

  • @KINGSMEANSKAIFU
    @KINGSMEANSKAIFU ปีที่แล้ว +1

    sir mera language selector ka dropdown ni araha different language ka

  • @nishanttyagi1991
    @nishanttyagi1991 หลายเดือนก่อน

    This is Text 2 voice. Is similar project possible for Voice 2 text. If yes, please provide

  • @akshatrailaddha5900
    @akshatrailaddha5900 15 วันที่ผ่านมา

    How to add voices in my system. by default i have only one voice cover in my system. Any idea ? thanks in advance

  • @adebanjoogunseye
    @adebanjoogunseye 5 หลายเดือนก่อน

    Beautiful...and amazing..but
    My editor have this ...
    ReferenceError: "speechSynthesissUtterance() undefined ", what can i do...assign a value?

  • @rahimibadov2940
    @rahimibadov2940 6 หลายเดือนก่อน

    Well done

  • @webdevdost
    @webdevdost 2 หลายเดือนก่อน +1

    just typing code without explaining it ? chat gpt teaches better than this

  • @Basitkhan-fc3fq
    @Basitkhan-fc3fq 6 หลายเดือนก่อน

    Very nice

  • @HAMIZUSE
    @HAMIZUSE 9 หลายเดือนก่อน +1

    Bro can i download converted voice??

  • @gullapallijyothikiran3371
    @gullapallijyothikiran3371 ปีที่แล้ว +1

    nice

  • @SZBrosOfficial
    @SZBrosOfficial ปีที่แล้ว +2

    can we save this voice in library | Add download button

    • @SOKHAN
      @SOKHAN ปีที่แล้ว +2

      Yes..That’s the question that I want to ask too❤ thanks

  • @chriscalver8595
    @chriscalver8595 5 หลายเดือนก่อน

    Brilliant

  • @RajKumar_akhariya
    @RajKumar_akhariya ปีที่แล้ว

    Nice one

  • @mikemwilamike
    @mikemwilamike 10 หลายเดือนก่อน

    Great explanation with vivid codes but sir I need the codes so where can I find them?

  • @VarunSharma-sk5os
    @VarunSharma-sk5os ปีที่แล้ว +1

    my select option is not coming ..can plz anybody help me?

  • @SuperMegaman17
    @SuperMegaman17 ปีที่แล้ว +1

    Magnífico, gracias por compartir.

  • @AdanJelle-wt4zu
    @AdanJelle-wt4zu 2 หลายเดือนก่อน

    thank so much

  • @karan_editz_60
    @karan_editz_60 3 หลายเดือนก่อน

    How to make speech downloadable sir

  • @خالدالناشري-د5ز
    @خالدالناشري-د5ز ปีที่แล้ว

    You are amazing

  • @lpg690
    @lpg690 2 หลายเดือนก่อน

    how can i add a download button and download the audio from this?// help please

  • @henrydetoff618
    @henrydetoff618 6 หลายเดือนก่อน

    Thanks very much, how do download the voice after converted

  • @subhanullahadelyar
    @subhanullahadelyar 28 วันที่ผ่านมา

    Can u please provide me a source code for download mp3 button to download the speech??

  • @chiedoziechibueze2885
    @chiedoziechibueze2885 ปีที่แล้ว +2

    Pls sir where can I download the image button

    • @ananyababu7628
      @ananyababu7628 8 หลายเดือนก่อน

      Its in the description

  • @kalyanikadam6391
    @kalyanikadam6391 2 หลายเดือนก่อน

    Please tell me How add select inside different voices

  • @Sunanda1979
    @Sunanda1979 ปีที่แล้ว +1

    How to add voices in the device

  • @TheAiBozz
    @TheAiBozz 4 หลายเดือนก่อน

    How can we save the audio to our PC after conversion???

  • @aartikanwar7175
    @aartikanwar7175 9 หลายเดือนก่อน +1

    Hindi voice kese aayegi please batao

  • @hassanraza8379
    @hassanraza8379 6 หลายเดือนก่อน

    How to download this in mp3

  • @optimusprime5787
    @optimusprime5787 2 หลายเดือนก่อน

    Voice are not coming in select.what is reason?🙏🙏🙏🙏🙏

  • @apexengrave
    @apexengrave ปีที่แล้ว

    can we make it so it also downloads the audio into a mp3 file?

  • @aarjavjain6901
    @aarjavjain6901 ปีที่แล้ว

    After clicking on select i.e, dropdown box, voices box is not showing please help me

  • @padasalgi
    @padasalgi 2 หลายเดือนก่อน

    This javascript code is not working. please guide and advise. thanks

  • @abhishekpandit5099
    @abhishekpandit5099 4 หลายเดือนก่อน

    how can i add more voices in my website?

  • @myselfAlien
    @myselfAlien 7 หลายเดือนก่อน

    Wow

  • @user-go9mn4kq2g
    @user-go9mn4kq2g 5 หลายเดือนก่อน

    Hello sir, you have Make Text To Voice Converter Using JavaScript everything is all good and great work but how can i download that voice we have entered in the area box. please solve this then i have purchase this 100% sure. i am waiting for the reply sir.

  • @thisissahaj
    @thisissahaj 4 หลายเดือนก่อน

    The voices are not getting selected on mobile, help me please ?

  • @wisdomworkshops
    @wisdomworkshops 3 หลายเดือนก่อน

    Hello your video is so good but please make a video how to download that speech after changed

  • @SOKHAN
    @SOKHAN ปีที่แล้ว +1

    For me Why JavaScript is not working..??😢😢

  • @mr.sanatani_07
    @mr.sanatani_07 7 หลายเดือนก่อน

    After clicking listen button voice is not audible
    How to fix this

  • @chiedoziechibueze2885
    @chiedoziechibueze2885 ปีที่แล้ว

    Pls where can I see the play button and pause button

  • @jazbach441
    @jazbach441 8 หลายเดือนก่อน

    I would like to ask something, I don't get more voices in dropdown box, it's empty, the text only read in one default voice... Do you perapse know what could be the reason? Thank you
    3
    Reply

    • @abdul.r___
      @abdul.r___ 7 หลายเดือนก่อน

      Same here

  • @BikeThe2000
    @BikeThe2000 ปีที่แล้ว

    I have one question. Is better to know php or html?

  • @SonuComedyCreator
    @SonuComedyCreator ปีที่แล้ว

    sir please tell me any javascript book (not beginners book)
    I live in india

  • @RoyalGaming-pp9zi
    @RoyalGaming-pp9zi 3 หลายเดือนก่อน

    I am getting only 3 voice options

  • @sachingreat222
    @sachingreat222 ปีที่แล้ว

    Plz add some commas,fullstop ,tables

  • @WEBSITEINTEGRATOR
    @WEBSITEINTEGRATOR 11 หลายเดือนก่อน

    Please oo can mobile phones code this particular project, i tried the JavaScript did not work

  • @darkdragonseye7371
    @darkdragonseye7371 11 หลายเดือนก่อน

    I had qn error that says "Can't find variable: speachSynthesisUtterance"

  • @infowithvijay
    @infowithvijay ปีที่แล้ว

    Will it work on Chrome browser because I built the same project It works well on brave and fire fox browsers but not on Chrome.
    I think Chrome is angry with chat gpt 😂

  • @sayanmukherjee3691
    @sayanmukherjee3691 5 หลายเดือนก่อน

    the voice function isnt working in my code

  • @emekaihiere1964
    @emekaihiere1964 ปีที่แล้ว

    😊❤️

  • @PareekG573
    @PareekG573 5 หลายเดือนก่อน

    Thank you it work 🥰

  • @electrical_engineering_
    @electrical_engineering_ ปีที่แล้ว

    how can i run it on my website without using localhost

  • @umarusmanbashirjada4568
    @umarusmanbashirjada4568 ปีที่แล้ว

    Please where we can download the audio file 😮

  • @TweaksPH
    @TweaksPH ปีที่แล้ว

    Hello, i want to download the generated text to speech. how to do that? It is great that visitors can download the audio too...

    • @rishabhinc2936
      @rishabhinc2936 8 หลายเดือนก่อน

      is it possible to download ???

  • @Love_line_4444
    @Love_line_4444 7 หลายเดือนก่อน

    Hello bro mere me keval microsoft ka hi 6-7 language hai baki kha se laye ho please help me brother ❤❤❤❤

  • @respectshorts497
    @respectshorts497 ปีที่แล้ว

    Will this code work in Android

  • @sachingreat222
    @sachingreat222 ปีที่แล้ว

    Will it read table

  • @falguniprasadranga3147
    @falguniprasadranga3147 ปีที่แล้ว

    Please one project on TH-cam video downloader

  • @Atlas2Atlante0
    @Atlas2Atlante0 4 หลายเดือนก่อน

    Not working. I get this message in Visual Studio Code: 'name' is deprecated.ts(6385)
    lib.dom.d.ts(27433, 5): The declaration was marked as deprecated here.
    const name: void

  • @SarthakKumar
    @SarthakKumar 11 หลายเดือนก่อน

    how can i add download feature in this

  • @user-nz8de4hc6z
    @user-nz8de4hc6z 7 หลายเดือนก่อน

    mera 4 lines read krny k baad voice bnd hojata aagy ka content read ee nhi krta

  • @mockvlogs1316
    @mockvlogs1316 ปีที่แล้ว

    When I was doing that same my code editor says Synthesis utterance is undefined??.. please solve my problem

  • @horrorhawk_gaming
    @horrorhawk_gaming ปีที่แล้ว

    Sir react js ke project lao please ❤

  • @delikiz3722
    @delikiz3722 ปีที่แล้ว +1

    I dont know why my java script file is not working

    • @abhay_k00
      @abhay_k00 ปีที่แล้ว

      check same JS code in the browser console

  • @simpleomiii3660
    @simpleomiii3660 ปีที่แล้ว

    hello sir, please share the images link also....in our few video you don't share images ,.......why you don't share images links

    • @ananyababu7628
      @ananyababu7628 8 หลายเดือนก่อน

      He shares the images links in the description

  • @movieclips.773
    @movieclips.773 หลายเดือนก่อน +1

    bro where is javascript source code

    • @GreatStackDev
      @GreatStackDev  หลายเดือนก่อน

      It's in the description.

  • @etechindia5800
    @etechindia5800 3 หลายเดือนก่อน

    Download ka bhi bta dete sir

  • @sagaringle9901
    @sagaringle9901 10 หลายเดือนก่อน

    Sir how to add download button code❤❤

  • @gamingflick
    @gamingflick ปีที่แล้ว

    hello sir i could find the images link file