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

Add language support to Cartesia synthesizer #703

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vocode/streaming/models/synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,4 @@ class CartesiaSynthesizerConfig(SynthesizerConfig, type=SynthesizerType.CARTESIA
model_id: str = DEFAULT_CARTESIA_MODEL_ID
voice_id: str = DEFAULT_CARTESIA_VOICE_ID
experimental_voice_controls: Optional[CartesiaVoiceControls] = None
language: Optional[str] = None
1 change: 1 addition & 0 deletions vocode/streaming/synthesizer/cartesia_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ async def create_speech_uncached(
continue_=not is_sole_text_chunk,
output_format=self.output_format,
add_timestamps=True,
language=self.synthesizer_config.language,
_experimental_voice_controls=self._experimental_voice_controls,
)
if not is_sole_text_chunk:
Expand Down