Skip to content

Instantly share code, notes, and snippets.

View jameselsey's full-sized avatar

James Elsey jameselsey

View GitHub Profile
@jameselsey
jameselsey / README.md
Created August 24, 2025 11:52
pan/tilt servo kit

Additional board URLS

https://espressif.github.io/arduino-esp32/package_esp32_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
https://raw.githubusercontent.com/ricardoquesada/esp32-arduino-lib-builder/master/bluepad32_files/package_esp32_bluepad32_index.json
@jameselsey
jameselsey / README.md
Last active August 14, 2025 10:57
Better TTS Using Piper!
@jameselsey
jameselsey / requirements.txt
Created July 6, 2025 06:13
Speech-to-speech on python, with Porcupine, OpenAI Whisper, Ollama and PyTTS
openai-whisper
setuptools-rust
speechrecognition
torch
torchaudio
numpy
pyaudio
soundfile
librosa
pvporcupine
gst-launch-1.0 shmsrc socket-path=/tmp/infered.feed do-timestamp=1 ! \
video/x-raw,format=RGB,width=1920,height=1080,framerate=30/1 ! \
identity sync=true ! \
queue max-size-buffers=2 leaky=downstream ! \
videoconvert ! \
fpsdisplaysink video-sink=autovideosink text-overlay=true sync=false
@jameselsey
jameselsey / User.java
Created December 23, 2013 12:23
Gist for my spock blog post: http://www.jameselsey.co.uk/blogs/techblog/why-all-java-devs-should-at-least-consider-groovy-and-spock-for-testing Place source files in src/main and run `gradle idea` to create an intelliJ project file
package com.jameselsey.demo.spocktutorial.domain;
public class User {
private int id;
private String name;
private int age;
public int getId() {
return id;
public final class MyUtilityClass{
// Sonar wants me to add private constructors to static util classes
private MyUtilityClass() {
}
public static String someUtilityMethod(String input){
return input.reverse();
}