Skip to content

最终目的是实现 录音实时转码MP3 ,本地音频播放和在线音频队列播放。

License

Notifications You must be signed in to change notification settings

PlutusCat/PLCAudioRecorderDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

VersionEye

PLCAudioRecorderDemo

最终目的是一个小而美得应用 🤥
最终目的是实现 录音实时转码MP3 ,本地音频播放和在线音频队列播放。

Requirements

  • iOS8.0+ / Objective-C
  • ARC / arm64

Usage

#import "PLCAudioRecorderHelper.h" //AVAudioRecorder
#import "PLCPlayAudioHelper.h"     //AVAudioPlayer + FSAudioStream

AVAudioRecorder setting

/* keys for all formats */
/*
 * value is an integer (format ID) from CoreAudioTypes.h 
 * kAudioFormatLinearPCM make .caf
 */
[MutableDict setObject:@(kAudioFormatLinearPCM) forKey:AVFormatIDKey]; 
/* value is floating point in Hertz */
[MutableDict setObject:@(11025.0) forKey:AVSampleRateKey];
/* value is an integer */
[MutableDict setObject:@(2) forKey:AVNumberOfChannelsKey];
/* value is an integer, one of: 8, 16, 24, 32 */
[MutableDict setObject:@(16) forKey:AVLinearPCMBitDepthKey];
/* value is an integer from enum AVAudioQuality */
[MutableDict setObject:[NSNumber numberWithInt:AVAudioQualityHigh] forKey:AVEncoderAudioQualityKey];

History

Version 1.0.0

  • UI
  • PLCAudioRecorderClickType
  • .CAF change to .MP3
  • Real-time conversion

Libraries

About

最终目的是实现 录音实时转码MP3 ,本地音频播放和在线音频队列播放。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published