Skip to content

stt transcribe examples crash when more than 2 arguments are supp... - #92

Merged
charlotte-zhuang merged 1 commit into
cartesia-ai:mainfrom
AlvaroBalbin:fix/issue-88
Jul 17, 2026
Merged

charlotte-zhuang merged 1 commit into
cartesia-ai:mainfrom
AlvaroBalbin:fix/issue-88

Conversation

@AlvaroBalbin

Copy link
Copy Markdown
Contributor

Fixes #88.

The STT transcribe examples unpacked command-line arguments with file_path, language = args, which raised ValueError: too many values to unpack whenever more than two arguments were supplied. I changed both the sync and async examples to use the starred pattern file_path, language, *_ = args so extra arguments are captured safely, consistent with the other examples in these files.

I could not run the full suite in my environment, but the lint and file-level checks I could run on the changed files pass; CI should confirm the rest.

@charlotte-zhuang charlotte-zhuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@charlotte-zhuang
charlotte-zhuang merged commit b43e8a0 into cartesia-ai:main Jul 17, 2026
3 checks passed
charlotte-zhuang pushed a commit that referenced this pull request Jul 17, 2026
Automated Release PR
---


##
[3.4.0-b1](v3.3.0...v3.4.0-b1)
(2026-07-17)


### Features

* **stt:** register STTAutoFinalizeCloseCommand as a named model
([13cf03a](13cf03a))


### Bug Fixes

* catch asyncio.TimeoutError in async WebSocket receive()
([#91](#91))
([d2f5564](d2f5564))
* correct required properties for tts and stt ws errors
([988e6aa](988e6aa))
* stt transcribe examples crash when more than 2 arguments are supplied
([#92](#92))
([b43e8a0](b43e8a0))


### Refactors

* **stt:** inline auto-finalize command models into request union
([2021517](2021517))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: cartesia-stlc-ci[bot] <294976538+cartesia-stlc-ci[bot]@users.noreply.github.com>
This was referenced Jul 21, 2026
charlotte-zhuang pushed a commit that referenced this pull request Jul 21, 2026
Automated Release PR
---

Promotes `3.4.0-b1` to the stable **3.4.0** release. Version bumped in
`pyproject.toml`, `src/cartesia/_version.py`, and
`.release-please-manifest.json`; changelog re-cut against **v3.3.0**
(v3.3.0 style), adding items that were missing/undersold in the b1
notes: `sonic-latest`, the `ar/he/ta/te/th` languages, and the full STT
key-term/turn-config feature set (previously only
`STTAutoFinalizeCloseCommand` was listed). The b2 trigger-commit chore
entry is dropped.

## 3.4.0 (2026-07-21)

Full Changelog:
[v3.3.0...v3.4.0](v3.3.0...v3.4.0)

### Features

* **stt:** add turn configs and key term prompting
([4bdcfa0](4bdcfa0))
* **stt:** register STTAutoFinalizeCloseCommand as a named model
([13cf03a](13cf03a))
* **tts:** add sonic-latest model
([09fa0a7](09fa0a7))
* **voices:** add ar, he, ta, te, and th localization languages
([09fa0a7](09fa0a7))

### Bug Fixes

* catch asyncio.TimeoutError in async WebSocket receive()
([#91](#91))
([d2f5564](d2f5564))
* correct required properties for tts and stt ws errors
([988e6aa](988e6aa))
* stt transcribe examples crash when more than 2 arguments are supplied
([#92](#92))
([b43e8a0](b43e8a0))

### Refactors

* **stt:** inline auto-finalize command models into request union
([2021517](2021517))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: cartesia-stlc-ci[bot] <294976538+cartesia-stlc-ci[bot]@users.noreply.github.com>
Co-authored-by: Charlotte Zhuang <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stt transcribe examples crash when more than 2 arguments are supplied

2 participants