摘要:
转自:http://www.jb51.net/article/64806.htm public class AudioRecordDemo { private static final String TAG = "AudioRecord"; static final int SAMPLE_RATE_ 阅读全文
摘要:
public class CacheUtil { /** * 获取文件缓存数据的大小 */ public static String getFileCacheSize(String imagePath,String soundPath) { float cacheSize = 0; String c 阅读全文
摘要:
/** * bitmap转化base64 */public static String bitmapToBase64(Bitmap bitmap) { String result = null; ByteArrayOutputStream baos = null; try { if (bitmap 阅读全文
摘要:
/** * 检测程序运行时,当前网络是否连接 * * @return */public static boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectiv 阅读全文
摘要:
public class RecorderMnifestUtil { // 音频获取源 public static int audioSource = MediaRecorder.AudioSource.MIC; // 设置音频采样率,44100是目前的标准,但是某些设备仍然支持22050,1600 阅读全文