I am using MediaRecorder to record an audio and I want to add a sound when a button is clicked (without stopping the record) . I currently play that sound when the user click on the button and it's annoying, do you have any suggestions please, thank you.
Asked
Active
Viewed 188 times
2
-
You mean you want to add sounds to recorder directly without actually playing the sound outside? – KYHSGeekCode Apr 01 '18 at 15:38
-
yes exactly, is that possible please? – C. Salah Apr 01 '18 at 15:41
-
Seems hard, but why don't you synthesize the sound effect after recording is end, to , like a temp file before playing the final output to the user? – KYHSGeekCode Apr 02 '18 at 10:56
-
thank you for your reply, but can you be more specific? – C. Salah Apr 02 '18 at 14:08
-
1. Record audio normally and save it to 3gp file. 2. Convert 3gp to audio format like wav using libraries like ffmpeg. 3. Mix/merge your audio to the file. 4. Play the file. Those steps are complicated but by now I don't know better way. Hope it helped. – KYHSGeekCode Apr 02 '18 at 16:01
-
Helpful Link for 1,2: https://stackoverflow.com/a/5245723/8614565 3: https://stackoverflow.com/q/32856836/8614565 – KYHSGeekCode Apr 02 '18 at 16:06
-
I'll publish those to answer if it helped. – KYHSGeekCode Apr 02 '18 at 16:06
-
I will try and post if it works – C. Salah Apr 04 '18 at 00:35