From 4699ee8d86289f5f474fecdba89840dc13ace42e Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Thu, 4 Sep 2025 22:45:51 +0530 Subject: [PATCH] docs: add docstring for voice_cloning_key and update CHANGELOG --- CHANGELOG.md | 2 ++ src/pipecat/services/google/tts.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5396a1eb7..d8d80693e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Added +- Added `voice_cloning_key` to `GoogleTTSService` to support custom cloned voices. +- Added `speaking_rate` to `GoogleTTSService.InputParams` to control the speaking rate. - `BaseOutputTransport` now implements `write_dtmf()` by loading DTMF audio and sending it through the transport. This makes sending DTMF generic across all output transports. diff --git a/src/pipecat/services/google/tts.py b/src/pipecat/services/google/tts.py index 676896cc7..bfda3292a 100644 --- a/src/pipecat/services/google/tts.py +++ b/src/pipecat/services/google/tts.py @@ -523,6 +523,7 @@ class GoogleTTSService(TTSService): credentials: JSON string containing Google Cloud service account credentials. credentials_path: Path to Google Cloud service account JSON file. voice_id: Google TTS voice identifier (e.g., "en-US-Chirp3-HD-Charon"). + voice_cloning_key: The voice cloning key for Chirp 3 custom voices. sample_rate: Audio sample rate in Hz. If None, uses default. params: Language configuration parameters. **kwargs: Additional arguments passed to parent TTSService.