[翻译] IQAudioRecorderController

简介:

IQAudioRecorderController

 

 

IQAudioRecorderController is a drop-in universal library allows to record audio within the app with a nice User Interface. The Audio Recorder produced the .m4a file and returns the path via it's delegate methods.

IQAudioRecorderController是一个单例类,可以录制音频,且界面效果不错.这个音频播放器能生成.m4a文件,通过代理方法来返回文件路径.

 

Screenshot

 

How to use

#import "IQAudioRecorderController.h"

@interface ViewController ()<IQAudioRecorderControllerDelegate>
@end

@implementation ViewController

- (void)recordAction:(id)sender
{
    IQAudioRecorderController *controller = [[IQAudioRecorderController alloc] init];
    controller.delegate = self;
    [self presentViewController:controller animated:YES completion:nil];
}

-(void)audioRecorderController:(IQAudioRecorderController *)controller didFinishWithAudioAtPath:(NSString *)filePath
{
  //Do your custom work with file at filePath.
}

-(void)audioRecorderControllerDidCancel:(IQAudioRecorderController *)controller
{
  //Notifying that user has clicked cancel.
}

@end

 

Attributions

Thanks to Stefan Ceriu for his brilliant SCSiriWaveformView library.

感谢 Stefan Ceriu 提供的非常好用的SCSiriWaveformView类.

 

LICENSE

Distributed under the MIT License.

遵循MIT协议.

 

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

欢迎你提供改进!你可以通过拉分支来贡献源码.

 

Author

If you wish to contact me, email at: hack.iftekhar@gmail.com

如果要联系我,请给邮箱 hack.iftekhar@gmail.com 发送邮件.

目录
相关文章
|
存储 自然语言处理 前端开发
从零写一个Recoil(翻译)
Rewriting Recoil from scratchrecoil是facebook编写的一个库,它之所以诞生是因为人体工程学、context的性能问题和useState。这是一个非常聪明的库,几乎每个人都会找到它的用途——如果你想了解更多,请查看这段解释视频。刚开始我被图论和recoil惊到了,但渐渐的理解后,感觉也没那么特别了。也许我也可以实现一个类似的东西。我自己实现的版本和recoil
198 0
从零写一个Recoil(翻译)
|
缓存 API iOS开发
|
开发者 iOS开发
|
Java iOS开发 Spring