All aboard! The Coding Train is on its way with creative coding video tutorials on subjects ranging from the basics of programming languages like JavaScript to algorithmic art, machine learning, simulation, generative poetry, and more. Choo choo!
A coding challenge explores building a voice chatbot in p5.js using Whisper for speech-to-text, Kokoro TTS for text-to-speech, and multiple AI brains including RiveScript and SmolLM. All processing runs locally in the browser via WebGPU, preserving privacy while enabling creative experimentation with conversational AI.
A tutorial exploring new text features in p5.js 2.0, including loading Google Fonts via async/await, variable font weights animated with sine waves, and tracing letter contours with text to contours. The host demonstrates rendering text as rotatable 3D models in WebGL using text to model, while encountering and explaining live bugs in the new API.
An introduction to using Transformers.js for in-browser machine learning with p5.js. Covers loading the library, the pipeline API for sentiment analysis and language detection, JavaScript concepts like async/await and object destructuring, and model configuration including device selection and data type quantization.
A coding tutorial on Bayes' theorem and naive Bayes text classification. The host builds a p5.js classifier labeling text as positive, negative, or neutral based on word frequencies, covering prior probability, Laplacian smoothing, and the naive independence assumption.
A live coding session exploring how to build a browser-based conversational voice chatbot using p5.js, OpenAI's Whisper for speech-to-text, Kokoro TTS for voice output, and local ML models via Transformers.js. The host experiments with chatbot "brains" ranging from simple pattern-matching to RiveScript to a small language model, emphasizing creativ