Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants