I think you should use app.execMenuItem to run the recorder. Here, you may need a privileged script.
After recording, you should try doc.getAnnots and play with Annotation properties to reach the one that is a sound/media corresponding to yours and place it where you wish.
i didn't find how to do it with app.execMenuItem.
where us the privilged script?
How can I do it?
Are you asking: how do I write a privileged script? This is in the SDK, let us know if you have trouble finding or understanding it.
Please tell me what is it
The description of the execMenuItem method describes how to get a list of all internal menu names to the console. You have to do that and poke through the list, hoping to find something obvious.