From 43516f84fe6bbb63e668b4818c9542bf21d093aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 3 Jun 2024 07:53:46 -0700 Subject: [PATCH] services(deepgram): fixed DeepgramTTSService --- CHANGELOG.md | 6 ++++++ src/pipecat/services/deepgram.py | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ffb40af8..5f2cb533f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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] + +### Fixed + +- Fixed an issue with Deepgram TTS that was introduced in the previous release. + ## [0.0.25] - 2024-05-31 ### Added diff --git a/src/pipecat/services/deepgram.py b/src/pipecat/services/deepgram.py index fb4eb4d33..5a80f19f0 100644 --- a/src/pipecat/services/deepgram.py +++ b/src/pipecat/services/deepgram.py @@ -32,8 +32,7 @@ def __init__( async def run_tts(self, text: str) -> AsyncGenerator[Frame, None]: logger.info(f"Running Deepgram TTS for {text}") base_url = "https://api.deepgram.com/v1/speak" - request_url = f"{base_url}?model = { - self._voice} & encoding = linear16 & container = none & sample_rate = 16000" + request_url = f"{base_url}?model={self._voice}&encoding=linear16&container=none&sample_rate=16000" headers = {"authorization": f"token {self._api_key}"} body = {"text": text}