Hello. I don’t know if this question has been asked or if anyone is doing it. I am doing DSP algorithm development in Python on a Mac. I then can port it to C++ running on the STM32. I know how to do all of this already. But is there a way to convenient pipe audio data to my algorithm from the Mac, process it, and then pipe the results back to the Mac? Maybe with USB?
If I can do this, I can get everything tested in a very orderly fashion by unit testing each data block and comparing the result to the Python version.
Any help would be greatly appreciated!!
1 Like
This would depend on your definition of ‘convenient.’
The code for USB audio hasn’t been implemented in libDaisy.
It wouldn’t be USB audio. Just generic USB data transfer. It’s for testing against a SciPy model on canned data, it doesn’t need to be real time.
Having said that, I think I’ve settled on another technique. Using GDB server, it should be possible to load input data into a memory buffer from a file, then run the software under test, then transfer the output data back to a file. Python could automate the whole process as long as it can talk to the (command line) GDB server.