Urgent.News

What's breaking now, across thousands of outlets.

AI

Stop Sending Half-Sentences to OpenAI in a Tencent RTC Voice Companion

Voice-companion demos invite an obvious question: Which model makes the smartest or most charming character? That is rarely the first production decision. A capable model still feels broken if your application sends it half a sentence, repeats a finalized transcript, or plays a response after the user has already started a new turn. The practical tension is between responsiveness and certainty:…

This tutorial constructs a compact Python code for a voice companion application utilizing Tencent's Conversational AI. The objective is to regulate the timing of utterance submissions to an OpenAI-compatible language model. The code defines a sequence of states, a structured format for transcript segments, and a turn committer class responsible for managing the conversation flow.

The system waits for a set quiet interval, oversees segment correlation, and guarantees recovery procedures. The ultimate aim is not to enhance the model but to ensure the model receives coherent utterances. The system maintains three key principles: only one active request identifier, acceptance of callbacks matching the active state, and the creation of new sessions upon reconnection.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Fixing Bedrock ToolResult Ordering Errors

A tool executed successfully, but Bedrock rejected the next message because toolResult IDs did not match the preceding toolUse order. INC-004 is easy to create when tools run in parallel.

Behind EcoPrompt: How I modeled the hidden physical cost of AI prompts (Zero Telemetry)

GenAI web interfaces (ChatGPT, Gemini, Claude) are pristine, minimal, and fast. But behind every single prompt lies a massive array of GPU clusters consuming real electricity, requiring evaporative…

  • EcoPrompt tracks physical costs of AI prompts, including water, energy, and carbon emissions.
  • Extension uses peer-reviewed research and industry data to calculate environmental impact.
  • EcoPrompt ensures user privacy with zero telemetry, client-side processing, and local storage.

More from Saturday 26 September →