TTS With HIKVISION Camera Speaker, Terrible Sound with pcmu/8000

Hello Guys,
i hope someone can help me, because i am to stupid to solve my problem. I have a HIKVISON CAMERA DS-2CD2387G2-LSU/SL.
I reached to connect the Speaker and i can send TTS to it. Thats already fine. But the sound is totally bad.
The mp3 files from HomeAssistant are 32bit with 24000hz. But so far I have only managed to control the pcmu with 8000hz…

But the camera has several more codecs like MP2L2, G.726, AAC, PCM and MP3. But i dont know how to integrate this codecs… everytime i got a error. Do you have any idea?

This i have in go2rtc
streams:
hikvision_tuere:

  • rtsp://User:Password@Youre-IP:554/ISAPI/Streaming/Channels/101
  • isapi://User:Password@Youre-IP:80/
    and this in the configuration
    media_player:
  • platform: webrtc
    name: HIKVISION_Tuere
    stream: hikvision_tuere
    audio: pcmu/8000
    1000099015

Thanks for youre help