Skip to content
项目

关于

首个全双工对话音频基础模型

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
+4

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

hertz-dev

Hertz-dev is an open-source, first-of-its-kind base model for full-duplex conversational audio.

See our blog post for more details: https://si.inc/hertz-dev/

Setup

Inference is known to work on Python 3.10 and CUDA 12.1. Other versions have not been tested as thoroughly. If you want to use CUDA 12.1, you'll need to install torch with pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 before running pip install -r requirements.txt.

On Ubuntu you may need to install libportaudio: sudo apt-get install libportaudio2

All three scripts will automatically download the models to the ./ckpt directory, and checkpoints are also accessible at https://ckpt.si.inc/hertz-dev/index.txt

Usage

We recommend starting by using inference.ipynb to generate one- or two-channel completions from a prompt.

Then, you can use inference_client.py and inference_server.py to talk to the model live through your microphone. These are currently experimental, and have primarily been tested with Ubuntu on the server and MacOS on the client.

Alternatively, you can use inference_client_webrtc.py, which is built on streamlit + streamlit-webrtc and runs in a browser:

# Install additional requirements
pip install -r requirements_webrtc.txt
# Run the client
streamlit run inference_client_webrtc.py

Then, access the client at http://localhost:8501.

Note: If you host the streamlit client anywhere other than localhost you will need to connect with https to avoid errors (see here for more info). An easy workaround is to ssh from the client into the server with port forwarding ssh -L 127.0.0.1:8501:remote-host:8501 user@remote-host, after which you can access the client at http://localhost:8501 as usual. If serving from a remote host with https, you may need to use a STUN server to establish the connection. You can do this by passing the --use_ice_servers flag: streamlit run inference_client_webrtc.py -- --use_ice_servers.

探索相关项目

加载中…