Tutorial 5 – Export DB with Audio

Tutorial 4 – DB Export Status

In the previous tutorial, we learned how to create an ‘.oml’ file and check the status of an DB Export.

In this tutorial, we’ll learn how to create a DB export with audio.

First, we need to give AxAuga access to a microphone on our camera:

We use AxAuga’s SetCameraIDispatch to give AxAuga access to the camera’s microphone for privileges to stream audio.

Now that AxAuga has audio streaming access from the camera’s microphone, let’s setup the Export with audio:

If you look closely, you’ll see that the only change above from what we already have is the audioURL setting. We use IMicrophone’s GetLiveUrl to get the streaming URL for the microphone as our audioURL during AxAuga’s StartDBExportWithAudio.

Next, we need to modify our ‘.oml’ file to include the audio file generated by the audio export:

The ‘.oml’ file including audio is in this form:

Here’s a break down of the new ‘.oml’ tag above.
audiodatabase: Tag for the file name of the DB export audio section; this will have the ‘.wav’ extension. Includes a ‘time’ attribute which must be set to the beginning time of the export in UTC.

Screenshots of the final program:

That’s it. You can now Export DB with audio.

Tutorial 6 – Canceling DB Exports