---
title: "Comment by Ashish maurya on \"How to Build an Audio Chatbot with Nextjs, OpenAI, and ElevenLabs\" | Hashnode"
description: "Amazing man, I really wanted to ask you how you handled the latency of this? How long a user had to wait to get the response?"
url: "https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660038f123227d37931c1eaf"
---

[Discussion](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655)

Comment [How to Build an Audio Chatbot with Nextjs, OpenAI, and ElevenLabs](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655)

[Ashish maurya](https://hashnode.com/@theashishmaurya)

[Mar 24, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660038f123227d37931c1eaf)

Amazing man, I really wanted to ask you how you handled the latency of this? How long a user had to wait to get the response?

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Mar 27, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660038f123227d37931c1eaf#reply-6603f1bf098e052e81341701)

Thanks for your comment, Ashish!

As I mentioned in the "Notes and Recommendations" section, I used the ElevenLabs `eleven_turbo_v2` model since it’s more suitable for tasks demanding low latency, intentionally set the `max_tokens` OpenAI parameter to `100`, and used a custom prompt to reduce the number of characters returned to `100`. This worked perfectly for my use case.
