fix(api): correct custom voice creation parameters by marcuswood-oai · Pull Request #4038 · openai/openai-python · GitHub
Skip to content

fix(api): correct custom voice creation parameters - #4038

Merged
marcuswood-oai merged 1 commit into
mainfrom
castiron/promotions/pr-214
Oct 8, 2026
Merged

marcuswood-oai merged 1 commit into
mainfrom
castiron/promotions/pr-214

Conversation

@marcuswood-oai

Copy link
Copy Markdown
Contributor

Summary

Correct voice creation to use the supported consent-based audio upload contract.

Changes

  • Require a consent recording and an audio sample when creating a voice.
  • Keep audio_sample as the documented response type.

Castiron-Internal-PR: openai/openai-python-internal#214
Castiron-Source-SHA: 426db623041e62792dbc98735b5c5b651cf63c22
Castiron-Public-Base-SHA: 4e152cd
@marcuswood-oai
marcuswood-oai marked this pull request as ready for review October 8, 2026 08:26
@marcuswood-oai
marcuswood-oai requested a review from a team as a code owner October 8, 2026 08:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

@openai-sdks

openai-sdks Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 9.866s for Python SDK PR #4038.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 102ms
tests/chat-completions-create.test.ts ✅ Passed 149ms
tests/chat-completions-stream.test.ts ✅ Passed 189ms
tests/files-content-binary.test.ts ✅ Passed 118ms
tests/files-create-multipart.test.ts ✅ Passed 188ms
tests/files-list-pagination.test.ts ✅ Passed 266ms
tests/initialize-config.test.ts ✅ Passed 92ms
tests/instance-isolation.test.ts ✅ Passed 151ms
tests/models-list.test.ts ✅ Passed 248ms
tests/responses-background-lifecycle.test.ts ✅ Passed 110ms
tests/responses-body-method-errors.test.ts ✅ Passed 300ms
tests/responses-cancel-timeout.test.ts ✅ Passed 176ms
tests/responses-cancel.test.ts ✅ Passed 110ms
tests/responses-compact-retries.test.ts ✅ Passed 228ms
tests/responses-compact.test.ts ✅ Passed 244ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 116ms
tests/responses-create-advanced.test.ts ✅ Passed 173ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.267s
tests/responses-create-errors.test.ts ✅ Passed 247ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 372ms
tests/responses-create-retries.test.ts ✅ Passed 323ms
tests/responses-create-stream-failures.test.ts ✅ Passed 573ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 209ms
tests/responses-create-stream-wire.test.ts ✅ Passed 2.498s
tests/responses-create-stream.test.ts ✅ Passed 238ms
tests/responses-create-terminal-states.test.ts ✅ Passed 274ms
tests/responses-create-timeout.test.ts ✅ Passed 167ms
tests/responses-create.test.ts ✅ Passed 448ms
tests/responses-delete.test.ts ✅ Passed 148ms
tests/responses-input-items-errors.test.ts ✅ Passed 535ms
tests/responses-input-items-list.test.ts ✅ Passed 360ms
tests/responses-input-items-options.test.ts ✅ Passed 220ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 328ms
tests/responses-input-tokens-count.test.ts ✅ Passed 191ms
tests/responses-malformed-inputs.test.ts ✅ Passed 1.87s
tests/responses-not-found-errors.test.ts ✅ Passed 171ms
tests/responses-parse.test.ts ✅ Passed 237ms
tests/responses-retrieve-retries.test.ts ✅ Passed 208ms
tests/responses-retrieve.test.ts ✅ Passed 117ms
tests/responses-stored-method-errors.test.ts ✅ Passed 649ms
tests/retry-behavior.test.ts ✅ Passed 3.269s
tests/sdk-error-shape.test.ts ✅ Passed 469ms

View OkTest run #37749857287

SDK merge (9deda04c2dee) · head (0feffab878a3) · base (4e152cdefe18) · OkTest (505ac0e34283)

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

@marcuswood-oai
marcuswood-oai merged commit b9bc5c1 into main Oct 8, 2026
27 of 28 checks passed
@marcuswood-oai
marcuswood-oai deleted the castiron/promotions/pr-214 branch October 8, 2026 08:42
@openai-sdks openai-sdks Bot mentioned this pull request Oct 8, 2026
gh-actions-shared Bot pushed a commit to xf-qubit/openai-python that referenced this pull request Oct 8, 2026
Automated Release PR
---


##
[3.26.1](openai/openai-python@v3.26.0...v3.26.1)
(2026-10-08)


### Bug Fixes

* **api:** correct custom voice creation parameters
([openai#4038](openai#4038))
([b9bc5c1](openai@b9bc5c1))

---
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: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
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.

1 participant