Azure / PyRIT

The Python Risk Identification Tool for generative AI (PyRIT) is an open access automation framework to empower security professionals and machine learning engineers to proactively find risks in their generative AI systems.
MIT License
1.91k stars 366 forks source link

FEAT: Add audio frequency converter #478

Closed michellemorales closed 4 weeks ago

michellemorales commented 1 month ago

Description

This PR introduces an audio frequency converter that accepts an audio file and produces a higher-frequency output file. It ensures compatibility with DuckDB and Azure SQL Memory.

Tests and Documentation

Added demo notebooks and ran Jupytext and added PyTests

michellemorales commented 1 month ago

@rdheekonda / @nina-msft - after some back and forth with the leadership at my company, I've been told that I'm not allowed to contribute to open source at this time ☹️ Going to close this PR without merging. It's close to being done, feel free to make use of it. The only thing left is to sort out a bug with the writing of the file. I ran into some issues with converting from bytes to numpy array when using the data serializer alone. Scipy gives you the capability to parse the wav file header, this implementation uses bytes.io to read from and write to a bytes buffer, doing in-memory data manipulation without needing to write to a physical file; that way you can parse the header using the scripy read/write, do the conversion and still read and write using the data_serializer. There might be a more straight forward way, but this was the approach I made the most headway on.

Best of luck with everything! Hope I'll be able to contribute in the future.

rlundeen2 commented 1 month ago

Thank you for communicating proactively with us Michelle! Best of luck to yourself also!

rdheekonda commented 4 weeks ago

Thanks, @michellemorales. We're almost there! I'll address all the comments.