← 开源

A novel human-interaction method for real-time speech extraction on headphones.

Python
增长势头
+024 小时新增 Star0.0%
617
Star
66
Fork
+1
本周
3
贡献者
创建于 2024-05-10 · 更新于 2026-12-01 · 今日第 20510 名
主要开发者
vb000maxxiebMambaWong
README

Look Once to Hear

This repository provides code for the paper, Look Once to Hear: Target Speech Hearing with Noisy Examples. Look Once to Hear is an intelligent hearable system where users choose to hear a target speaker by just looking at them for a few seconds. This paper won best paper honorable mention 🏆 at CHI 2024.

loh.mov

Setup

conda create -n ts-hear python=3.9
conda activate ts-hear
pip install -r requirements.txt

Data preparation

To rebuild all datasets from scratch, follow data/README.md.

Training

Training data includes clean speech, background sounds, head-related transfer functions (HRTFs) and binaural room impulse responses (BRIRs). We use Scaper toolkit to synthetically generate audio mixtures. Each audio mixture is generated on-the-fly, during training or evaluation, using Scaper's generate_from_jams function on a .jams specification file.

We provide self-contained datasets here, with the source .jams specifications we used for training. To perform a training run, it is sufficient to download MixLibriSpeech.tar provided there, extract the contents to data/ directory and run this command:

python -m src.trainer --config <configs/tsh.json> --run_dir <runs/tsh> [--frac <0.05 (% train/val batches)>]

To resume a partial run:

python -m src.trainer --config <configs/tsh.json> --run_dir <runs/tsh>

Evaluation

Evaluation is done on speech mixture in similar format as training samples.

python -m src.ts_hear_test
排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载