A question about the iPhone and Unity: Is it possible to record audio from the iPhone mic during game play? I would like to be able to record, process and replay short audio snippets from the user. Thank you!
if you do it through XCode, then potentially
Through unity and its scripting, no
I made a test app that did a simple recording. Like dreamora said, you have to do that work in the cocoa layer. I basically crammed an audio recording sample onto the Enhancement Pack. Lemme look around in some backups and see if I kept it.
Well, I’m creating a game for Iphone that generate some could sound.Is there a way to record the sound of the game and save it in the itunes library?
bliprob
Could you explain how you were able to do it with cocoa layer. If you could post a unity example it will be even better.
Thanks!
Well, I’m creating a game for Iphone that generate some could sound.Is there a way to record the sound of the game and save it in the itunes library?
bliprob
Could you explain how you were able to do it with cocoa layer. If you could post a unity example it will be even better.
Thanks!
Hey. Resuscitating this thread, as I’m trying to find bliprob and whether he ever posted the enhancement pack audio recording stuff…does anyone know? bliprob?
do you own the enhancement pack?
I’m here. I wasn’t able to find the bastard Enhancement Pack that did audio recording (and playback of streaming audio). I lost it in the Great Hard Drive Crash of '09.
However, I recently recreated the streaming audio playback portion. I don’t think the recording part was very difficult, just tedious. I followed the example in the “SpeakHere” sample code, using its AQRecorder class. You could integrate that into the Enhancement Pack without too much trouble
Looking further it’s like just 4 lines of code to record audio with AVAudioRecorder in OS 3.0.
Hi bliprob!
I just get an inquiry about sound recording in this project/game…
And I own the enhancement pack… (1.5)
So, have you or have any plan to integrate this into the enhancement pack?
It would be really nice! If so, I can take this project…
/errormaker
bliprob!
I just find “Audio Recording” in the enhancement pack!
Must test it at once!
Downloaded “SpeakHere” and looked at AQRecorder…
Not so easy… for me…
/rerrormaker
I looked at AVAudioRecorder, but as I’ve read from previous threads, you have to do some trickery to avoid messing up unity’s own audiosession, and switching, etc., in order to get audio in from the device in the first place, which is too hard for my level of coding.
So I looked at the enhancement pack as a possible solution. Essentially, I need to pass a stream of audio to a custom c++ plugin. My team and I have used libsndfile and portaudio to do that before, but it’s been painful. I just wondered whether the enhancement pack would let me get the audio stream incoming, easily.
Would it?
I have looked at the stinkbot website and seen:
Audio Recording
string SB_startMicRecording(string filename);
void SB_stopMicRecording();
float SB_getMicPeakLevel();
float SB_getMicAvgLevel();
float SB_getMicPeakLowPassFiltered();
But that didn’t look like it would allow audio stream capture and passing into a buffer…