Skip to content

OddCommon/AudioHelper

 
 

Repository files navigation

How to use AudioHelper in Unity

JAR file, demo apk are in /resource.
Note: Regarding JAR file creation and usage, please refer to the Guideline

Introduction

This demo provides a method for recording audio via mic. The file is saved in this path(/sdcard/Record/) and named according to the created time.

Class name

com.picovr.library.AudioHelper

Permission

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>    
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />

Interface

public void startRecordByMIC()
public void stopRecordByMIC()

Sample Code

AndroidJavaObject audioHelper = new AndroidJavaObject("com.picovr.library.AudioHelper");

audioHelper.Call("startRecordByMIC");
audioHelper.Call("stopRecordByMIC");

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%