How To A Make Text To Speech Converter with Html Css and Javascript

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

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

  • @technologycoder
    @technologycoder 2 ปีที่แล้ว

    good one!

  • @Balraj-ok
    @Balraj-ok ปีที่แล้ว

    is ko download kase karya download button

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

    Please make how to download this voice in mp3

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

      Update the code
      const downloadBtn = document.querySelector(".download-btn");
      downloadBtn.addEventListener('click',function(data , name = "audio.mp3"){
      var speech = synth.speak(speakText)
      const blob = new Blob([speech], {type:"audio/mpeg"})
      const href = URL.createObjectURL(blob)
      const a = Object.assign(document.createElement('a'), {
      href,
      style:"display:none",
      download:"audio"
      });
      document.body.appendChild(a)
      a.click()
      URL.revokeObjectURL(href)
      a.remove()
      })

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

    I made my own version and it worked, but suddenly there where no speech, I tried changing stuff but still the same - then downloaded and browsed the sourcecode, but the where no sound still although I have internet and other sound types works fine, any clue?

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

      It seems to have been a render problem, the computer lagged behind i guess, never mid i wrote, great video.