How to create a simple voice-activated assistant in C#.

While this sounds advanced (and it can be), it’s not that hard to set up a very basic setup where a custom application runs in the background in C# by using the built in speech recognition libraries in Windows 10.

Taking this idea further, I personally have a “Jarvis” that runs on my computer, automating basically all of my common actions, including launching games, music, sleeping my computer, adjusting the volume, minimizing windows, controlling the lights, and (best of all), sending emails and messages. I recommend using an external API for speech recognition if you’re serious about building something similar, as Microsoft’s sucks. You can build your own, or attempt to use something like Google’s API.

Anyway, here’s some simple C# code that should get some ideas flowing.


My Patreon | My Website

gmr.dev

You may be wondering, “what the hell is up with your website? It doesn’t end in .com anymore.” You’d be right. The ending of a URL is called a “TLD”, which stands for a “top level domain”. Top level domains can be virtually anything, although for some reason craploads of regulations are put in place for what can go after the period in domain names. “.dev” is a newer such one, created by Google. I recommend you check these out if you’re interested.

Anyway, I decided to pick up “gmr.dev” and use it for a bit and see if I like it. Everything pointing to the old “gmrgames.com” domain still works perfectly and will redirect seamlessly to “gmr.dev” for now until I decide if I want to keep it or not.

Feel free to contact me at “hi@gmr.dev”. 😉


My Patreon | My Website

semver.org

Standards are important, especially with computers. Without standards, you end up with crap like JavaScript, HTML, and CSS. Too little, too late.

And one of the things that’s needed a standard for a very, very, very long time are version numbers. Ever notice some versions for software are like 2019.2.4, while others are like 1.0, 1.1, 0.1, alpha, beta, beta-0rc1, and 89.23x? It’s so confusing to know whether anything is up to date, what you’re updating to, and who is on what. Is version 0.9 of the triangle generator library compatible with version v1.3.0m of the graphics processing library?

Continue reading semver.org


My Patreon | My Website

Don’t forget to take breaks.

Often in our busy lives and worlds, we can become swept up in the busy workload that we have to complete in our normal routines. It’s easy to forget to take a break.

“But hold on,” I hear you already thinking, “I take time off all the time!”

 

What you’re doing is slacking, which is different from taking a break. Browsing reddit while you’re SUPPOSED to be working or going to get lunch is different. Those kinds of breaks never seem to be recognized by your own mind, and you will quickly become burnt out if you never take actual vacation time out of the time you’re supposed to be working.

Instead, choose to do something deliberate. Make a mental note in your mind: I’m going to go bowling with my family instead of working until 9pm tonight, or something similar. This will make it much easier to remember what relaxation, happiness, and general mental well-being all feel like when you’re in a particularly stressful point of your lives. You may think it’s counter-productive to be intentionally taking time off if you’re stressed about money or work, but you’d be surprised.

In fact, according to Stanford and other researchers, the average person is only productive for 2 hours and 53 minutes every day. That’s… not a lot of time. They’ve found out that time is better spent relaxing, resting, and making sure your mental and physical health are in tip top shape, and that will actually lead to you being more productive.

Perhaps start by standing up every hour or so that you can get your blood flowing. Additionally, you’re supposed to look away from the computer screen every 20 minutes for optimal ocular-care, but come on. It takes me 20 minutes to figure out what the hell a Discrete Fourier Transform is, so that’s not gonna happen.

I’d recommend every couple hours or so just stretching, getting up, looking around, jumping around, dancing, or just doing something to break up the tedium. It will help you get back to what you were doing better, and it will help your overall well-being.

And finally, here’s a video I edited in a couple minutes of my friend dancing from a kickback that we set up for precisely the reasons stated above.


My Patreon | My Website