Nazar
03/12/2025, 10:31 PMVapi Support Bot
03/12/2025, 10:32 PMinputPunctuationBoundaries
in your assistant's voice settings to specify punctuation marks that indicate the end of a complete message:
json
{
"assistant": {
"voice": {
"inputPunctuationBoundaries": [".", "!", "?"]
}
}
}
This helps Vapi recognize complete sentences based on punctuation, reducing message segmentation [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336360452208332831).
2. **Adjust Wait Seconds Parameter**:
Increase the waitSeconds
value to allow longer pauses after voice input:
json
{
"startSpeakingPlan": {
"waitSeconds": 0.8
}
}
This gives the AI more time to process complete thoughts [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336360452208332831).
3. **Review Your Server Implementation**:
Implement logic in your custom LLM server to send only the latest response to Vapi:
python
# Example of message merging logic
const mergedMessages = messages.reduce((acc, curr) => {
if (acc.length === 0) {
return [curr];
}
const lastMessage = acc[acc.length - 1];
if (lastMessage.role === curr.role) {
// Combine content of messages with same role
lastMessage.content = `${lastMessage.content} ${curr.content}`;
return acc;
}
return [...acc, curr];
}, []);
4. **Check Event Handling**:Vapi Support Bot
03/12/2025, 10:32 PMclientMessages
field in your assistant's configuration contains only those messages intended to be sent back, without duplicates [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1333406713931632731).
Let me know if you need more specific guidance on any of these solutions! 👍
Sources:
- [Discord Channel Vapi.ai](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336360452208332831)
- [Discord Channel Vapi.ai](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333406713931632731)Praveen Nair
03/15/2025, 7:08 AM