From 4c2b84cb4d37469b972ed00800c295cf01f113e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 16 Aug 2024 09:28:46 -0700 Subject: [PATCH] update pyproject.toml and remove requirements files --- README.md | 8 +- dev-requirements.txt | 8 +- linux-py3.10-requirements.txt | 502 -------------------------------- macos-py3.10-requirements.txt | 466 ----------------------------- pyproject.toml | 31 +- src/pipecat/services/whisper.py | 2 +- 6 files changed, 24 insertions(+), 993 deletions(-) delete mode 100644 linux-py3.10-requirements.txt delete mode 100644 macos-py3.10-requirements.txt diff --git a/README.md b/README.md index 900eb6c74..ca7e2456c 100644 --- a/README.md +++ b/README.md @@ -146,20 +146,20 @@ source venv/bin/activate From the root of this repo, run the following: ```shell -pip install -r dev-requirements.txt -r {env}-requirements.txt +pip install -r dev-requirements.txt python -m build ``` -This builds the package. To use the package locally (eg to run sample files), run +This builds the package. To use the package locally (e.g. to run sample files), run ```shell -pip install --editable . +pip install --editable ".[option,...]" ``` If you want to use this package from another directory, you can run: ```shell -pip install path_to_this_repo +pip install "path_to_this_repo[option,...]" ``` ### Running tests diff --git a/dev-requirements.txt b/dev-requirements.txt index 50b2e13b3..6ce9ffcb4 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,8 +1,8 @@ -autopep8~=2.1.0 +autopep8~=2.3.1 build~=1.2.1 grpcio-tools~=1.62.2 pip-tools~=7.4.1 -pyright~=1.1.367 -pytest~=8.2.0 -setuptools~=71.1.0 +pyright~=1.1.376 +pytest~=8.3.2 +setuptools~=72.2.0 setuptools_scm~=8.1.0 diff --git a/linux-py3.10-requirements.txt b/linux-py3.10-requirements.txt deleted file mode 100644 index dd9969964..000000000 --- a/linux-py3.10-requirements.txt +++ /dev/null @@ -1,502 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.10 -# by the following command: -# -# pip-compile --all-extras pyproject.toml -# -aiofiles==24.1.0 - # via deepgram-sdk -aiohttp==3.9.5 - # via - # deepgram-sdk - # langchain - # langchain-community - # pipecat-ai (pyproject.toml) -aiosignal==1.3.1 - # via aiohttp -annotated-types==0.7.0 - # via pydantic -anthropic==0.34.0 - # via - # openpipe - # pipecat-ai (pyproject.toml) -anyio==4.4.0 - # via - # anthropic - # httpx - # openai - # starlette - # watchfiles -async-timeout==4.0.3 - # via - # aiohttp - # langchain -attrs==23.2.0 - # via - # aiohttp - # openpipe -av==12.3.0 - # via faster-whisper -azure-cognitiveservices-speech==1.38.0 - # via pipecat-ai (pyproject.toml) -blinker==1.8.2 - # via flask -cachetools==5.4.0 - # via google-auth -certifi==2024.7.4 - # via - # httpcore - # httpx - # requests -charset-normalizer==3.3.2 - # via requests -click==8.1.7 - # via - # flask - # typer - # uvicorn -coloredlogs==15.0.1 - # via onnxruntime -ctranslate2==4.3.1 - # via faster-whisper -daily-python==0.10.1 - # via pipecat-ai (pyproject.toml) -dataclasses-json==0.6.7 - # via - # deepgram-sdk - # langchain-community -deepgram-sdk==3.2.7 - # via pipecat-ai (pyproject.toml) -distro==1.9.0 - # via - # anthropic - # openai -dnspython==2.6.1 - # via email-validator -einops==0.8.0 - # via pipecat-ai (pyproject.toml) -email-validator==2.2.0 - # via fastapi -exceptiongroup==1.2.2 - # via anyio -fal-client==0.4.1 - # via pipecat-ai (pyproject.toml) -fastapi==0.111.1 - # via pipecat-ai (pyproject.toml) -fastapi-cli==0.0.5 - # via fastapi -faster-whisper==1.0.3 - # via pipecat-ai (pyproject.toml) -filelock==3.15.4 - # via - # huggingface-hub - # pyht - # torch - # transformers - # triton -flask==3.0.3 - # via - # flask-cors - # pipecat-ai (pyproject.toml) -flask-cors==4.0.1 - # via pipecat-ai (pyproject.toml) -flatbuffers==24.3.25 - # via onnxruntime -frozenlist==1.4.1 - # via - # aiohttp - # aiosignal -fsspec==2024.6.1 - # via - # huggingface-hub - # torch -future==1.0.0 - # via pyloudnorm -google-ai-generativelanguage==0.6.6 - # via google-generativeai -google-api-core[grpc]==2.19.1 - # via - # google-ai-generativelanguage - # google-api-python-client - # google-generativeai -google-api-python-client==2.140.0 - # via google-generativeai -google-auth==2.33.0 - # via - # google-ai-generativelanguage - # google-api-core - # google-api-python-client - # google-auth-httplib2 - # google-generativeai -google-auth-httplib2==0.2.0 - # via google-api-python-client -google-generativeai==0.7.2 - # via pipecat-ai (pyproject.toml) -googleapis-common-protos==1.63.2 - # via - # google-api-core - # grpcio-status -greenlet==3.0.3 - # via sqlalchemy -grpcio==1.65.4 - # via - # google-api-core - # grpcio-status - # pyht -grpcio-status==1.62.3 - # via google-api-core -h11==0.14.0 - # via - # httpcore - # uvicorn -httpcore==1.0.5 - # via httpx -httplib2==0.22.0 - # via - # google-api-python-client - # google-auth-httplib2 -httptools==0.6.1 - # via uvicorn -httpx==0.27.0 - # via - # anthropic - # deepgram-sdk - # fal-client - # fastapi - # openai - # openpipe -httpx-sse==0.4.0 - # via fal-client -huggingface-hub==0.24.5 - # via - # faster-whisper - # timm - # tokenizers - # transformers -humanfriendly==10.0 - # via coloredlogs -idna==3.7 - # via - # anyio - # email-validator - # httpx - # requests - # yarl -itsdangerous==2.2.0 - # via flask -jinja2==3.1.4 - # via - # fastapi - # flask - # torch -jiter==0.5.0 - # via anthropic -jsonpatch==1.33 - # via langchain-core -jsonpointer==3.0.0 - # via jsonpatch -langchain==0.2.12 - # via - # langchain-community - # pipecat-ai (pyproject.toml) -langchain-community==0.2.11 - # via pipecat-ai (pyproject.toml) -langchain-core==0.2.29 - # via - # langchain - # langchain-community - # langchain-openai - # langchain-text-splitters -langchain-openai==0.1.20 - # via pipecat-ai (pyproject.toml) -langchain-text-splitters==0.2.2 - # via langchain -langsmith==0.1.98 - # via - # langchain - # langchain-community - # langchain-core -llvmlite==0.43.0 - # via numba -loguru==0.7.2 - # via pipecat-ai (pyproject.toml) -markdown-it-py==3.0.0 - # via rich -markupsafe==2.1.5 - # via - # jinja2 - # werkzeug -marshmallow==3.21.3 - # via dataclasses-json -mdurl==0.1.2 - # via markdown-it-py -mpmath==1.3.0 - # via sympy -multidict==6.0.5 - # via - # aiohttp - # yarl -mypy-extensions==1.0.0 - # via typing-inspect -networkx==3.3 - # via torch -numba==0.60.0 - # via resampy -numpy==1.26.4 - # via - # ctranslate2 - # langchain - # langchain-community - # numba - # onnxruntime - # pipecat-ai (pyproject.toml) - # pyloudnorm - # resampy - # scipy - # torchvision - # transformers -nvidia-cublas-cu12==12.1.3.1 - # via - # nvidia-cudnn-cu12 - # nvidia-cusolver-cu12 - # torch -nvidia-cuda-cupti-cu12==12.1.105 - # via torch -nvidia-cuda-nvrtc-cu12==12.1.105 - # via torch -nvidia-cuda-runtime-cu12==12.1.105 - # via torch -nvidia-cudnn-cu12==9.1.0.70 - # via torch -nvidia-cufft-cu12==11.0.2.54 - # via torch -nvidia-curand-cu12==10.3.2.106 - # via torch -nvidia-cusolver-cu12==11.4.5.107 - # via torch -nvidia-cusparse-cu12==12.1.0.106 - # via - # nvidia-cusolver-cu12 - # torch -nvidia-nccl-cu12==2.20.5 - # via torch -nvidia-nvjitlink-cu12==12.6.20 - # via - # nvidia-cusolver-cu12 - # nvidia-cusparse-cu12 -nvidia-nvtx-cu12==12.1.105 - # via torch -onnxruntime==1.18.1 - # via - # faster-whisper - # silero-vad -openai==1.35.15 - # via - # langchain-openai - # openpipe - # pipecat-ai (pyproject.toml) -openpipe==4.18.0 - # via pipecat-ai (pyproject.toml) -orjson==3.10.7 - # via langsmith -packaging==24.1 - # via - # huggingface-hub - # langchain-core - # marshmallow - # onnxruntime - # transformers -pillow==10.3.0 - # via - # pipecat-ai (pyproject.toml) - # torchvision -proto-plus==1.24.0 - # via - # google-ai-generativelanguage - # google-api-core -protobuf==4.25.4 - # via - # google-ai-generativelanguage - # google-api-core - # google-generativeai - # googleapis-common-protos - # grpcio-status - # onnxruntime - # pipecat-ai (pyproject.toml) - # proto-plus - # pyht -pyasn1==0.6.0 - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.4.0 - # via google-auth -pyaudio==0.2.14 - # via pipecat-ai (pyproject.toml) -pydantic==2.8.2 - # via - # anthropic - # fastapi - # google-generativeai - # langchain - # langchain-core - # langsmith - # openai -pydantic-core==2.20.1 - # via pydantic -pygments==2.18.0 - # via rich -pyht==0.0.28 - # via pipecat-ai (pyproject.toml) -pyloudnorm==0.1.1 - # via pipecat-ai (pyproject.toml) -pyparsing==3.1.2 - # via httplib2 -python-dateutil==2.9.0.post0 - # via openpipe -python-dotenv==1.0.1 - # via - # pipecat-ai (pyproject.toml) - # uvicorn -python-multipart==0.0.9 - # via fastapi -pyyaml==6.0.2 - # via - # ctranslate2 - # huggingface-hub - # langchain - # langchain-community - # langchain-core - # timm - # transformers - # uvicorn -regex==2024.7.24 - # via - # tiktoken - # transformers -requests==2.32.3 - # via - # google-api-core - # huggingface-hub - # langchain - # langchain-community - # langsmith - # pyht - # tiktoken - # transformers -resampy==0.4.3 - # via pipecat-ai (pyproject.toml) -rich==13.7.1 - # via typer -rsa==4.9 - # via google-auth -safetensors==0.4.4 - # via - # timm - # transformers -scipy==1.14.0 - # via pyloudnorm -shellingham==1.5.4 - # via typer -silero-vad==5.1 - # via pipecat-ai (pyproject.toml) -six==1.16.0 - # via python-dateutil -sniffio==1.3.1 - # via - # anthropic - # anyio - # httpx - # openai -sqlalchemy==2.0.32 - # via - # langchain - # langchain-community -starlette==0.37.2 - # via fastapi -sympy==1.13.1 - # via - # onnxruntime - # torch -tenacity==8.5.0 - # via - # langchain - # langchain-community - # langchain-core -tiktoken==0.7.0 - # via langchain-openai -timm==0.9.16 - # via pipecat-ai (pyproject.toml) -tokenizers==0.19.1 - # via - # anthropic - # faster-whisper - # transformers -torch==2.4.0 - # via - # silero-vad - # timm - # torchaudio - # torchvision -torchaudio==2.4.0 - # via silero-vad -torchvision==0.19.0 - # via timm -tqdm==4.66.5 - # via - # google-generativeai - # huggingface-hub - # openai - # transformers -transformers==4.40.2 - # via pipecat-ai (pyproject.toml) -triton==3.0.0 - # via torch -typer==0.12.3 - # via fastapi-cli -typing-extensions==4.12.2 - # via - # anthropic - # anyio - # deepgram-sdk - # fastapi - # google-generativeai - # huggingface-hub - # langchain-core - # openai - # pipecat-ai (pyproject.toml) - # pydantic - # pydantic-core - # sqlalchemy - # torch - # typer - # typing-inspect - # uvicorn -typing-inspect==0.9.0 - # via dataclasses-json -uritemplate==4.1.1 - # via google-api-python-client -urllib3==2.2.2 - # via requests -uvicorn[standard]==0.30.5 - # via - # fastapi - # fastapi-cli -uvloop==0.19.0 - # via uvicorn -verboselogs==1.7 - # via deepgram-sdk -watchfiles==0.23.0 - # via uvicorn -websockets==12.0 - # via - # deepgram-sdk - # pipecat-ai (pyproject.toml) - # uvicorn -werkzeug==3.0.3 - # via flask -yarl==1.9.4 - # via aiohttp - -# The following packages are considered to be unsafe in a requirements file: -# setuptools diff --git a/macos-py3.10-requirements.txt b/macos-py3.10-requirements.txt deleted file mode 100644 index c94f6e41a..000000000 --- a/macos-py3.10-requirements.txt +++ /dev/null @@ -1,466 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.10 -# by the following command: -# -# pip-compile --all-extras pyproject.toml -# -aiofiles==24.1.0 - # via deepgram-sdk -aiohttp==3.9.5 - # via - # deepgram-sdk - # langchain - # langchain-community - # pipecat-ai (pyproject.toml) -aiosignal==1.3.1 - # via aiohttp -annotated-types==0.7.0 - # via pydantic -anthropic==0.34.0 - # via - # openpipe - # pipecat-ai (pyproject.toml) -anyio==4.4.0 - # via - # anthropic - # httpx - # openai - # starlette - # watchfiles -async-timeout==4.0.3 - # via - # aiohttp - # langchain -attrs==23.2.0 - # via - # aiohttp - # openpipe -av==12.3.0 - # via faster-whisper -azure-cognitiveservices-speech==1.38.0 - # via pipecat-ai (pyproject.toml) -blinker==1.8.2 - # via flask -cachetools==5.4.0 - # via google-auth -certifi==2024.7.4 - # via - # httpcore - # httpx - # requests -charset-normalizer==3.3.2 - # via requests -click==8.1.7 - # via - # flask - # typer - # uvicorn -coloredlogs==15.0.1 - # via onnxruntime -ctranslate2==4.3.1 - # via faster-whisper -daily-python==0.10.1 - # via pipecat-ai (pyproject.toml) -dataclasses-json==0.6.7 - # via - # deepgram-sdk - # langchain-community -deepgram-sdk==3.2.7 - # via pipecat-ai (pyproject.toml) -distro==1.9.0 - # via - # anthropic - # openai -dnspython==2.6.1 - # via email-validator -einops==0.8.0 - # via pipecat-ai (pyproject.toml) -email-validator==2.2.0 - # via fastapi -exceptiongroup==1.2.2 - # via anyio -fal-client==0.4.1 - # via pipecat-ai (pyproject.toml) -fastapi==0.111.1 - # via pipecat-ai (pyproject.toml) -fastapi-cli==0.0.5 - # via fastapi -faster-whisper==1.0.3 - # via pipecat-ai (pyproject.toml) -filelock==3.15.4 - # via - # huggingface-hub - # pyht - # torch - # transformers -flask==3.0.3 - # via - # flask-cors - # pipecat-ai (pyproject.toml) -flask-cors==4.0.1 - # via pipecat-ai (pyproject.toml) -flatbuffers==24.3.25 - # via onnxruntime -frozenlist==1.4.1 - # via - # aiohttp - # aiosignal -fsspec==2024.6.1 - # via - # huggingface-hub - # torch -future==1.0.0 - # via pyloudnorm -google-ai-generativelanguage==0.6.6 - # via google-generativeai -google-api-core[grpc]==2.19.1 - # via - # google-ai-generativelanguage - # google-api-python-client - # google-generativeai -google-api-python-client==2.140.0 - # via google-generativeai -google-auth==2.33.0 - # via - # google-ai-generativelanguage - # google-api-core - # google-api-python-client - # google-auth-httplib2 - # google-generativeai -google-auth-httplib2==0.2.0 - # via google-api-python-client -google-generativeai==0.7.2 - # via pipecat-ai (pyproject.toml) -googleapis-common-protos==1.63.2 - # via - # google-api-core - # grpcio-status -grpcio==1.65.4 - # via - # google-api-core - # grpcio-status - # pyht -grpcio-status==1.62.3 - # via google-api-core -h11==0.14.0 - # via - # httpcore - # uvicorn -httpcore==1.0.5 - # via httpx -httplib2==0.22.0 - # via - # google-api-python-client - # google-auth-httplib2 -httptools==0.6.1 - # via uvicorn -httpx==0.27.0 - # via - # anthropic - # deepgram-sdk - # fal-client - # fastapi - # openai - # openpipe -httpx-sse==0.4.0 - # via fal-client -huggingface-hub==0.24.5 - # via - # faster-whisper - # timm - # tokenizers - # transformers -humanfriendly==10.0 - # via coloredlogs -idna==3.7 - # via - # anyio - # email-validator - # httpx - # requests - # yarl -itsdangerous==2.2.0 - # via flask -jinja2==3.1.4 - # via - # fastapi - # flask - # torch -jiter==0.5.0 - # via anthropic -jsonpatch==1.33 - # via langchain-core -jsonpointer==3.0.0 - # via jsonpatch -langchain==0.2.12 - # via - # langchain-community - # pipecat-ai (pyproject.toml) -langchain-community==0.2.11 - # via pipecat-ai (pyproject.toml) -langchain-core==0.2.29 - # via - # langchain - # langchain-community - # langchain-openai - # langchain-text-splitters -langchain-openai==0.1.20 - # via pipecat-ai (pyproject.toml) -langchain-text-splitters==0.2.2 - # via langchain -langsmith==0.1.98 - # via - # langchain - # langchain-community - # langchain-core -llvmlite==0.43.0 - # via numba -loguru==0.7.2 - # via pipecat-ai (pyproject.toml) -markdown-it-py==3.0.0 - # via rich -markupsafe==2.1.5 - # via - # jinja2 - # werkzeug -marshmallow==3.21.3 - # via dataclasses-json -mdurl==0.1.2 - # via markdown-it-py -mpmath==1.3.0 - # via sympy -multidict==6.0.5 - # via - # aiohttp - # yarl -mypy-extensions==1.0.0 - # via typing-inspect -networkx==3.3 - # via torch -numba==0.60.0 - # via resampy -numpy==1.26.4 - # via - # ctranslate2 - # langchain - # langchain-community - # numba - # onnxruntime - # pipecat-ai (pyproject.toml) - # pyloudnorm - # resampy - # scipy - # torchvision - # transformers -onnxruntime==1.18.1 - # via - # faster-whisper - # silero-vad -openai==1.35.15 - # via - # langchain-openai - # openpipe - # pipecat-ai (pyproject.toml) -openpipe==4.18.0 - # via pipecat-ai (pyproject.toml) -orjson==3.10.7 - # via langsmith -packaging==24.1 - # via - # huggingface-hub - # langchain-core - # marshmallow - # onnxruntime - # transformers -pillow==10.3.0 - # via - # pipecat-ai (pyproject.toml) - # torchvision -proto-plus==1.24.0 - # via - # google-ai-generativelanguage - # google-api-core -protobuf==4.25.4 - # via - # google-ai-generativelanguage - # google-api-core - # google-generativeai - # googleapis-common-protos - # grpcio-status - # onnxruntime - # pipecat-ai (pyproject.toml) - # proto-plus - # pyht -pyasn1==0.6.0 - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.4.0 - # via google-auth -pyaudio==0.2.14 - # via pipecat-ai (pyproject.toml) -pydantic==2.8.2 - # via - # anthropic - # fastapi - # google-generativeai - # langchain - # langchain-core - # langsmith - # openai -pydantic-core==2.20.1 - # via pydantic -pygments==2.18.0 - # via rich -pyht==0.0.28 - # via pipecat-ai (pyproject.toml) -pyloudnorm==0.1.1 - # via pipecat-ai (pyproject.toml) -pyparsing==3.1.2 - # via httplib2 -python-dateutil==2.9.0.post0 - # via openpipe -python-dotenv==1.0.1 - # via - # pipecat-ai (pyproject.toml) - # uvicorn -python-multipart==0.0.9 - # via fastapi -pyyaml==6.0.2 - # via - # ctranslate2 - # huggingface-hub - # langchain - # langchain-community - # langchain-core - # timm - # transformers - # uvicorn -regex==2024.7.24 - # via - # tiktoken - # transformers -requests==2.32.3 - # via - # google-api-core - # huggingface-hub - # langchain - # langchain-community - # langsmith - # pyht - # tiktoken - # transformers -resampy==0.4.3 - # via pipecat-ai (pyproject.toml) -rich==13.7.1 - # via typer -rsa==4.9 - # via google-auth -safetensors==0.4.4 - # via - # timm - # transformers -scipy==1.14.0 - # via pyloudnorm -shellingham==1.5.4 - # via typer -silero-vad==5.1 - # via pipecat-ai (pyproject.toml) -six==1.16.0 - # via python-dateutil -sniffio==1.3.1 - # via - # anthropic - # anyio - # httpx - # openai -sqlalchemy==2.0.32 - # via - # langchain - # langchain-community -starlette==0.37.2 - # via fastapi -sympy==1.13.1 - # via - # onnxruntime - # torch -tenacity==8.5.0 - # via - # langchain - # langchain-community - # langchain-core -tiktoken==0.7.0 - # via langchain-openai -timm==0.9.16 - # via pipecat-ai (pyproject.toml) -tokenizers==0.19.1 - # via - # anthropic - # faster-whisper - # transformers -torch==2.4.0 - # via - # silero-vad - # timm - # torchaudio - # torchvision -torchaudio==2.4.0 - # via silero-vad -torchvision==0.19.0 - # via timm -tqdm==4.66.5 - # via - # google-generativeai - # huggingface-hub - # openai - # transformers -transformers==4.40.2 - # via pipecat-ai (pyproject.toml) -typer==0.12.3 - # via fastapi-cli -typing-extensions==4.12.2 - # via - # anthropic - # anyio - # deepgram-sdk - # fastapi - # google-generativeai - # huggingface-hub - # langchain-core - # openai - # pipecat-ai (pyproject.toml) - # pydantic - # pydantic-core - # sqlalchemy - # torch - # typer - # typing-inspect - # uvicorn -typing-inspect==0.9.0 - # via dataclasses-json -uritemplate==4.1.1 - # via google-api-python-client -urllib3==2.2.2 - # via requests -uvicorn[standard]==0.30.5 - # via - # fastapi - # fastapi-cli -uvloop==0.19.0 - # via uvicorn -verboselogs==1.7 - # via deepgram-sdk -watchfiles==0.23.0 - # via uvicorn -websockets==12.0 - # via - # deepgram-sdk - # pipecat-ai (pyproject.toml) - # uvicorn -werkzeug==3.0.3 - # via flask -yarl==1.9.4 - # via aiohttp - -# The following packages are considered to be unsafe in a requirements file: -# setuptools diff --git a/pyproject.toml b/pyproject.toml index 31ca9294e..994a4b5e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,13 +20,12 @@ classifiers = [ "Topic :: Scientific/Engineering :: Artificial Intelligence" ] dependencies = [ - "aiohttp~=3.9.5", + "aiohttp~=3.10.3", "numpy~=1.26.4", - "loguru~=0.7.0", - "Pillow~=10.3.0", - "protobuf~=4.25.3", + "loguru~=0.7.2", + "Pillow~=10.4.0", + "protobuf~=4.25.4", "pyloudnorm~=0.1.1", - "typing-extensions~=4.12.1", ] [project.urls] @@ -35,24 +34,24 @@ Website = "https://pipecat.ai" [project.optional-dependencies] anthropic = [ "anthropic~=0.34.0" ] -azure = [ "azure-cognitiveservices-speech~=1.38.0" ] +azure = [ "azure-cognitiveservices-speech~=1.40.0" ] cartesia = [ "websockets~=12.0" ] daily = [ "daily-python~=0.10.1" ] -deepgram = [ "deepgram-sdk~=3.2.7" ] -examples = [ "python-dotenv~=1.0.0", "flask~=3.0.3", "flask_cors~=4.0.1" ] +deepgram = [ "deepgram-sdk~=3.5.0" ] +examples = [ "python-dotenv~=1.0.1", "flask~=3.0.3", "flask_cors~=4.0.1" ] fal = [ "fal-client~=0.4.1" ] gladia = [ "websockets~=12.0" ] -google = [ "google-generativeai~=0.7.1" ] -fireworks = [ "openai~=1.35.0" ] -langchain = [ "langchain~=0.2.10", "langchain-community~=0.2.9", "langchain-openai~=0.1.17" ] -local = [ "pyaudio~=0.2.0" ] -moondream = [ "einops~=0.8.0", "timm~=0.9.16", "transformers~=4.40.2" ] -openai = [ "openai~=1.35.0" ] -openpipe = [ "openpipe~=4.18.0" ] +google = [ "google-generativeai~=0.7.2" ] +fireworks = [ "openai~=1.37.2" ] +langchain = [ "langchain~=0.2.14", "langchain-community~=0.2.12", "langchain-openai~=0.1.20" ] +local = [ "pyaudio~=0.2.14" ] +moondream = [ "einops~=0.8.0", "timm~=1.0.8", "transformers~=4.44.0" ] +openai = [ "openai~=1.37.2" ] +openpipe = [ "openpipe~=4.24.0" ] playht = [ "pyht~=0.0.28" ] silero = [ "silero-vad~=5.1" ] together = [ "together~=1.2.7" ] -websocket = [ "websockets~=12.0", "fastapi~=0.111.0" ] +websocket = [ "websockets~=12.0", "fastapi~=0.112.1" ] whisper = [ "faster-whisper~=1.0.3" ] xtts = [ "resampy~=0.4.3" ] diff --git a/src/pipecat/services/whisper.py b/src/pipecat/services/whisper.py index 8313a297b..59ce51a46 100644 --- a/src/pipecat/services/whisper.py +++ b/src/pipecat/services/whisper.py @@ -9,7 +9,7 @@ import asyncio from enum import Enum -from typing_extensions import AsyncGenerator +from typing import AsyncGenerator import numpy as np