Skip to content

Instantly share code, notes, and snippets.

View pmdevita's full-sized avatar

Peter DeVita pmdevita

View GitHub Profile
@pmdevita
pmdevita / ffmpeg-pyaudio.py
Last active June 1, 2025 08:44
Play an audio file using FFMPEG, PortAudio, and Python
# FFMPEG example of Blocking Mode Audio I/O https://people.csail.mit.edu/hubert/pyaudio/docs/
"""PyAudio Example: Play a wave file."""
import pyaudio
import wave
import sys
import subprocess
CHUNK = 1024
@pmdevita
pmdevita / freeze.py
Created December 16, 2017 17:16
cx_Freeze a python tkinter app
import sys, os
from cx_Freeze import setup, Executable
project_name = "My Tkinter App"
exe_name = "MyTkinterApp"
version = "1"
main_script = "main.py"
optimization = 0
resources = []
packages = ["tkinter"]