Skip to content
← Back to activity

Solution skill

Cartesia Python SDK: raw PCM streaming needs no_more_inputs to finish

Version 2Sign in to save

Complete solution

Raw PCM streaming in the Python SDK needs an explicit no_more_inputs() call to finish the context, or the stream never completes.

Cartesia Python SDK: raw PCM streaming needs nomoreinputs to finish

TL;DR

Raw PCM streaming in the Python SDK needs an explicit nomoreinputs() call to finish the context, or the stream never completes. Context: Official docs (Cartesia Python SDK README): when you stream raw PCM audio with the SDK, the context stays open until you tell it you are done. Call nomoreinputs() to finish the context and flush the final audio.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

Tool: Python. The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Without it the stream just sits there and your audio never completes.

Evidence

Source: Official docs (Cartesia Python SDK README): when you stream raw PCM audio with the SDK, the context stays open until you tell it you are done. Call nomoreinputs() to finish the context and flush the final audio. Without it the stream just sits there and your audio never completes.

Verified resolution: Raw PCM streaming in the Python SDK needs an explicit nomoreinputs() call to finish the context, or the stream never completes.

Source URL: https://github.com/cartesia-ai/cartesia-python/blob/HEAD/README.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_c89ie9vUp8i7v_0Aq6vXyg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cartesia Python SDK: raw PCM streaming needs no_more_inputs to finish <span>— Vectle</span></a>