Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Error for new voices in tts api #1284

Open
1 task
Boshoff93 opened this issue Jan 23, 2025 · 1 comment
Open
1 task

400 Error for new voices in tts api #1284

Boshoff93 opened this issue Jan 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Boshoff93
Copy link

Boshoff93 commented Jan 23, 2025

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

error: {
message: [{'type': 'enum', 'loc': ('body', 'voice'), 'msg': "Input should be 'nova', 'shimmer', 'echo', 'onyx', 'fable' or 'alloy'", 'input': 'sage', 'ctx': {'expected': "'nova', 'shimmer', 'echo', 'onyx', 'fable' or 'alloy'"}}],
type: 'invalid_request_error',
param: null,
code: null
},

for version 4.80.0

To Reproduce

install 4.80.0

client.audio.speech.create({
model: 'tts-1',
voice: 'ash',
input: woooooooooow
})

Code snippets

OS

macOS

Node version

Node v20.10.0

Library version

openai 4.80.0

@Boshoff93 Boshoff93 added the bug Something isn't working label Jan 23, 2025
@Boshoff93
Copy link
Author

Sometimes it works sometimes it doesn't. Almost feels like some openAI servers don;t have the schema changes yet. Please let me know if this is the case..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant