Truncated Scentences for TTS API, missing in generated audio

Truncated Scentences for TTS API, missing in generated audio

截断的句子导致 TTS API 在生成的音频中缺失

https://ift.tt/LUVJRw7

大家好,论坛朋友:

我把 TTS 用于人工智能语音聊天(相当于一个“游戏主持”)。很少注意到,最后一个句子被截断,我在生成的音频中只得到前半部分。非常奇怪:似乎总是在最后一个句子处被剪切。

例如,对于“I’m Jack from Roll-Bonz, but I don’t care about your food cravings — I sell tough vehicles, not snacks. The BonsAI is a robust mechanical beast with a stainless steel frame and no electronics. Why waste time on this nonsense?”,

我得到一个 120k 的 Blob(.opus/webm),里面没有“Why waste time on this nonsense?”

如果我重复完全相同的请求,我可以得到全部。

这是已知问题吗?

我使用 /api.openai.com/v1/audio/speech

这是我的日志中的记录:
Text[227]:‘I’m Jack from Roll-Bonz, but I don’t care about your food cravings — I sell tough vehicles, not snacks. The BonsAI is …ronics. Why waste time on this nonsense?’ Blob[123765]
Text[227]:‘I’m Jack from Roll-Bonz, but I don’t care about your food cravings — I sell tough vehicles, not snacks. The BonsAI is …ronics. Why waste time on this nonsense?’ Blob[139670]

感谢你的帮助!

此致,Jo

您好,欢迎来到社区!

是的,在最近的测试中我也观察到了相同的行为。输出在信息的第一部分后就停止,这与您的情况相符。

很可能是因为固定的模型在两天前更新到了一个较新的版本。如果你显式选择之前的快照,‘gpt-4o-mini-tts-2025-03-20’,该行为应会回到早期状态。

HI-FI News

via OpenAI Developer Community – Latest posts https://ift.tt/e0aAL7S

2026年1月19日 下午12:01

January 19, 2026 at 12:01PM