genedelisa / avfoundationrecorder Goto Github PK
View Code? Open in Web Editor NEWSwift audio recorder using AVFoundation
License: MIT License
Swift audio recorder using AVFoundation
License: MIT License
hello,
the app records and stop but when the window comes up to Keep or Delete and you push delete, it crashes.
fatal error: unexpectedly found nil while unwrapping an Optional value
thanks
xcode 6.2.b4
iOS 8.1 and 8.2
please any body can help to convert any type of audio to opus codec, I just tried ( https://opus-codec.org) but this website doesn't have an example of how can I use the functionality of opus on my project, so please any body can help me ?
my E-mail : [email protected]
Thank you.
I make a karaoke app. If headphone doesn't plugin app works fine.(my voice and background music record together). it is successful. but I'm the same way with headphone Then I listen to the recording. I can not hear the background music.(its too much low).
your exxample is very good. i added a function for play MP3. I want to record with music and mixed. but i dont hear music after audio record. it is too low. without headphone everything is good. :(
func PlayMusicAndRecord()
{
do {
let url = "http://files.parsetfss.com/461a4eda-d153-4d46-bd85-28ddd355a94c/tfss-03d4eb57-51cb-424d-8c90-2d8a89429203-00255--How_To_Build_A_Loving_Family.mp3"
let soundData = NSData(contentsOfURL: NSURL(string: url)!)
self.player = try AVAudioPlayer(data: soundData!)
player!.volume = 1.0
player!.prepareToPlay()
player!.play()
}
catch let error as NSError {
self.player = nil
print(error.localizedDescription)
}
}
@genedelisa thanks for giving beautiful avfoundation recorder. In app i need to record audio in .mp3 or .wav format. how to recored it format ??
perhaps, I was getting crashed app when i was tried change extension .mp3 or .wav instead of .m4a. it recorded .m4a format only.
please help me how to recored .mp3 or .wav or how to convert .m4a to mp3 or wav format and file size ??
Thanking you
Problems experience when trying to convert this myself to the new syntax etc.
I notice that there is an issue that when I first use the app the playback is at a nice level, but then as I continue to use it the audio goes very quiet.
It seems that if you record two audio files in a short space of time the second recording overrides the first, this might be because the same name is being used and the app hasn't checked if there is already a file with that name.
When I try to rename a sound, unless I give it a name in the format "abcde.m4a" it vanishes from the view and I can't play or retrieve it.
It is not intuitive to a user initially that a double tap is to rename and press to delete as this is not the current iOS typical functionality, which incidentally is swipe left and swipe right to delete or rename.
Hi,
I've been using your project and I've found out that if you try to save a file after pausing the record action, the application issues an error. I did not have the time to change it because my project is for a quick 3-week-course.
Thanks for sharing the project, it helped me a lot!
When we record and stop, code works fine. But when we pause and then continue and stop, then on clicking "keep" the app is crashing. I am getting error "unexpectedly found nil while unwrapping an Optional value". Any workaround for this? I want to use continue and pause so have to get it working somehow.
not working
How to record and save in mp3 format
I have changed kAudioFormatAppleLossless to AVFormatIDKey: kAudioFileMP3Type I got Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value error kindly help
Hello!
Could you please advise me - is it possible to add call recording to this app (i mean if i fork it with minimal clang knowledges) ?
I guess you as a owner of audio recorder should be able to estimate resources and human-hours required for this task execution, is it even possible?
Would be very helpful, if you can find few minutes to answer.
Best regards,
It looks like I can't open a paused audio and play it. I want to record a piece of audio, pause audio recorder, play and listen it. But when I click on play button, It says "Open failed. The operation could not be completed".
Below is the line that throws this error:
self.player = try AVAudioPlayer(contentsOf: url!)
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.