Skip to content

chore: add language setting to speechv2 #6826

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

Merged
merged 5 commits into from
Jun 23, 2025
Merged

chore: add language setting to speechv2 #6826

merged 5 commits into from
Jun 23, 2025

Conversation

dancer
Copy link
Collaborator

@dancer dancer commented Jun 22, 2025

background

speech model v2 lacked language setting support, with only provider-specific options available inconsistently across providers.

summary

  • add standardized language parameter to Speech Model v2 core interface
  • add language support with warnings for unsupported providers

verification

  • all tests pass including new language-specific examples
  • LMNT uses standardized parameter with fallback to provider options
  • OpenAI and Hume show appropriate warnings for unsupported language parameter

tasks

  • language parameter added to SpeechModelV2CallOptions
  • language parameter added to generateSpeech function
  • LMNT provider updated to use core language parameter
  • warning implementations for OpenAI and Hume providers
  • documentation updated with language examples

future work

  • consider removing warnings if providers add native language support

@lgrammel
Copy link
Collaborator

pls add a changeset for provider

@dancer dancer merged commit dd3ff01 into v5 Jun 23, 2025
8 checks passed
@dancer dancer deleted the js/speechv2-language branch June 23, 2025 07:00
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