Skip to content

Instantly share code, notes, and snippets.

@Spiritdude
Spiritdude / tts_server.py
Last active January 9, 2025 17:34
Kokoro ONNX TTS Server (OpenAI compatible)
'''
Description:
Implements OpenAI Speech API backend:
https://platform.openai.com/docs/api-reference/audio/createSpeech
Client-side:
import openai, pyaudio
player_stream = pyaudio.PyAudio().open(format=pyaudio.paInt16, channels=1, rate=24000, output=True)
@Spiritdude
Spiritdude / maf.cfg
Last active August 3, 2025 08:30
MAF: Multi-Axis Framework for Klipper
[respond]
# == MAF: Multi-Axis Framework for Klipper ==
# written by Rene K. Mueller <renekmueller@xyzdims.com>
#
# Define your G-code axis information in another file, and then:
#
# [include maf.cfg] # -- include this file
#
# [gcode_macro MY_MAF]