Adding noises with python in my animation

It seems what I want to do is very simple, but I can’t find the right API for this. Basically I have a complicated animation that is created largely through python code. A certain short sound will happen over and over based on what the python script does. Rather than insert sound manually a bunch of times, I’d like to do it within my python script. So have it add a frame and a sound at the same time.

I tried to use bpy.ops.sequencer.sound_strip_add(), but that merely inserted the sound a bunch of times at frame zero (the current frame seems to have no effect). Looking on the internet, they have a lot of stuff about making sound visualizers and using speakers, but I don’t need any of that. I just want to play simple sounds at specific times. Any help would be greatly appreciated.

Have you looked at the EDL addon now built in? It places strips at particular timecode points in the timeline.

Actually, I didn’t see the parameter that I needed. Here’s what I used and it worked:

bpy.ops.sequencer.sound_strip_add(filepath=sound,<b>frame_start=</b>???)

Sorry. I hope I didn’t waste anybody’s time.