Skip to content

Tag: python

Python Makefile Libraries

Although it may sound trivial how should I import libraries in Python makefiles? I am creating a basic Python makefile such as: However I am using specific libraries inside my_file.py, not included/imported in the basic package, for instance: xlswriter. So if someone tries to run the code they must type in te…

python filter lines matching keyworks

I have working python script producing following output. Script output Now i want want any line starting with stream in output so i am using following logic but its not working. Answer Your data is a massive string instead of a list of strings as you expected. Also it’s easier to use str.startswith inst…

Continuous Audio Playback with Sounddevice

I am writing a program to stream audio over a network, so I have a thread to record data and one to send it. When testing the audio has noticeable gaps. I beleive this is due to the sounddevice.play() function, the example below has the same problem. The gaps coincide with the play length, so it appears to be…