Add websockets dependency to assemblyai extra

This commit is contained in:
Martin Schweiger
2025-05-26 09:08:56 +08:00
parent 9b8800ac1d
commit 5479a55b2c
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ Website = "https://pipecat.ai"
[project.optional-dependencies]
anthropic = [ "anthropic~=0.49.0" ]
assemblyai = [ "assemblyai~=0.37.0" ]
assemblyai = [ "websockets~=13.1" ]
aws = [ "boto3~=1.37.16", "websockets~=13.1" ]
aws-nova-sonic = [ "aws_sdk_bedrock_runtime~=0.0.2" ]
azure = [ "azure-cognitiveservices-speech~=1.42.0"]

View File

@@ -38,7 +38,7 @@ try:
import websockets
except ModuleNotFoundError as e:
logger.error(f"Exception: {e}")
logger.error("In order to use AssemblyAI, you need to `pip install websockets`.")
logger.error('In order to use AssemblyAI, you need to `pip install "pipecat-ai[assemblyai]"`.')
raise Exception(f"Missing module: {e}")