hackiftekhar / iqaudiorecordercontroller Goto Github PK
View Code? Open in Web Editor NEWA drop-in universal library allows to record audio within the app with a nice User Interface.
License: MIT License
A drop-in universal library allows to record audio within the app with a nice User Interface.
License: MIT License
Hello! This is a very good library, but when crop audio in demo, report this issue. Could you fix it?
I've searched through all the internet and didn't find a clear answer on my question
How do you record an m4a file and later convert it to mp3?
IQAudioRecorderController is a very useful controller. But I use cocoapods & would like to pull this in using cocoapods. Can you add support for cocoapods?
IQAudioRecorderViewController *controller = [[IQAudioRecorderViewController alloc] init];
controller.delegate = self;
controller.title = @"Recorder";
controller.bitRate=128000;
controller.sampleRate=8000;
controller.maximumRecordDuration = 60*10;
controller.numberOfChannels=2;
controller.allowCropping = YES;
when I set bitRate,the recorder not work.
Can use it to record background music when i recording?
Microphone icon is not displayed
My code:
func audioRecordAction() {
let audioRecorderController = IQAudioRecorderController()
audioRecorderController.delegate = self
audioRecorderController.title = "Audio Recorder"
audioRecorderController.barStyle = UIBarStyle.BlackOpaque
presentViewController(audioRecorderController, animated: true, completion: nil)
}
can I use your awesome library in swift?
Do this:
IQAudioRecorderViewController *controller = [[IQAudioRecorderViewController alloc] init]; controller.delegate = self; controller.allowCropping = YES; controller.barStyle = UIBarStyleBlackTranslucent; controller.normalTintColor = [UIColor whiteColor]; controller.highlightedTintColor = [UIColor colorWithRed:0.0523 green:0.6438 blue:1.0 alpha:1.0]; dispatch_async(dispatch_get_main_queue(), ^ { [self presentViewController:controller animated:YES completion:nil]; });
I'm using code from github, not from podsec.
Hi! Your pod status does not reflect the latest code on github. Please fix.
It's the best one on iOS platform. Hope port to Android in one day.
Haven't had a chance to investigate why yet
优化语音控制帮助界面的文字,需要修改的更合理些
I hope you can fit it sincerely ,thank you
When I use pod 'IQAudioRecorderController'
it installs 1.0.1 I had to use pod 'IQAudioRecorderController', git: 'https://github.com/hackiftekhar/IQAudioRecorderController'
Can you please try the latest version of library because I fixed something like this couple of weeks ago.
Im using the latest one can we decrease the wave height because i just need a height to be constant. its overlapping my texts
Originally posted by @seemanraj in #52 (comment)
Thanks for making this great library for recording audio!
I am using this library in my Swift 2.2-based app, and I was able to install and compile the code. When I tap to open the IQAudioRecorderController
, no matter how loud I speak to my MacBook Pro, the sound wave keeps flat and no recording seems to happen.
I was wondering if recording would work on iphone simulator at all. If so, any tricksy steps? Thanks
ps: I make sure the audio input is working from my System Preference settings.
when I finish the recorder , j try to crop, but I can't use it (it alway loading)
It would be nice if we could add some more functionalities, like:
I noticed that your cocoapod includes: SCSiriWaveformView
Can you please removed the SCSiriWaveformView.h and SCSiriWaveformView.m files
and incorporate SCSiriWaveformView pod as a dependency of your IQAudioRecorderController pod.
That way other I can use SCSiriWaveformView without the compiler not working and stating Duplicate Symbol errors.
Can it be possible to save audio with different audio pitches
Logs contain next message: Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7ed34f20>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.
Kindly provide same in swift version
There are a few strings like "Delete Recording", "Cancel" or "Microphone Access Denied!". Could you please expose those so that we can localize them?
I'm using IQAudioRecorderController on a swift project like this:
let controller = IQAudioRecorderViewController()
controller.delegate = self
controller.allowCropping = false
controller.barStyle = UIBarStyle.black
self.presentBlurredAudioRecorderViewControllerAnimated(controller)
But I have a problem while playing recorded audio, it looks like that:
Does somebody had this problem?
Thank you
when i record audio using IQAudioRecorderViewController the wave are outside the screen how can i decrease waveform height when audio is High.
I am not sure if anything else needs to be done, but the demo app cannot be compiled for me. It failed to find a few classes (FDWaveformView and AV classes).
Id like the ability for custom tints please, can i make a PR for this?
Hello @hackiftekhar
How are you?
Your library is simple and useful.
I think it will be better if you add to specify audio file format.
Current, it is only possible to record for m4a, but I need mp3.
I have seen your code, it can modify myself, but I want to use your library if possible.
Thank you.
it is hard to move the end or start line
I am using this library in my Swift 2.2-based app, and it works beautifully, however, I found the property maximumRecordDuration
is not available for an instance of IQAudioRecorderController to use.
I am wondering if it is possible to use maximumRecordDuration
for Swift-based app. Thanks!
After installing pod, following files are not generated.
IQAudioRecorderViewController.h
IQAudioRecorderViewController.m
Is there any issue? thanks
Getting repeatedly error : IQ_FDWaveformView could not load asset: The requested URL was not found on this server.
// Using a button to call function cropAction with the url of the media Item
@IBAction func crop(_ sender: Any) {
cropAction("file:///private/var/mobile/Containers/Data/Application/97E1CAB1-661A-477A-9CCE-C8CFED70E309/tmp/E04AA047-BCA2-4DC7-A53F-D6591D9A8DFB.m4a"!)
}
func cropAction(_ item: Any) {
// let controller = IQAudioCropperViewController(filePath: item as! String)
let controller = IQAudioCropperViewController.init(filePath: item as! String)
controller.delegate = self
controller.title = "Edit"
controller.barStyle = UIBarStyle.default
controller.normalTintColor = UIColor.magenta
controller.highlightedTintColor = UIColor.orange;
presentBlurredAudioCropperViewControllerAnimated(controller)
}
func audioCropperController(_ controller: IQAudioCropperViewController, didFinishWithAudioAtPath filePath: String) {
//Do your custom work with file at filePath.
controller.dismiss(animated: true) { _ in }
}
func audioCropperControllerDidCancel(_ controller: IQAudioCropperViewController) {
//Notifying that user has clicked cancel.
controller.dismiss(animated: true) { _ in }
}
How to use this control in swift?
I have added IQAudioRecorderController (1.2.0) as a pod dependency in my project, but XCode gives me a warning:
.../Pods/IQAudioRecorderController/IQAudioRecorderController/IQAudioRecorderConstraints.h:27:2: Missing submodule 'AVFoundation.AVAudioSettings'
The line is:
#import <AVFoundation/AVAudioSettings.h>
If I change that to:
#import <AVFoundation/AVFoundation.h>
..then everything works.
Is there any issues in making that change?
Hi,
when I recorded the first audio I get a link, then when I want to record again then audio controller view is transparent.
it would be greate if we can specify the maximum recording time allowed in seconds when the controller stops recording by itself, it will make it perfect i guess with many uses
I need to stop audio-record after 70 second from the starting time.
With mediarecorder I used setMaxduration and this work well,
How can I a good a good approach with AudioRecord too.
Many Thanks for your help.
Hi!
First I would like to say that your library is fantastic, congratulations.
Second I´m having an issue that I can´t create a NSData from the filepath because NSData is always getting nil. Could you help me out?
Below is my code
-(void)audioRecorderController:(IQAudioRecorderController *)controller didFinishWithAudioAtPath:(NSString *)filePath
{
//_audioFilePath = filePath;
NSURL *url = [NSURL URLWithString:filePath];
NSData *audioData = [NSData dataWithContentsOfURL:url]; //NSData is always getting nil
}
First of all, thanks for your amazing work !
I would like to be able to increase the volume of recording. Is there a way to do it directly inside the application ?
Which file is handling the recording volume of the microphone (if there is one) ?
I would appreciate any tips !
Thanks for your answer.
Hi there!
First congrats for the project, really nice!
It is possible to configure this project to upload the audio files to Parse.com ?
Could you implement it or give any direction/tip ?
Thnx and cheerz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.