Photon Voice - Combine Recorder and Audio Source (Karaoke App) - unity3d

I'm developing a karaoke application but I'm having difficulty getting the audio from the mic and the audio from the music to sync on clients.
My solution right now is using Photon Voice to end the mic (as normal) and the music is being transferred the same way but uses a Factory and IAudioPusher - Unfortunately the audio isn't in sync, I guess I was optimistic in thinking it would be!
I'm looking for advice on how I can achieve this, maybe if there's a way to combine AudioSource's in real time? If not, if anyone has any other suggestions then they'd be much appreciated.
Thanks.

Related

Web Audio API microphone EQ

Does anyone know if it is possible to add EQ / effects filtering to the live microphone input within a html5 enabled web page?
To be clear I'm not talking about adjusting the sound of a pre-recorded wav/mp3 playing in the HTMl5 player, there are plenty of those, I am talking about adjusting the microphone characteristics in live time while the stream is being captured from the chosen mic source.
Has anyone managed to do this?
Thank you.

Where should I start in making industry standard audio in my iPhone applications?

I am trying to get started in advanced audio with the iPhone SDK. I really want to make professional level audio components. I know the basics (e.g. how to use NSAVAudioPlayers), but I don't know what to do for the more complicated sort of audio (e.g. osculation and audio cones). Does anyone know where to go for this? (I tried research online, and all that came up weer the sort of simplistic audio components).
Core Audio. That's where you'll find an OpenAL implementation. You might also want to look at the Audio Processing Graph API (also part of core audio).

iPhone recording audio

I'm currently working on a project where it is necessary to record sound being played by the iPhone. By this, I mean recording sound being played in the background like a sound clip or whatever, NOT using the built-in microphone.
Can this be done? I am currently experimenting with the AVAudioRecorder but this only captures sound with the built-in microphone.
Any help would be appreciated!
This is possible only when using only the Audio Unit RemoteIO API or only the Audio Queue API with uncompressed raw audio, and with no background audio mixed in. Then you have full access to the audio samples, and can queue them up to be saved in a file.
It is not possible to record sound output of the device itself using any of the other public audio APIs.
Just to elaborate on hotpaw2's answer, if you are responsible for generating the sound then you can retrieve it. But if you are not, you cannot. You only have any control over sounds in your process. yes, you can choose to stifle sounds coming from different processes. but you can't actually get the data for these sounds or process them in any way.

Record and play using Audio Queues in iPhone

Can someone explain how we can use Audio Queue services to record sound from Microphone and play it live? Explain how we can achieve it. If possible give code snippets.
Use RemoteIO Audio Unit. This awesome code will get you on the right path.

Is it possible to both play a sound and record from the microphone at the same time on the iPhone?

I want to both play sound and record sound at the same time on the iPhone.
All the apps which record sound first disable any music playing. However as music would disrupt their purpose I don't know if they're doing this deliberately or whether the iPhone does it automatically when you record from the microphone.
Does anyone have experience with this?
Refer to this page. Good luck!
I've heard something about this on one episode of the mobile orchard podcast - the one with Michael Tyson, the creator of Loopy. During the discussion, Michael explained that he had to include some code to filter out the sounds that were coming in through the microphone in realtime as other sounds were being played on the speaker.
Based on that discussion, it seems entirely possible to both play and record at the same time, but I'm sure you'll have to do your own filtering to avoid recording the sounds your playing.
You can use either a core audio unit or an audio queue, and
you need to make sure that your audio session category is set to kAudioSessionCategory_PlayAndRecord.
Beware that sound output when you use this session is much quieter
than the normal solo session (observed on 3.0).