I'm developing an app like Talking Tom
I tried to record audio, save to file then play with Mediaplayer
in android but there is a bit delay to save the file then play. It is not smooth like Talking Tom
I saw that both MediaRecorder
& MediaPlayer
accept argument FileDescriptor
in setOutputFile
& setDataSource
.
Is there any way to record then play without save to file ?
Do SoundPool
& Mediaplayer
can sound with byte array like byte [] buffer
?
Please help!