Twilio call Acting Wierd Maybe latency

Im using Google speech to text or deepgram to test this , both give me the same result.
When I perform a twilio call im getting a really wierd behaviour some times.
Like the audio is being repeated multiple times for no reason , IDK if its the way im handling the websocket or seding the auido.

When I get the response from deepgram or google speech it comes like this:

It may seem that I said all of that really fast and at the same time but that is not the case, when I speak I give it about 5 second stop between each sentence and they are being returned as if I spoke all at the same time.
This happens only in 40% of the calls , the others work as intended.

non final: hello what's your name
non final: hello what's your name can
non final: hello what's your name can you
non final: hello what's your name can you hear
non final: hello what's your name can you hear me
non final: hello what's your name can you hear me hello
non final: hello what's your name can you hear me hello
non final: hello what's your name can you hear me hello
non final: hello what's your name can you hear me hello
non final: hello what's your name can you hear me hello are
non final: hello what's your name can you hear me hello are you
non final: hello what's your name can you hear me hello are you there
non final: hello what's your name can you hear me hello are you there
non final: hello what's your name can you hear me hello are you there hello
non final: hello what's your name can you hear me hello are you there hello
non final: hello what's your name can you hear me hello are you there hello bro
non final: hello what's your name can you hear me hello are you there hello bro
non final: hello what's your name can you hear me hello are you there hello bro
non final: hello what's your name can you hear me hello are you there hello bro
non final: hello what's your name can you hear me hello are you there hello bro what
non final: hello what's your name can you hear me hello are you there hello bro what
non final: hello what's your name can you hear me hello are you there hello bro what the
non final: hello what's your name can you hear me hello are you there hello bro what the
non final: hello what's your name can you hear me hello are you there hello bro what the hell
non final: hello what's your name can you hear me hello are you there hello bro what the hell
non final: hello what's your name can you hear me hello are you there hello bro what the hell is
non final: hello what's your name can you hear me hello are you there hello bro what the hell is 

Above IS the code that receives de call from twilio:

#init connection with web socket
@application.post('/call')#Make Phone Call OUTGOING
async def handle_incoming_calls(request: Request, From: Annotated[str, Form()],To: Annotated[str, Form()]):
    response = VoiceResponse()
    connect = Connect()

    URL = f"wss://{PUBLIC_URL}/stream"
    connect.stream(url=URL)
    response.append(connect)
    return Response(content=str(response), media_type='text/xml')

That Function Will send the stream to stream endpoint which will hadle the websockets:

@application.websocket('/stream')
async def websocket_endpoint(websocket: WebSocket):

    await websocket.accept()

    while True:
        await wait_for_user_input(websocket)

wait for user input function:

config = RecognitionConfig(
    encoding=RecognitionConfig.AudioEncoding.MULAW,
    sample_rate_hertz=8000,
    language_code="en",
    model="telephony",
    enable_automatic_punctuation=False
)
streaming_config = StreamingRecognitionConfig(config=config, interim_results=True)


async def wait_for_user_input(ws):

    transcript = ""
    transcript_ready = False 
    def on_transcription_response(response):
        nonlocal transcript
        nonlocal transcript_ready

        if not response.results:
            return

        result = response.results[0]
        
        if not result.alternatives:
            return
        
        transcription = result.alternatives[0].transcript
        
        if result.is_final is True:
            print("nTRANSCRIPT FINAL",transcription)
        else:
            print("non final:",transcription)

    print("WS connection opened")
    bridge = SpeechClientBridge(streaming_config, on_transcription_response)
    t = threading.Thread(target=bridge.start)
    t.start()

    while True:
        message = await ws.receive_text()
        if message is None:
            bridge.add_request(None)
            bridge.terminate()
            break

        data = json.loads(message)
        if data['event'] == 'media':
            media = data['media']
            if media['track'] == 'inbound':
                media = data["media"]
                chunk = base64.b64decode(media["payload"])
                bridge.add_request(chunk)
            
        if data["event"] == "stop":
            print(f"Media WS: Received event 'stop': {message}")
            print("Stopping...")
            break

        if transcript_ready:
            print("Transcript:  ",transcript)
            transcript_ready = False

    bridge.terminate()
    print("WS connection closed")

The same happens with deepgram.

I tryied to use different STT solutions and I face the same issue with all of them ,
Then I thought it was twilio but they checked all my calls and determined there where no issues with the call itself.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật