Can we play an audio using speaker while there is an ongoing call ?

Can we access speaker for playing a recorded audio when there is an ongoing call in backgroud.