Don't install moshi from Git

This commit is contained in:
Václav Volhejn 2025-07-03 13:32:27 +02:00
parent 3573ee90af
commit 8e07dd55a3
4 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ runs:
. env/bin/activate . env/bin/activate
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install torch==2.4.0 --index-url https://download.pytorch.org/whl/cpu pip install torch==2.4.0 --index-url https://download.pytorch.org/whl/cpu
pip install moshi==0.2.6 pip install moshi==0.2.7
pip install pre-commit pip install pre-commit
- name: Setup env - name: Setup env
shell: bash shell: bash

View File

@ -1,7 +1,7 @@
# /// script # /// script
# requires-python = ">=3.12" # requires-python = ">=3.12"
# dependencies = [ # dependencies = [
# "moshi @ git+https://git@github.com/kyutai-labs/moshi#egg=moshi&subdirectory=moshi", # "moshi==0.2.7",
# "torch", # "torch",
# "sphn", # "sphn",
# "sounddevice", # "sounddevice",

View File

@ -127,6 +127,7 @@ async def websocket_client():
async with websockets.connect(uri, additional_headers=headers) as websocket: async with websockets.connect(uri, additional_headers=headers) as websocket:
await websocket.send(msgpack.packb({"type": "Text", "text": text_to_tts})) await websocket.send(msgpack.packb({"type": "Text", "text": text_to_tts}))
await websocket.send(msgpack.packb({"type": "Eos"})) await websocket.send(msgpack.packb({"type": "Eos"}))
# await websocket.send(msgpack.packb({"type": "invalidmessage"}))
output_queue = asyncio.Queue() output_queue = asyncio.Queue()
receive_task = asyncio.create_task(receive_messages(websocket, output_queue)) receive_task = asyncio.create_task(receive_messages(websocket, output_queue))

View File

@ -7,7 +7,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"!pip install \"git+https://git@github.com/kyutai-labs/moshi#egg=moshi&subdirectory=moshi\"" "!pip install \"moshi==0.2.7\""
] ]
}, },
{ {