Skip to content

Instantly share code, notes, and snippets.

View TadewosBell's full-sized avatar
🎯
Focusing

Tadewos Bellete TadewosBell

🎯
Focusing
View GitHub Profile
@TadewosBell
TadewosBell / flaskaudiostream.py
Created May 25, 2019 19:16 — forked from hosackm/flaskaudiostream.py
Flask streaming an audio file
from flask import Flask, Response
app = Flask(__name__)
@app.route("/wav")
def streamwav():
def generate():
with open("signals/song.wav", "rb") as fwav:
data = fwav.read(1024)