Voice Agents
A voice agent is an AI agent that listens and talks, on a phone line or in an app. It is a specialist skill. Learn it when your team has real call volume, for example a support line that gets many calls a day, and wants an agent to take some of them.
7 min read7 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 10 sources10টি সোর্স · updated Nov 2026আপডেট: Nov 2026
One voice turn, timedএকটা ভয়েস পালা, সময় মেপে
Time a single call turn and tune the silence setting between cutting the caller off and answering too late.একটা কলের পালার সময় মাপুন, আর নীরবতার সেটিং এমনভাবে ঠিক করুন যাতে কলারকে না কাটে, আবার উত্তরও দেরিতে না আসে।
You’ll learnআপনি শিখবেন
- What silence_duration_ms doessilence_duration_ms কী করে
- What makes up the delay to first audioপ্রথম অডিও পর্যন্ত দেরি কী দিয়ে গড়া
- What happens on a barge-inbarge-in হলে কী ঘটে
- Why no setting avoids both cut-offs and delayকোনো সেটিংই কেন কাটা আর দেরি দুটোই এড়াতে পারে না
In plain words
A chat agent reads text and writes text. A voice agent hears speech, decides what to do, and answers with speech, in real time. It can also call tools, for example to look up an order. For the agent loop itself, see AI Agents.
Speed and turn taking matter more than in chat. A vendor guide names the hard parts: the caller can cut in (barge-in), the first audio must come fast, the turns must feel natural, and tools must run during the call Source 1সোর্স 1.
The trigger for this skill: real call volume. A voice agent is a lot of work to build and to test. It pays off when many calls follow the same few paths, such as order status, bookings, or password resets.
For a tester, a voice agent is a product with more ways to fail than a chat bot: slow answers, an agent that talks over the caller, a wrong transcript, a wrong tool call, or a caller that the agent cannot understand.
সহজ English
A chat agent reads text and writes text. A voice agent hears speech, decides what to do, and answers with speech, all in real time. It can also use tools, for example to look up an order. For how agents work in general, see AI Agents.
Speed and taking turns matter more than in chat. A vendor guide names the hard parts. The caller can cut in (this is called barge-in). The first sound must come fast. The turns must feel natural. Tools must run during the call Source 1সোর্স 1.
When to learn this skill: your team has real call volume. A voice agent is a lot of work to build and to test. It pays off when many calls follow the same few paths, such as order status, bookings, or password resets.
For a tester, a voice agent can fail in more ways than a chat bot. It can answer slowly. It can talk over the caller. The transcript can be wrong. It can call the wrong tool. Or it cannot understand the caller.
বাংলা ব্যাখ্যা
একটা চ্যাট এজেন্ট টেক্সট পড়ে আর টেক্সট লেখে। একটা voice agent কথা শোনে, কী করবে ঠিক করে, আর কথা দিয়ে উত্তর দেয়, সবই রিয়েল টাইমে। এটা টুলও ব্যবহার করতে পারে, যেমন একটা অর্ডার খুঁজে দেখা। এজেন্ট সাধারণভাবে কীভাবে কাজ করে, তা জানতে AI Agents দেখুন।
চ্যাটের চেয়ে এখানে গতি আর পালা করে কথা বলা বেশি জরুরি। একটা ভেন্ডর গাইড কঠিন অংশগুলোর নাম দেয়। কলার মাঝখানে কথা বলে ঢুকে পড়তে পারে (একে বলে barge-in)। প্রথম আওয়াজ দ্রুত আসতে হবে। পালাগুলো স্বাভাবিক লাগতে হবে। কলের মধ্যেই টুল চলতে হবে Source 1সোর্স 1।
কখন এই স্কিল শিখবেন: আপনার টিমে আসলেই অনেক কল আসে। একটা voice agent বানানো আর টেস্ট করা অনেক কাজের। এটা তখনই লাভজনক, যখন অনেক কল একই কয়েকটা পথে চলে, যেমন অর্ডারের অবস্থা, বুকিং, বা পাসওয়ার্ড রিসেট।
টেস্টারের কাছে voice agent একটা চ্যাট বটের চেয়ে বেশি উপায়ে ফেল করতে পারে। এটা দেরিতে উত্তর দিতে পারে। কলারের কথার ওপর কথা বলতে পারে। ট্রান্সক্রিপ্ট ভুল হতে পারে। ভুল টুল কল করতে পারে। অথবা কলারের কথা বুঝতে না-ও পারে।
How it works
A voice agent is a pipeline. Some products chain three models: speech-to-text, a language model, and text-to-speech. Frameworks such as Pipecat build agents from separate speech-recognition, language-model, and text-to-speech services Source 7সোর্স 7. Others use one speech-to-speech model, such as the OpenAI Realtime API Source 1সোর্স 1.
caller --audio--> phone or app --> transport --> agent
| 1. detect end of turn (VAD)
| 2. understand + call tools
| 3. speak the answer
caller <--audio-- phone or app <-- transport <-----+- Transport. In an app, the Realtime API connects over WebRTC in the browser or over WebSocket on a server Source 1সোর্স 1. On a phone line, Twilio Media Streams send the raw audio of a call to your WebSocket server Source 5সোর্স 5. A bidirectional stream can also send audio back Source 5সোর্স 5. Phone audio is
audio/x-mulawat 8000 Hz, base64 encoded Source 6সোর্স 6, which is lower quality than app audio. - Turn detection. Voice activity detection (VAD) finds when the caller starts and stops speaking Source 2সোর্স 2.
server_vadsplits the audio at silences, andsemantic_vaduses a classifier on the words to guess that the caller has finished Source 2সোর্স 2. A higherthresholdneeds louder speech and can help in noise; a shortersilence_duration_msends the turn sooner Source 2সোর্স 2. - Interruptions. If the caller speaks while the agent talks, the Realtime server cancels the answer and sends a
response.doneevent withresponse.statusset tocancelledSource 3সোর্স 3. Over WebRTC the server cuts the audio that was not played; over WebSocket your code must stop playback and sendconversation.item.truncateSource 3সোর্স 3. On a Twilio stream, aclearmessage empties the audio buffer Source 6সোর্স 6. - Transcripts. The model cannot align the transcript exactly with the audio.
conversation.item.truncatecuts the audio and removes the text for the unplayed part, but it does not give a truncated transcript Source 3সোর্স 3. So the transcript may not match what the caller actually heard.
সহজ English
A voice agent is a chain of steps. Some products chain three models: speech to text, a language model, and text to speech. Frameworks such as Pipecat build agents from separate speech-recognition, language-model, and text-to-speech services Source 7সোর্স 7. Others use one model that goes from speech to speech, such as the OpenAI Realtime API Source 1সোর্স 1.
The flow is this. The caller speaks into a phone or an app. The audio goes over a transport to the agent. The agent finds the end of the turn, understands the request, calls tools, and speaks the answer. The answer goes back the same way.
- Transport. In an app, the Realtime API connects over WebRTC in the browser, or over WebSocket on a server Source 1সোর্স 1. On a phone line, Twilio Media Streams send the raw audio of a call to your WebSocket server Source 5সোর্স 5. A two-way stream can also send audio back Source 5সোর্স 5. Phone audio is
audio/x-mulawat 8000 Hz, base64 encoded Source 6সোর্স 6. Its quality is lower than app audio. - Turn detection. Voice activity detection (VAD) finds when the caller starts and stops speaking Source 2সোর্স 2.
server_vadsplits the audio at silences.semantic_vadlooks at the words to guess that the caller has finished Source 2সোর্স 2. A higherthresholdneeds louder speech and can help in noise. A shortersilence_duration_msends the turn sooner Source 2সোর্স 2. - Interruptions. The caller may speak while the agent talks. Then the Realtime server stops the answer and sends a
response.doneevent whose status iscancelledSource 3সোর্স 3. Over WebRTC, the server cuts the audio that was not played. Over WebSocket, your code must stop the sound and sendconversation.item.truncateSource 3সোর্স 3. On a Twilio stream, aclearmessage empties the audio buffer Source 6সোর্স 6. - Transcripts. The model cannot align the transcript exactly with the audio.
conversation.item.truncatecuts the audio and removes the text for the unplayed part, but it does not give a truncated transcript Source 3সোর্স 3. So the transcript may not match what the caller actually heard.
বাংলা ব্যাখ্যা
একটা voice agent হলো ধাপের একটা শিকল। কিছু প্রোডাক্ট তিনটা মডেল জোড়া দেয়: speech-to-text, একটা ভাষা মডেল, আর text-to-speech। Pipecat-এর মতো ফ্রেমওয়ার্ক আলাদা speech-recognition, language-model আর text-to-speech সার্ভিস দিয়ে এজেন্ট বানায় Source 7সোর্স 7। অন্যরা একটাই speech-to-speech মডেল ব্যবহার করে, যেমন OpenAI Realtime API Source 1সোর্স 1।
ধাপগুলো এমন। কলার ফোনে বা অ্যাপে কথা বলে। অডিও একটা transport দিয়ে এজেন্টের কাছে যায়। এজেন্ট পালা শেষ হওয়া ধরে, অনুরোধটা বোঝে, টুল কল করে, আর উত্তরটা বলে। উত্তর একই পথে ফিরে আসে।
- Transport। অ্যাপে Realtime API ব্রাউজারে WebRTC দিয়ে, বা সার্ভারে WebSocket দিয়ে যুক্ত হয় Source 1সোর্স 1। ফোন লাইনে Twilio Media Streams একটা কলের কাঁচা অডিও আপনার WebSocket সার্ভারে পাঠায় Source 5সোর্স 5। দুই-মুখী stream অডিও ফেরতও পাঠাতে পারে Source 5সোর্স 5। ফোনের অডিও হলো
audio/x-mulaw, 8000 Hz, base64 এনকোড করা Source 6সোর্স 6। এর মান অ্যাপের অডিওর চেয়ে কম। - পালা শনাক্ত করা। Voice activity detection (VAD) ধরে কলার কখন কথা শুরু করে আর কখন থামে Source 2সোর্স 2।
server_vadনীরবতার জায়গায় অডিও ভাগ করে।semantic_vadশব্দগুলো দেখে আন্দাজ করে কলারের কথা শেষ হয়েছে কিনা Source 2সোর্স 2। বেশিthresholdহলে জোরে কথা বলতে হয়, এটা গোলমালে সাহায্য করতে পারে। ছোটsilence_duration_msপালা তাড়াতাড়ি শেষ করে Source 2সোর্স 2। - মাঝখানে বাধা। এজেন্ট কথা বলার সময় কলার কথা বলে উঠতে পারে। তখন Realtime সার্ভার উত্তরটা থামায় আর
response.statuscancelledসহ একটাresponse.doneইভেন্ট পাঠায় Source 3সোর্স 3। WebRTC-তে সার্ভার না-বাজানো অডিও কেটে দেয়। WebSocket-এ আপনার কোডকে আওয়াজ থামাতে হয় আরconversation.item.truncateপাঠাতে হয় Source 3সোর্স 3। Twilio stream-এ একটাclearমেসেজ অডিও বাফার খালি করে Source 6সোর্স 6। - ট্রান্সক্রিপ্ট। মডেল ট্রান্সক্রিপ্টকে অডিওর সাথে ঠিকঠাক মেলাতে পারে না।
conversation.item.truncateঅডিও কাটে আর না-বাজানো অংশের টেক্সট সরায়, কিন্তু কাটা ট্রান্সক্রিপ্ট দেয় না Source 3সোর্স 3। তাই ট্রান্সক্রিপ্ট কলার আসলে যা শুনেছে তার সাথে নাও মিলতে পারে।
How a tester uses it
- Measure latency. Record the time from the end of the caller's speech to the first audio of the answer, for each turn. A fast first audio is one of the core needs of a voice agent Source 1সোর্স 1. Agree on a target with the team, and track the slowest turns, not only the average. In the tutorial's view, tool calls are a common cause of slow turns, so log them.
- Test interruptions. Cut in while the agent talks. Check that the agent stops, listens, and answers the new question Source 3সোর্স 3. Check that it does not cut in on a caller who pauses to think: compare
silence_duration_msvalues andsemantic_vadon the same recordings Source 2সোর্স 2. - Test accents, noise, and phone audio. Build a set of recorded calls: different accents, a quiet room, a street, a car, a bad line. Play them over a real phone path too, because phone audio is 8000 Hz mu-law Source 6সোর্স 6. Score the transcripts with word error rate (WER): substitutions plus deletions plus insertions, divided by the words in the reference Source 9সোর্স 9. Lower is better, and 0 is perfect Source 9সোর্স 9.
- Check transcripts and tool calls. Compare the log with what the caller really heard: after an interruption, the transcript may not match what was played Source 3সোর্স 3. Check that each tool call has the right tool and the right parameters Source 4সোর্স 4.
- Automate the conversations. Write scripted callers. ElevenLabs Agents can run multi-turn simulations with a simulated user, next-reply tests, and tool-call tests Source 4সোর্স 4, with mocked tools Source 4সোর্স 4. LiveKit Agents has a test framework with judges Source 8সোর্স 8. Run these in CI, as in Headless & CI.
Tutorial advice
This is the tutorial's own advice. Keep a library of real (consented and anonymized) call recordings as your regression set. Each time the prompt, the model, or the VAD settings change, replay the whole library and compare latency, WER, and the task success rate with the last run.
সহজ English
- Measure the delay. For each turn, record the time from the end of the caller's speech to the first sound of the answer. A fast first sound is one of the core needs of a voice agent Source 1সোর্স 1. Agree on a target with the team. Track the slowest turns, not only the average. In the tutorial's view, tool calls often cause slow turns. So log them.
- Test interruptions. Cut in while the agent talks. Check that the agent stops, listens, and answers the new question Source 3সোর্স 3. Check that it does not cut in on a caller who pauses to think. Compare
silence_duration_msvalues andsemantic_vadon the same recordings Source 2সোর্স 2. - Test accents, noise, and phone audio. Build a set of recorded calls: different accents, a quiet room, a street, a car, a bad line. Also play them over a real phone path, because phone audio is 8000 Hz mu-law Source 6সোর্স 6. Score the transcripts with word error rate (WER). It counts the words that were swapped, dropped, or added, and divides by the words in the correct text Source 9সোর্স 9. Lower is better. 0 is perfect Source 9সোর্স 9.
- Check transcripts and tool calls. Compare the log with what the caller really heard. After an interruption, the transcript may not match what was played Source 3সোর্স 3. Check that each tool call has the right tool and the right parameters Source 4সোর্স 4.
- Automate the conversations. Write callers that follow a script. ElevenLabs Agents can run conversations of many turns with a simulated user, tests of the next reply, and tests of tool calls Source 4সোর্স 4. It can use fake tools Source 4সোর্স 4. LiveKit Agents has a test framework with judges Source 8সোর্স 8. Run these in CI, as in Headless & CI.
This is the tutorial's own advice. Keep a library of real call recordings as your regression set. The callers must agree, and the recordings must be anonymized. Each time the prompt, the model, or the VAD settings change, play the whole library again. Compare the delay, the WER, and the task success rate with the last run.
বাংলা ব্যাখ্যা
- দেরি মাপুন। প্রতিটা পালায় কলারের কথা শেষ হওয়া থেকে উত্তরের প্রথম আওয়াজ পর্যন্ত সময় লিখে রাখুন। দ্রুত প্রথম আওয়াজ একটা voice agent-এর মূল প্রয়োজনগুলোর একটা Source 1সোর্স 1। টিমের সাথে একটা লক্ষ্য ঠিক করুন। শুধু গড় নয়, সবচেয়ে ধীর পালাগুলোও খেয়াল করুন। টিউটোরিয়ালের মতে, ধীর পালার একটা সাধারণ কারণ হলো টুল কল। তাই সেগুলো লগ করুন।
- মাঝখানে বাধা টেস্ট করুন। এজেন্ট কথা বলার সময় কথা বলে ঢুকে পড়ুন। দেখুন এজেন্ট থামে, শোনে, আর নতুন প্রশ্নের উত্তর দেয় কিনা Source 3সোর্স 3। দেখুন, যে কলার ভাবার জন্য থামে, এজেন্ট তার কথার মাঝে ঢুকে পড়ে কিনা। একই রেকর্ডিংয়ে
silence_duration_ms-এর বিভিন্ন মান আরsemantic_vadতুলনা করুন Source 2সোর্স 2। - উচ্চারণ, গোলমাল আর ফোনের অডিও টেস্ট করুন। রেকর্ড করা কলের একটা সেট বানান: বিভিন্ন উচ্চারণ, শান্ত ঘর, রাস্তা, গাড়ি, খারাপ লাইন। আসল ফোনের পথেও এগুলো বাজান, কারণ ফোনের অডিও 8000 Hz mu-law Source 6সোর্স 6। ট্রান্সক্রিপ্টের স্কোর নিন word error rate (WER) দিয়ে। এটা বদলে যাওয়া, বাদ পড়া আর বাড়তি শব্দ গোনে, তারপর সঠিক টেক্সটের শব্দসংখ্যা দিয়ে ভাগ করে Source 9সোর্স 9। কম হলে ভালো। 0 মানে নিখুঁত Source 9সোর্স 9।
- ট্রান্সক্রিপ্ট আর টুল কল চেক করুন। কলার আসলে যা শুনেছে, তার সাথে লগ মিলিয়ে দেখুন। বাধার পরে ট্রান্সক্রিপ্ট যা বাজানো হয়েছে তার সাথে নাও মিলতে পারে Source 3সোর্স 3। দেখুন প্রতিটা টুল কলে ঠিক টুল আর ঠিক প্যারামিটার আছে কিনা Source 4সোর্স 4।
- কথোপকথন অটোমেট করুন। স্ক্রিপ্ট মেনে চলা কলার লিখুন। ElevenLabs Agents একটা সিমুলেটেড ইউজার দিয়ে অনেক পালার কথোপকথন, পরের উত্তরের টেস্ট, আর টুল কলের টেস্ট চালাতে পারে Source 4সোর্স 4। এটা নকল টুল ব্যবহার করতে পারে Source 4সোর্স 4। LiveKit Agents-এ judge সহ একটা টেস্ট ফ্রেমওয়ার্ক আছে Source 8সোর্স 8। এগুলো CI-তে চালান, যেমন Headless & CI-এ আছে।
এটা টিউটোরিয়ালের নিজের পরামর্শ। আসল কল রেকর্ডিংয়ের একটা লাইব্রেরি আপনার regression set হিসেবে রাখুন। কলারদের সম্মতি থাকতে হবে, আর রেকর্ডিং anonymize করা থাকতে হবে। প্রম্পট, মডেল বা VAD সেটিং বদলালে পুরো লাইব্রেরি আবার বাজান। আগের রানের সাথে দেরি, WER আর কাজ সফল হওয়ার হার তুলনা করুন।
Tools to try
| Tool | What it does | One fact |
|---|---|---|
| OpenAI Realtime API | A speech-to-speech model API for voice agents | It connects over WebRTC in the browser or WebSocket on a server Source 1সোর্স 1. |
| ElevenLabs Agents | A platform to build and test voice agents | Its tests cover simulated multi-turn calls, the next reply, and tool calls Source 4সোর্স 4, and they run with elevenlabs agents test <agent-id> Source 4সোর্স 4. |
| Twilio Media Streams | Connects a phone call to your server | It streams the raw call audio over WebSockets Source 5সোর্স 5. |
| Pipecat | An open-source Python framework for voice agents | It builds agents from composable pipelines, and it is under BSD-2-Clause Source 7সোর্স 7. |
| LiveKit Agents | An open-source framework for realtime agents | It uses a transformer model for turn detection, has a test framework with judges, and is under Apache-2.0 Source 8সোর্স 8. |
| Hugging Face Evaluate (WER) | Scores a transcript against a reference | It computes WER as (S + D + I) / N Source 9সোর্স 9. |
সহজ English
| Tool | What it does | One fact |
|---|---|---|
| OpenAI Realtime API | A speech-to-speech model API for voice agents | It connects over WebRTC in the browser, or WebSocket on a server Source 1সোর্স 1. |
| ElevenLabs Agents | A platform to build and test voice agents | Its tests cover simulated calls of many turns, the next reply, and tool calls Source 4সোর্স 4. They run with elevenlabs agents test <agent-id> Source 4সোর্স 4. |
| Twilio Media Streams | Connects a phone call to your server | It streams the raw call audio over WebSockets Source 5সোর্স 5. |
| Pipecat | An open-source Python framework for voice agents | It builds agents from pipelines that you put together from parts. It is under BSD-2-Clause Source 7সোর্স 7. |
| LiveKit Agents | An open-source framework for realtime agents | It uses a transformer model to find the end of a turn. It has a test framework with judges. It is under Apache-2.0 Source 8সোর্স 8. |
| Hugging Face Evaluate (WER) | Scores a transcript against a correct text | It computes WER as (S + D + I) / N Source 9সোর্স 9. |
বাংলা ব্যাখ্যা
| টুল | কী করে | একটা তথ্য |
|---|---|---|
| OpenAI Realtime API | voice agent-এর জন্য একটা speech-to-speech মডেল API | এটা ব্রাউজারে WebRTC দিয়ে, বা সার্ভারে WebSocket দিয়ে যুক্ত হয় Source 1সোর্স 1। |
| ElevenLabs Agents | voice agent বানানো আর টেস্ট করার একটা প্ল্যাটফর্ম | এর টেস্টে আছে অনেক পালার সিমুলেটেড কল, পরের উত্তর, আর টুল কল Source 4সোর্স 4। এগুলো চলে elevenlabs agents test <agent-id> দিয়ে Source 4সোর্স 4। |
| Twilio Media Streams | একটা ফোন কলকে আপনার সার্ভারের সাথে যুক্ত করে | এটা কলের কাঁচা অডিও WebSocket দিয়ে stream করে Source 5সোর্স 5। |
| Pipecat | voice agent-এর জন্য একটা open-source Python ফ্রেমওয়ার্ক | এটা অংশ জোড়া দিয়ে বানানো pipeline থেকে এজেন্ট বানায়। এটা BSD-2-Clause লাইসেন্সে Source 7সোর্স 7। |
| LiveKit Agents | রিয়েল টাইম এজেন্টের জন্য একটা open-source ফ্রেমওয়ার্ক | পালা শেষ হওয়া ধরতে এটা একটা transformer মডেল ব্যবহার করে। এতে judge সহ টেস্ট ফ্রেমওয়ার্ক আছে। এটা Apache-2.0 লাইসেন্সে Source 8সোর্স 8। |
| Hugging Face Evaluate (WER) | একটা ট্রান্সক্রিপ্টকে সঠিক টেক্সটের সাথে মিলিয়ে স্কোর দেয় | এটা WER হিসাব করে (S + D + I) / N দিয়ে Source 9সোর্স 9। |
Common mistakes
- Testing only with clean text. The team tests the prompt in a chat window, not with speech. Fix: test with recorded audio over the real path, including 8000 Hz phone audio Source 6সোর্স 6.
- Trusting the transcript as the truth. The log is not the exact record of what the caller heard Source 3সোর্স 3. Fix: keep the audio of failed test calls, and listen to them.
- Only the happy path. Callers interrupt, go silent, change topic, and ask for a human. Fix: write a test for each of these, and check how VAD settings change the result Source 2সোর্স 2.
- Ignoring the rules for AI voices. In the US, the FCC confirmed that AI-generated voices count as "artificial" voices under the TCPA, so such calls need the prior express consent of the person called, unless an emergency or an exemption applies Source 10সোর্স 10. Fix: check consent and disclosure with your legal team before outbound tests reach real numbers. See AI Governance.
- Real customer calls in test data without care. Fix (the tutorial's advice): use only recordings with consent, remove personal data, and keep them in a restricted store.
সহজ English
- Testing only with clean text. The team tests the prompt in a chat window, not with speech. Fix: test with recorded audio over the real path. Include 8000 Hz phone audio Source 6সোর্স 6.
- Trusting the transcript as the truth. The log is not the exact record of what the caller heard Source 3সোর্স 3. Fix: keep the audio of failed test calls, and listen to them.
- Only the happy path. Callers interrupt, go silent, change the topic, and ask for a human. Fix: write a test for each of these. Check how the VAD settings change the result Source 2সোর্স 2.
- Ignoring the rules for AI voices. In the US, the FCC confirmed that AI voices count as "artificial" voices under the TCPA law. So such calls need the clear consent of the person called first. An emergency or an exemption is different Source 10সোর্স 10. Fix: check consent and disclosure with your legal team before outbound tests reach real numbers. See AI Governance.
- Real customer calls in test data without care. Fix (the tutorial's advice): use only recordings with consent. Remove personal data. Keep them in a store with limited access.
বাংলা ব্যাখ্যা
- শুধু পরিষ্কার টেক্সট দিয়ে টেস্ট। টিম কথা দিয়ে নয়, চ্যাট উইন্ডোতে প্রম্পট টেস্ট করে। সমাধান: আসল পথে রেকর্ড করা অডিও দিয়ে টেস্ট করুন। 8000 Hz ফোনের অডিও-ও রাখুন Source 6সোর্স 6।
- ট্রান্সক্রিপ্টকে সত্য ধরে নেওয়া। কলার যা শুনেছে, লগ তার হুবহু রেকর্ড নয় Source 3সোর্স 3। সমাধান: ফেল করা টেস্ট কলের অডিও রেখে দিন, আর সেগুলো শুনুন।
- শুধু সহজ পথ। কলাররা মাঝখানে কথা বলে, চুপ হয়ে যায়, বিষয় বদলায়, মানুষের সাথে কথা বলতে চায়। সমাধান: প্রতিটার জন্য একটা টেস্ট লিখুন। দেখুন VAD সেটিং ফলাফল কীভাবে বদলায় Source 2সোর্স 2।
- AI ভয়েসের নিয়ম উপেক্ষা করা। যুক্তরাষ্ট্রে FCC নিশ্চিত করেছে যে TCPA আইনে AI ভয়েস "artificial" ভয়েস হিসেবে গণ্য। তাই এমন কলের আগে যাকে কল করা হচ্ছে তার স্পষ্ট সম্মতি লাগে। জরুরি অবস্থা বা ছাড় থাকলে আলাদা কথা Source 10সোর্স 10। সমাধান: বাইরের দিকের টেস্ট কল আসল নম্বরে যাওয়ার আগে আপনার লিগ্যাল টিমের সাথে সম্মতি আর জানানোর বিষয়টা চেক করুন। AI Governance দেখুন।
- সতর্কতা ছাড়া টেস্ট ডেটায় আসল কাস্টমারের কল। সমাধান (টিউটোরিয়ালের পরামর্শ): শুধু সম্মতি থাকা রেকর্ডিং ব্যবহার করুন। ব্যক্তিগত তথ্য সরিয়ে ফেলুন। সীমিত অ্যাক্সেসের একটা স্টোরে রাখুন।
How to start
- Count the calls and list the 3 most common call paths. If the volume is low, stop here.
- Write each path as a test case: what the caller says, what the agent must do, and the tool call that you expect Source 4সোর্স 4.
- Record 20 calls per path with different voices, accents, and background noise. Write the correct transcript for each.
- Run them through the agent. Log the latency per turn, the WER Source 9সোর্স 9, and whether the task succeeded.
- Add interruption and silence cases, and try two VAD settings Source 2সোর্স 2.
- Put the suite in CI and replay it on every change.
সহজ English
- Count the calls. List the 3 most common call paths. If the volume is low, stop here.
- Write each path as a test case: what the caller says, what the agent must do, and the tool call that you expect Source 4সোর্স 4.
- Record 20 calls for each path, with different voices, accents, and background noise. Write the correct transcript for each.
- Run them through the agent. Log the delay for each turn, the WER Source 9সোর্স 9, and whether the task worked.
- Add cases with interruptions and silence. Try two VAD settings Source 2সোর্স 2.
- Put the suite in CI. Play it again on every change.
বাংলা ব্যাখ্যা
- কল গুনুন। সবচেয়ে প্রচলিত ৩টা কলের পথ তালিকা করুন। কল কম হলে এখানেই থামুন।
- প্রতিটা পথকে একটা টেস্ট কেস হিসেবে লিখুন: কলার কী বলে, এজেন্টকে কী করতে হবে, আর কোন টুল কল আপনি আশা করেন Source 4সোর্স 4।
- প্রতিটা পথের জন্য বিভিন্ন কণ্ঠ, উচ্চারণ আর পেছনের গোলমাল সহ ২০টা কল রেকর্ড করুন। প্রতিটার সঠিক ট্রান্সক্রিপ্ট লিখুন।
- এগুলো এজেন্টের মধ্য দিয়ে চালান। প্রতিটা পালার দেরি, WER Source 9সোর্স 9, আর কাজটা সফল হয়েছে কিনা লগ করুন।
- বাধা আর নীরবতার কেস যোগ করুন। দুটো VAD সেটিং চেষ্টা করুন Source 2সোর্স 2।
- Suite-টা CI-তে রাখুন। প্রতিটা পরিবর্তনে আবার চালান।
Key words
| Word | Meaning |
|---|---|
| Voice agent | An AI agent that hears speech and answers with speech in real time Source 1সোর্স 1 |
| Barge-in | The caller speaks while the agent is still talking Source 1সোর্স 1 |
| VAD | Voice activity detection: finds when the caller starts and stops speaking Source 2সোর্স 2 |
| Turn detection | Deciding that the caller has finished, by silence or by the words Source 2সোর্স 2 |
| Truncation | Cutting the agent's answer at the point where the caller interrupted Source 3সোর্স 3 |
| Media stream | The raw audio of a phone call sent to your server over WebSockets Source 5সোর্স 5 |
| WER | Word error rate: (substitutions + deletions + insertions) / words in the reference Source 9সোর্স 9 |
| TCPA | The US law on calls with an artificial or prerecorded voice, which covers AI voices Source 10সোর্স 10 |