Skip to main content

How to Convert Text Into Audio or MP3 Sound

Few days earlier, when I was creating a video for my YouTube channel I found it really interesting to add a sound clip narrating the user seeing the video. After lots of searching, I found two ways to convert text into mp3 sound. You can easily do it without any hassle. You'll also like to know how to add image cover in songs.

How to Convert Text Into Audio or MP3 Sound

You can use any text and this trick will narrate it. If you will use the first method than you will require Notepad (preinstalled in your OS) and a sound recorder that will record the audio for you. Second method is very easy, you will use Google Translate API to convert texts and characters into mp3 sound.

The sound will be heard like the human voice and you will be able to understand it very easily. Getting excited to know this cool trick? Just keep reading and explore the trick.

First Method
As I said first will require you to open Notepad. In this method you will be creating a small program that will convert text into audible sound in human voice. You can record the sound clip if you like. Let's now see the trick.
  • First, open Notepad and add the following code on it.
Dim msg, sapi

msg=InputBox("Enter your text to convert Audio: ","Text to Audio Converter: Ashish")

Set sapi=CreateObject("sapi.spvoice")

sapi.Speak msg
How to Convert Text Into Audio or MP3 Sound
  • Now click on File located in the top left corner.
  • After that click on Save As.
How to Convert Text Into Audio or MP3 Sound
  • Choose All Programs from the Save as Type drop down.
  • Save the file as VBS format. Just name the file audio.vbs and click Save button.
How to Convert Text Into Audio or MP3 Sound
  • Now locate the folder where you saved this file (audio.vbs file if you're following this tutorial).
  • Double click the file to open it.
  • Add your text in the available text area and click OK.
  • Now your Computer will read the written text for you.
If you're not able to record the audio from the small program created using Notepad than follow the second method. This method is much easier.

Second Method
In this method, we will use Google. You will only need to write your text in the URL and you will get that text and word as a mp3 file. Looks complicated? I will explain you how to do this. I will also tell you how can you insert a Form or Input box in your site to make easy to convert any text into audio.

Let us first know how to convert your text file into audible mp3 sound using Google API.
  • Take a look at the URL below.
https://translate.google.com/translate_tts?tl=en&q=Hello+World
  • We will use the above given URL to convert our text file into audio. If you want to see the demo than go to the above given URL. After going on the above web address, you will get an mp3 file which contain the sound clip saying Hello World.
  • Now lets know how to use this to convert our own text into audio file. Take a look at the URL again.
https://translate.google.com/translate_tts?tl=en&q=Hello+World
  •  Replace the text highlighted with red color with your own text. The Blue Plus (+) is for space. If you want to convert Welcome to Spicy Tweaks into mp3 file than you will add the text as welcome+to+spicy+tweaks and after that load the URL in your browser and mp3 file containing the text converted into audible sound.
  • That's It! If you followed the above steps carefully than you should have converted your text file into audio sound.
Note: You can only use 100 characters in the Google Text to Audio API. There are many other ways to convert text to audio file. Search for it on Google and you will find one which is little better than this one.
If you want to add an Input box in your website or weblog than use the following code.
<form method="get" action="https://translate.google.com/translate_tts?tl=en">

 <textarea name="q"></textarea>

 <input type="submit" value="Text-To-Speech"></input>

</form>
Finished! I hope you're enjoying this trick to convert any text into audible mp3 sound. If you need any help than feel free to drop a comment below. Keep visiting for more tricks. You can also subscribe to our free Newsletter.

Comments

Post a Comment

Popular posts from this blog

How to Get Unlimited Ammo and Health in IGI 2

After many days I am sharing a cool and interesting trick for game lovers. Do you enjoy playing IGI2? Of course you like this game. But many of you may be facing verious difficult situations in completing this game. It's because the missions are really tough and you can't complete whole IGI 2 without using it's cheat codes. There are many hacking tricks for IGI available in the Internet but most of them don't work. And this is the reason I am sharing these cheat codes to you. After reading this post you will be able to play this game without losing any health and ammo. We'll use a lite application to achieve the immortality and infinite number of ammo in this game. You will have to download the software from the link that I will provide you a little later in this post. Let's first know what this software will do. It will allow you to keep your health unlimited in IGI game. And if the health will not decrease then you will never die in the game IGI. You wil...

Block Annoying Ads in Google Chrome with Adblock Plus

Have you ever how some of the ads annoys peoples. Let's say you go to some website to download your favorite song but when you visit that site, you are welcomed with more than two or three pop-ups ads. Some websites keep more that two or three pop-ups and ads, they can place as many as 10 pop-ups on one single page. When you will visit a particular page the pop-ups will be opened automatically. We understand they need money to run their company but they should look for some good ways to show ads rather than showing forced pop-up ads, they can show ads if it that ad is relevant to their users or most of their visits their for that types of readings. Anyway, if you are really annoyed with these pop-up ads and wanted to block them than you can use a Google Chrome extension which is named Adblock Plus. This software can handle these pop-up ads very easily. It will not only block your pop-ups, it will also block the advertisement that is shown in the page too. After installing this app...

Enhancing Productivity with Virtual Desktops in Windows 11

In the fast-paced digital age, multitasking has become an essential skill for maximizing productivity. With the release of Windows 11, Microsoft introduces an enhanced Virtual Desktop feature that empowers users to organize their workspace, manage tasks efficiently, and seamlessly switch between different contexts without the clutter. In this article, we'll delve into the world of Virtual Desktops in Windows 11 and explore how this powerful tool can elevate your productivity to new heights. Task View  The Power of Virtual Desktops Virtual Desktops in Windows 11 provide users with a dynamic way to manage their open applications and tasks. Think of them as separate workspaces, each with its own set of open apps, files, and windows. This allows you to group related activities together, effectively creating a focused environment for different projects, tasks, or workflows. Getting Started with Virtual Desktops Setting up and using Virtual Desktops in Windows 11 is a breeze: 1. Creating...