Saving audio clip in HoloLens app

324 Views Asked by At

In my holographic app I am using TextToSpeechManager from HoloToolkit to generate an audio clip.

https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/master/Assets/HoloToolkit/Utilities/Scripts/TextToSpeechManager.cs

As you can see we have a reference to the audio clip variable in line number 302. I want to save this audio clip as a wav or mp3 file in assets folder. I tried SavWav but it does not work in this case for some reason. Is there any other way to do it?

Edit: It does not work by saving the file using persistentDataPath as well

Edit2: I have added a single line after line 302 in TextToSpeechManager.cs which can be found in the above link.

audioSource.clip = clip; SavWav.Save(Application.persistentDataPath +"/myfile", clip);

0

There are 0 best solutions below