How to load a subset of data from a full dataset with specific proportions. For example, we have a dataset of food items from different groups: dairy, fruits, protein, vegetable in an XLSX sheet and we want to load a subset of data from it such that: 30% of the picked sample are ‘vegetable’ from […]
Category: Coding
Extended weather forecast via API
In this blog, I share my code on getting extended weather forecasts (multiple days and hours within each day) for any city around the world using openweathermap API. I used Python for this as usual. First, as a developer, I need to get a developer API key from http://api.openweathermap.org which is free for reasonable amount […]
Summarization & Detecting Topics by Deepgram Whisper AI
This is the last of 3-part series on Datagram’s Audio->Text Transcriber using their latest AI engine called Whisper. Be sure to read them in this order, if you haven’t already, to follow along best: To complete essentially all the features I care to implement, today I’m going to add the last 2 features in my […]
AI Transcription with Diarization
This is the last of 3-part series on Datagram’s Audio->Text Transcriber using their latest AI engine called Whisper. Be sure to read them in this order, if you haven’t already, to follow along best: This is a continuation of the post about Deepgram’s AI technology used for transcribing real-time or pre-recorded audio in virtually any […]
Powerful auto-transcription using AI (openAI’s Whisper)
Today, I’ll show you how to tap into the “world’s most powerful speech-to-text API” from our own applications. We’ll be using Deepgram, which is based on OpenAI’s Whisper AI SST technology. Deepgram claims to have trained their AI model with10,000+ years worth of audio data. (For more of my posts about Text to Speech and vice […]
One of the newest TTS on the block
Today, I’ll share some information on one of the latest transformer-based TTS (text-to-speech) or text-to-audio that’s generating some buzz. Yes, AI. While there are several really great models out there from IBM, Microsoft, Google for example, this one’s a little different. Let me introduce Bark. By the way, to see older posts on TTS related […]
Splitting a continuous blob of text
There are times we copy a bunch of text from a web page or a trascript online where formatting is not copied and therefore everything copied comes in the clipboard as a large continuous text blob without line breaks. We often need to split a continous series of sentences into their individual lines for better […]
Companion Code Handbook for Hello Arduino! Published
Greetings readers. I have just published (live on Feb 10th) the paperbook book: Companion Code Handbook: Hello Arduino! This companion book is a handy reference with complete source code with comments for all projects detailed in the book Hello Arduino! This is a printed version of all source code required for completing all projects (and […]
How is chatGPT useful?
Author’s note: Instead of me explaining the benefits of ChatGPT, I figured why not let ChatGPT write its own summary and toot its own horn, and best of all write it straight into my blog site, creating a real blog post (without having me to copy/paste) and go live?! So, there we have it…this post […]
Decision Tree and Prediction (Python)
This is an example of a Decision Tree model (very useful and popular method) to make prediction using the power of Machine Learning…using just a normal PC. Here we predict salary (depedendent variable) by giving various types of criteria (different forks in a decision tree). e.g. What’s the salary of a particular gender, of some […]