VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

Mix Audio?

Open ashokrkm opened this issue 10 years ago • 6 comments

Hi is it possible to play or mix audio from a file during a session?

ashokrkm avatar Apr 22 '15 00:04 ashokrkm

Also wondering the same thing. Would you need to create a new source which pulls audio from some file and then feeds it into the AudioMixer somehow?

jacobmoncur avatar May 01 '15 06:05 jacobmoncur

The audio mixer can take multiple sources of audio if you have a source other than the microphone to mix in it will work. For best results I would recommend keeping the mic and other sources at the same sampling rate to avoid sample rate conversion.

jgh- avatar May 08 '15 03:05 jgh-

You'll need to pass in PCM data by the way - so if your audio is compressed you'll have to decompress it via whatever codec and then pass the raw PCM into the mixer.

jgh- avatar May 08 '15 03:05 jgh-

@jgh- Thank you for your reply, can you please share a gist/sample that will show the right places /hooks to feed additional audio source into the audio mixer?

ashokrkm avatar May 10 '15 20:05 ashokrkm

Sorry for the slow reply - it would basically be exactly the same as adding the Mic source if you look at the VCSimpleSession code.

jgh- avatar May 26 '15 16:05 jgh-

@jgh- @KCastiglione I according to you said method adds a source, but mixer voice is all noise

zmw123 avatar Oct 17 '16 07:10 zmw123