Skip to content

Commit

Permalink
updates to be squashed
Browse files Browse the repository at this point in the history
  • Loading branch information
vipyne committed Dec 4, 2024
1 parent 7215ca2 commit 9b458a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pipecat/services/fastpitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@

try:
import websockets

import riva.client
from riva.client.argparse_utils import add_connection_argparse_parameters
except ModuleNotFoundError as e:
logger.error(f"Exception: {e}")
logger.error(
Expand Down Expand Up @@ -92,7 +90,7 @@ def __init__(
super().__init__(
aggregate_sentences=True,
push_text_frames=False,
sample_rate=sample_rate,
sample_rate=sample_rate_hz,
**kwargs,
)

Expand Down Expand Up @@ -144,6 +142,7 @@ async def cancel(self, frame: CancelFrame):

async def _connect(self):
try:
# borked
self._websocket = await websockets.connect(
f"{self._url}?api_key={self._api_key}&fastpitch_version={self._fastpitch_version}"
)
Expand Down

0 comments on commit 9b458a2

Please sign in to comment.