From cd423207883aacc58f7d641827bbcd1194734ba9 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Mon, 11 Nov 2024 21:59:49 -0500 Subject: [PATCH] Update changelog --- CHANGELOG.md | 7 +++++++ examples/foundational/07q-interruptible-rime.py | 6 +++--- src/pipecat/services/rime.py | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91b70e487..d2a0d6c39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to **Pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Added + +- Added `RimeHttpTTSService` and the `07q-interruptible-rime.py` foundational + example. + ## [0.0.48] - 2024-11-10 "Antonio release" ### Added diff --git a/examples/foundational/07q-interruptible-rime.py b/examples/foundational/07q-interruptible-rime.py index d6e4ed26c..2e13e2a8e 100644 --- a/examples/foundational/07q-interruptible-rime.py +++ b/examples/foundational/07q-interruptible-rime.py @@ -20,7 +20,7 @@ from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.services.openai import OpenAILLMService -from pipecat.services.rime import RimeTTSService +from pipecat.services.rime import RimeHttpTTSService from pipecat.transports.services.daily import DailyParams, DailyTransport load_dotenv(override=True) @@ -45,10 +45,10 @@ async def main(): ), ) - tts = RimeTTSService( + tts = RimeHttpTTSService( api_key=os.getenv("RIME_API_KEY", ""), voice_id="rex", - params=RimeTTSService.InputParams(reduce_latency=True), + params=RimeHttpTTSService.InputParams(reduce_latency=True), ) llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"), model="gpt-4o") diff --git a/src/pipecat/services/rime.py b/src/pipecat/services/rime.py index 0937136d8..6cf2c8129 100644 --- a/src/pipecat/services/rime.py +++ b/src/pipecat/services/rime.py @@ -14,7 +14,7 @@ from pipecat.frames.frames import ( from pipecat.services.ai_services import TTSService -class RimeTTSService(TTSService): +class RimeHttpTTSService(TTSService): class InputParams(BaseModel): pause_between_brackets: Optional[bool] = False phonemize_between_brackets: Optional[bool] = False