Skip to main content

My last day of work and hoping it's a beginning of something new

It was my last day of work and I'm happy I finished my remaining tasks on time. And now, it's time for me to move on to my next journey. The only reason I took the job was for me to get enough experience to build my own app. So I already planned it that I will quit my job after 3 years since I signed the 3-year bond contract.  Didn't know that it was tough having one source of income but I think I'm good since I'm still living with my parents... There are times that I compare my income and life to my coworkers, same age brackets and shit... which resulted for me to lose my focus and my mind shifted a lot of times, and I think it's a waste of time to repeat it again. But... at the end of the day... I'm just too lazy I guess and I think that a day job is not suited for me. I'm more of the build one app and make it rain type of guy... Don't even know what to do now!!! I guess I'll try playing stocks and multiplying my money while trying to build my ...

How to literally say "Hello World" in node.js (text to speech - Javascript).

Speech to text program


We will be building a simple "Hello World" for newbies/noobies who wants to be different and have swag 😎. We will make our own computer literally say "Hello World". Yes you'll hear them speak those words or anything you would like to type like: "I wanna kick my boss/teacher, [his name]", once in a while please be honest with your feelings. Kidding aside, we will just be needing 2 lines for this program to work.

Btw if you want the more in depth version of this tutorial then checkout this youtube video: 



And here are the tools that we need:
  • NodeJS
  • Say (A third party library in node)
  • and one last thing: Your brain 😉

First, let's create a project folder and a file named index.js. Then open a cmd on that folder and type the command:
npm init
Enter the details it needs or just press enter till a file named package.json is created. After that we continue by installing the Say library. 
npm i --save say
Remember: In most cases, in coding you don't want to reinvent the wheel since you'll just waste your time and second you'll have more bugs (they went this path too but since they got first they already fixed most of the bugs) and we don't want the stress.

const say = require('say');
say.speak("Hello World!");

It's amazing isn't it? The computer can now even speak with just 2 lines of codes.

Life is really simple, but we insist on making it complicated. - Confucious

Comments