title: Programmatically extract embedded file from PowerPoint presentation
body: <p>I am working on a VSTO PowerPoint add-in which involves recording and playing sounds. I was requested at the last minute to allow users to pick the device that will play the sound, like Skype does.  </p>
  
  <p>In general, I don't think it is possible to specify what device PowerPoint should use, except by selecting the default device in the control panel, which I can't do programmatically. However I can recognize the sounds my add-in recorded because they are embedded as SoundEffect in Shapes that I tag.  </p>
  
  <p>My question is: is it possible to access the .wav file directly - something like the equivalent of <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.soundeffect.importfromfile.aspx" rel="nofollow noreferrer">SoundEffect.ImportFromFile</a>, but in the other direction? If I could do that, I could open and play the .wav file using the add-in code, and not PowerPoint.  </p>
  
  <p><em>[Edit: by directly, I mean "without having to save the presentation under a different format"]</em>  </p>
  
  <p>Alternatively, is there a way to add and retrieve binary files as embedded content in a presentation?  </p>
  
  <p>I suspect this is not possible, but that if someone knew, I would find that person on StackOverflow!</p>