Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Is there a way to save recorded Audio Clips on the HoloLens?

How would someone go about saving Audio Clips on the HoloLens?

AR Developer

Best Answer

  • Options
    dbarrettdbarrett ✭✭✭
    Answer ✓

    I guess I'll answer my own question here as I figured it out.

    Basically I used an open source saver called SavWav.cs, there are two different ones. Make sure you use the mobile based one and not the static class one as the static class one is very heavy on resources.

    For my filePath I use Application.persistantDataPath and combine it with my unique file name.

    I also took this a step further and saved the filePath string into a PlayerPrefX String Array to be able to save all of my references to my audio clips even after the user reboots the application. I also save the Cursor position in a Vector3 array that I save using a PlayerPrefX Vector3 array.

    Once I finish recording an audioClip I instantiate a gameObject with an AudioSource and give it the position I saved and make it relative to a world anchor so that all of the Audio Clips are in the same position. All the user has to do is airtap on a cube and it plays the Audio Clip.

    AR Developer

Answers

  • Options
    dbarrettdbarrett ✭✭✭
    Answer ✓

    I guess I'll answer my own question here as I figured it out.

    Basically I used an open source saver called SavWav.cs, there are two different ones. Make sure you use the mobile based one and not the static class one as the static class one is very heavy on resources.

    For my filePath I use Application.persistantDataPath and combine it with my unique file name.

    I also took this a step further and saved the filePath string into a PlayerPrefX String Array to be able to save all of my references to my audio clips even after the user reboots the application. I also save the Cursor position in a Vector3 array that I save using a PlayerPrefX Vector3 array.

    Once I finish recording an audioClip I instantiate a gameObject with an AudioSource and give it the position I saved and make it relative to a world anchor so that all of the Audio Clips are in the same position. All the user has to do is airtap on a cube and it plays the Audio Clip.

    AR Developer

Sign In or Register to comment.