Change Audio Codec

I have set the Monitor(sln44,recording,o) in my dialplan. Can you guide me how to change the channel driver settings (chan_pjsip) to the right codec?