Increase output sample rate

I am using google tts models to convert text to speech and return with asterisk in the phone. Currently I am converting audio has 24khz sample rate I get from google model to 8khz. Is it possible to return directly 24khz voice without converting it to 8khz?

You’re going to need to be more specific about what you are… using.

What do you need?

  • I am using gsm and ulaw codecs in pjsip.
  • Using udp transfer protocol.
  • Using a sip provider

“udp transfer protocol” do you mean external media in ARI?

yes