Skip to content

Commit

Permalink
Merge pull request #206 from pipecat-ai/aleix/fix-deepgram-tts
Browse files Browse the repository at this point in the history
services(deepgram): fixed DeepgramTTSService
  • Loading branch information
aconchillo authored Jun 3, 2024
2 parents dd3b408 + 43516f8 commit fe71825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/pipecat/services/deepgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit fe71825

Please sign in to comment.