Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

softwarespecial

Guest
Original poster
Jul 1, 2009
8
0
In my program I need to make it so the person can use the microphone to record a sound and then save it so it is there when the program is turned off and the be able to play it back. I just need to know the way to do this with the least amount of code needed. An example would be good if you know of any.
 
In my program I need to make it so the person can use the microphone to record a sound and then save it so it is there when the program is turned off and the be able to play it back. I just need to know the way to do this with the least amount of code needed. An example would be good if you know of any.

Look at the sample code for the 'speak here' example. It does exactly what you are looking for.
 
Did that there were 50 bugs still after hours of work..

Did that there were 50 bugs still after hours of work. Rememer the problem with there examples is they add a bunch of unnecessary things. THat takes more time to just sort out then is worth it. I just need to know the absolute Smallest amount of code to do it. Please can someone help?:confused:
 
The 50 errors was when I tried to impliment into my program...

The 50 errors was when I tried to impliment into my program and at first when I implimented it it was 90 errors. I got it down to 50. I just need the bare code possibal to record and play back and to save it so the even when the program is off the device will still have the sound. I just need the absolute least code possibal to do the task.
 
The 50 errors was when I tried to impliment into my program and at first when I implimented it it was 90 errors. I got it down to 50. I just need the bare code possibal to record and play back and to save it so the even when the program is off the device will still have the sound. I just need the absolute least code possibal to do the task.
Even if someone here were to give you the minimal code (which I kinda doubt is gonna happen), the real trick is that you'll still need to incorporate it into your own app. And based on the 90-errors-now-50 doesn't seem like it's going to have a very positive outcome.

EDIT: Ok, maybe I should try to contribute something more constructive to this. Whatever code you get for inclusion, you are really going to need to spend the time to make sure you understand what it does first. That way your chances of success versus a simple copy-and-paste approach should be much greater. Perhaps create a simple, barebones project and start building it up by incorporating parts of the code from the SpeakHere sample that you understand. Once you have this standalone test prototype working, you can begin to transfer what you've learned from that into your real project.
 
sorry if I don't want to cheat the customer of his money...

sorry if I don't want to cheat the customer of his money some one is paying me for this. I made a program that plays video sends email saves info globally and so it won't be erased as the program is turned off. I know what I am doing. Excuse me if I don't want to spend that much time on something. I don't over charge. I know for a fact it shouldn't take long someone before who was smart enough to simply give what was asked gave me the bare essentials to play a sound. it took me no more then 10 minutes to get it to work in my program. Please just give me the code. I am not about to charge this guy more then is needed I will not cheat him of his money sorry if you would but i won't so please listen give ok or is that to hard to understand
 
sorry if I don't want to cheat the customer of his money some one is paying me for this. I made a program that plays video sends email saves info globally and so it won't be erased as the program is turned off. I know what I am doing. Excuse me if I don't want to spend that much time on something. I don't over charge. I know for a fact it shouldn't take long someone before who was smart enough to simply give what was asked gave me the bare essentials to play a sound. it took me no more then 10 minutes to get it to work in my program. Please just give me the code. I am not about to charge this guy more then is needed I will not cheat him of his money sorry if you would but i won't so please listen give ok or is that to hard to understand

Please tell me this is a joke. You don't want to cheat your customer of their money? Then why did you take on a job that you clearly have no idea how to complete without stealing free help from other people? Or were you planning on sending whoever gives you the answer a piece of your commission?

Apple practically gives you the exact code to solve your problem, but you still can't figure out how to do it. Obviously your customer has already been cheated.
 
Wake up people.

I do know what I am doing. Yet I have not done recording so Instead of wasting his money and my time messing around with a bunch of stuff not needed I ask for help yes I am humble enough to ask for help. If you can't help a fellow developer then what the hell are you doing on this? Seconed and lets listen this time Speakhere Has More crap then is needed so it takes more time sorting out. God knows whos in the right and wrong so I am happy.:)
 
I do know what I am doing.
Then you don't really need our help, do you?

...so Instead of wasting his money and my time messing around with a bunch of stuff not needed...
Wow, so you are planning on charging your client for time spent to learn something that I expect they probably think you already know? Yikes!

If you can't help a fellow developer then what the hell are you doing on this?
You must have a different definition of "help" than we do.

Anyways, as others have said, it sounds like you are cheating your client and you are being particularly rude to the rest of us here. But hey, good luck with your project! :D
 
It's all in SpeakHere. Just find and remove the all parts that aren't related to audio. If you know what you're doing, you'll recognize those parts. What's left is no different that what any smaller code library that someone could send you would provide.

Then connect up the audio/file initialization, and the UI for session/start/stop/interruption/etc.

If you don't know what you doing, you don't have to bill your customer for the time it takes you to learn basic stuff.
 
Dejo said what you have to do
if you are having problems trying to implement the whole program at once, implement it in parts
have is so you can just play an audio sound (assuming they will want audio play back)
then create it so they can speak and record the sound to the phone (temporarily)
then find a way to store it all the time after that

this is a help forum, what that means is you come here say your problem, say what you have tried and say why what you have tried doesn't work and say the errors, general format is
"My Problem Description"
"Code Examples"
"Error's I'm Getting"

If you do that then people will help you and tell you the correct code, or apple documentation you should be looking at

(also by telling us you are doing it for money, gives even less incentive to help, because we don't get paid for helping you!)
 
can we get this stickied and change the topic to "What not to do"
so the very few that read it atleast don't post rubbish like this guy, and think of a structured post
Also the feedback everyone has said can be helpful in what to and what not to say in this forum posts
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.