Posts

Showing posts from February, 2023

Turn ChatGPT into Your own Voice AI with Python

Image
For more information about the Vosk speech recognition engine used, refer to: https://alphacephei.com/vosk/ Code used in this video: # TinkerChatGPT by The Tinker Foundry # Giving ChatGPT ears to hear and a voice to speak # ---------------------------------------------------- # Dependencies on python libraries described below # ---------------------------------------------------- # Uses Vosk speech recognition: #    pip install vosk #    pip install sounddevice #    prerequisites: as described in https://alphacephei.com/vosk/install and also python module `sounddevice` (simply run command `pip install sounddevice`) # Also uses text-to-speech (TTS): #    pip install pyttsx3 # Of course, we use the openAI api for access to ChatGPT engine: #    pip install openai # ---------------------------------------------------- import argparse import queue import sys import json import sounddevice as sd import pyttsx3 import openai from vosk import Model, KaldiRecognizer, SetLogLevel SetLo

ESP32 as a Server Handling HTTP GET Requests from a Client

Image
  ESP32 C-Code used in this video: // Tinker Foundry // ESP32 Server to handle GET requests from a client on the local WiFi network // Indicate request on serial interface and also provide a response to the client // To test this, once uploaded onto the ESP32, note the IP address reported by ESP32 over the serial monitor, and // then open a browser on your computer and enter the following in the address bar: http://IP_Address_from_ESP32/?param1=10&param2=hello // Also, try running the accompanying Python HTTP client code with GUI for a complete experience... #include <WiFi.h> // need to install libraries ESPAsyncWebserver and AsyncTCP from Github respository // https://github.com/me-no-dev/ESPAsyncWebServer // https://github.com/me-no-dev/AsyncTCP // In both cases, download library zip files and extract to C:\Users\name\Documents\Arduino\Libraries directory so Arduino will see them // Remove the "-master" suffix of the library directories #include "ESPAsyncWe

Up Close With a US $10 Bill

Image