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

feat(speech-voice-types): add SpeechVoice and SpeechResponseFormat types #1355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guspuffygit
Copy link

@guspuffygit guspuffygit commented Mar 4, 2025

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

If we could make SpeechVoice and SpeechResponseFormat types consistent with SpeechModel they can be referenced in consuming libraries. Due to them being hardcoded you can't use it as a type in consuming libraries.

Adding the (string & {}) flexibility for these types also makes it possible to use OpenAI compatible APIs.

@guspuffygit guspuffygit requested a review from a team as a code owner March 4, 2025 15:42
@darthalex2014
Copy link

Wow

- Introduce new exported type aliases SpeechVoice and SpeechResponseFormat for valid voice and audio format options.
- Update SpeechCreateParams:
  - Change voice field type to (string & {}) | SpeechVoice for flexibility and consistency.
  - Change response_format field type to (string & {}) | SpeechResponseFormat for flexibility and consistency.
- Extend the exported namespace to include the new types.
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.

2 participants