diff --git a/macos-py3.10-requirements.txt b/macos-py3.10-requirements.txt index 80bb08196..35ddcd8b6 100644 --- a/macos-py3.10-requirements.txt +++ b/macos-py3.10-requirements.txt @@ -23,7 +23,7 @@ async-timeout==4.0.3 # via aiohttp attrs==23.2.0 # via aiohttp -av==12.0.0 +av==12.1.0 # via faster-whisper azure-cognitiveservices-speech==1.37.0 # via pipecat-ai (pyproject.toml) diff --git a/pyproject.toml b/pyproject.toml index 51c36c779..f52db355a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ Website = "https://pipecat.ai" [project.optional-dependencies] anthropic = [ "anthropic~=0.25.7" ] azure = [ "azure-cognitiveservices-speech~=1.37.0" ] -cartesia = [ "numpy", "sounddevice", "cartesia" ] +cartesia = [ "numpy~=1.26.0", "sounddevice", "cartesia" ] daily = [ "daily-python~=0.9.0" ] examples = [ "python-dotenv~=1.0.0", "flask~=3.0.3", "flask_cors~=4.0.1" ] fal = [ "fal-client~=0.4.0" ] diff --git a/src/pipecat/services/deepgram.py b/src/pipecat/services/deepgram.py index f773af9b1..fb4eb4d33 100644 --- a/src/pipecat/services/deepgram.py +++ b/src/pipecat/services/deepgram.py @@ -5,7 +5,6 @@ # import aiohttp -import json from typing import AsyncGenerator @@ -33,8 +32,8 @@ class DeepgramTTSService(TTSService): 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}