AudioScraper
Python script that pulls out the audio in the RTP layer of a packet capture. This particular script makes use of the PyShark library. It also assumes the pcap is being read in as a file (not live capture.)
Install / Use
/learn @wbwarnerb/AudioScraperREADME
#Project Description Making use of the PyShark Python library, I put together a simple script that performs some useful RTP stripping. It takes the RTP layer out and turns it into a RAW audio file. This can be turned into a wav using a sox command like: sox -t raw -r 8000 -v 4 -c 1 -U my_audio.raw my_audio.wav
Notes
I did have to modify PyShark. In Python3, the comments in remote_capture.py file had to be updated. The \Device\NPF was being interpreted by Python, even though it was commented out... so it would error on \N. By removing the comment or adding \Device\NPF this was resolved.
##Future Improvements
- I would like to find a python library to do the audio conversion to remove the dependency on sox.
- Make this OO
- Other methds to pull out other parts of the pcap (user defined)
- UI/GUI
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
