示例#1
0
 void SaveAsMP3()
 {
     // Save AudioClip at assets path with defined bitray as mp3
     //128 is recommend bitray for mp3 files
     EncodeMP3.SaveMp3(clip, $"{Application.dataPath}/mp3File", 128);
     Debug.Log($"Save file to {$"{Application.dataPath}/*"}");;
 }
 private void Mp3Encoding()
 {
     EncodeMP3.convert(justFeedbackSamples, filePath, 128);
     Debug.Log("Find mp3 file under: " + filePath);
 }
 // Use this for initialization
 void Start()
 {
     EncodeMP3.convert(clip, Application.dataPath + "/convertedMp3.mp3", 128);
 }