百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hibiki

> 编程语言
开源

Hibiki 是流式语音翻译 (也称为同声传译) 的典范。与离线翻译不同,离线翻译需要等待源语言结束,然后再进行目标语言翻译。

1.5K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Hibiki 是流式语音翻译 (也称为同声传译) 的典范。与离线翻译不同,离线翻译需要等待源语言结束,然后再进行目标语言翻译。

# Hibiki: High-Fidelity Simultaneous Speech-To-Speech Translation [[Read the paper]][hibiki] [[Samples]](https://huggingface.co/spaces/kyutai/hibiki-samples) [[HuggingFace]](https://huggingface.co/collections/kyutai/hibiki-fr-en-67a48835a3d50ee55d37c2b5) ## Description ### What is Hibiki? Hibiki is a model for **streaming speech translation** (also known as *simultaneous* translation). Unlike offline translation—where one waits for the end of the source utterance to start translating--- Hibiki **adapts its flow** to accumulate just enough context to produce a correct translation in real-time, chunk by chunk. As the user speaks, Hibiki generates natural speech in the target language, optionally with voice transfer, **along with a text translation**. ### Architecture Hibiki is a decoder-only model for simultaneous speech translation. Hibiki leverages the **multistream** architecture of [Moshi](https://arxiv.org/abs/2410.00037) to model source and target speech jointly. This allows Hibiki to continuously process the input stream while generating the target speech. Hibiki produces text and audio tokens at a constant framerate of 12.5Hz. This allows for a continuous output audio stream, along with timestamped text translation.

### How is it trained? Hibiki relies on supervised training of aligned source speech and target speech and text, from the same speaker. Such data does not exist in significant amounts so we rely on synthetic data generation. Word-level matching is made between source and target transcripts using a *contextual alignment* weakly-supervised method that leverages an off-the-shelf [MADLAD](https://huggingface.co/google/madlad400-3b-mt) machine translation system. The derived alignment rule (a word should only appear in the target once it's predictable from the source) is applied either by inserting silences or by synthesizing targets with a voice controlled, alignment-aware TTS. ### Inference At inference, Hibiki continuously encodes source speech and produces target speech. Hibiki relies on simple temperature sampling and is thus compatible with batching unlike models that rely on complex inference policies. Moreover, the fidelity of Hibiki's voice transfer can be controlled by changing the coefficient of the Classifier-Free Guidance: a larger coefficient will increase voice similarity, but excessive coefficients can lead to worse translations. Hibiki currently only supports French-to-English translation. Its smaller alternative, Hibiki-M can run locally on smartphone hardware. Current models were trained on sequences up to 120 seconds and use a context size of 40 seconds. ## Running the model We provide inference code for PyTorch, Rust, MLX for macOS, and MLX-swift for iOS. Note that the implementation for Hibiki is very close to that of Moshi, and the actual code is in the [kyutai-labs/moshi](https://github.com/kyutai-labs/moshi) repository. ### PyTorch In order to translate an audio file using Hibiki/PyTorch, install the `moshi` package via. ```bash pip install -U moshi ``` Then you can retrieve some sample files from [kyutai-labs/moshi](https://github.com/kyutai-labs/moshi/tree/main/data) and translate them via the following: ```bash wget https://github.com/kyutai-labs/moshi/raw/refs/heads/main/data/sample_fr_hibiki_crepes.mp3 python -m moshi.run_inference sample_fr_hibiki_crepes.mp3 out_en.wav --hf-repo kyutai/hibiki-1b-pytorch-bf16 ``` You can specify some classifier-free guidance using the `--cfg-coef` parameter. The default value is 1, the higher the value, the closer the generated voice should be to the original voice. A typical value to use is 3. ### MLX In order to translate an audio file using Hibiki/MLX, install the `moshi_mlx` package via the following command. You need at least version `0.2.1` of this package. ```bash pip install -U moshi_mlx ``` Then you can retrieve some sample files from [kyutai-labs/moshi](https://github.com/kyutai-labs/moshi/tree/main/data) and translate them via the following: ```bash wget https://github.com/kyutai-labs/moshi/raw/refs/heads/main/data/sample_fr_hibiki_crepes.mp3 python -m moshi_mlx.run_inference sample_fr_hibiki_crepes.mp3 out_en.wav --hf-repo kyutai/hibiki-1b-mlx-bf16 ``` You can specify some classifier-free guidance using the `--cfg-coef` parameter. The default value is 1, the higher the value, the closer the generated voice should be to the original voice. A typical value to use is 3. You can also use the model in real-time via the web-ui by running the following command. ```bash python -m moshi_mlx.local_web --hf-repo kyutai/hibiki-1b-mlx-bf16 ``` ### MLX-Swift The [kyutai-labs/moshi-swift](https://github.com/kyutai-labs/moshi-swift) repo contains a MLX-Swift implementation that can run on an iPhone. This was tested on an iPhone 16 Pro. Note that this code there is very much experimental. ### Rust The [hibiki-rs](https://github.com/kyutai-labs/hibiki/tree/main/hibiki-rs) directory contains a simple Rust app that generates a translation based on an original audio file. You can use either `--features cuda` to run on a nvidia gpu, or `--features metal` to run on a mac. ```bash cd hibiki-rs wget https://github.com/kyutai-labs/moshi/raw/refs/heads/main/data/sample_fr_hibiki_crepes.mp3 cargo run --features metal -r -- gen sample_fr_hibiki_crepes.mp3 out_en.wav ``` ## Models We release two models for `FR -> EN` translation: - Hibiki 2B (for the backbone, a bit more with the depth transformer), 16 RVQ per stream. - Hibiki 1B (for the backbone, a bit more with the depth transformer), 8 RVQ per stream, ideal for on device inferencde. Depending on the backend, the file format will vary. Quantized models coming up soon. Current list of models: - Hibiki 2B for PyTorch (bf16): [kyutai/hibiki-2b-pytorch-bf16](https://huggingface.co/kyutai/hibiki-2b-pytorch-bf16) - Hibiki 1B for PyTorch (bf16): [kyutai/hibiki-1b-pytorch-bf16](https://huggingface.co/kyutai/hibiki-1b-pytorch-bf16) - Hibiki 2B for MLX (bf16): [kyutai/hibiki-2b-mlx-bf16](https://huggingface.co/kyutai/hibiki-2b-mlx-bf16) - Hibiki 1B for MLX (bf16): [kyutai/hibiki-1b-mlx-bf16](https://huggingface.co/kyutai/hibiki-1b-mlx-bf16) All models are released under the CC-BY 4.0 license. ## License The present code is provided under the MIT license for the Python parts, and Apache license for the Rust backend. The web client code is provided under the MIT license. The weights for the models are released under the CC-BY 4.0 license. ## Citation If you use Hibiki, please cite the following paper, ``` @misc{kyutai2025hibiki, title={High-Fidelity Simultaneous Speech-To-Speech Translation}, author={Tom Labiausse and Laurent Mazar\'e and Edouard Grave and Patrick P\'erez and Alexandre D\'efossez and Neil Zeghidour}, year={2025}, eprint={2502.03382}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2502.03382}, } ``` [hibiki]: https://arxiv.org/abs/2502.03382

GitHub Issues· 11 开放

在 GitHub 查看全部
  • #19

    Docs: improve README discoverability for GitHub visitors

    更新于 2026年7月8日
  • #13

    Training code

    更新于 2025年11月13日
  • #18

    Dataset

    更新于 2025年11月3日
  • #1

    Training Code

    更新于 2025年7月16日
  • #17

    Minimum local vram for low latency conversation?

    更新于 2025年7月16日
  • #6

    Supported languages

    更新于 2025年4月28日
  • #14

    Peaks and drops in the alignment graph

    更新于 2025年4月16日
  • #15

    Finetune code

    更新于 2025年4月16日
  • #4

    Overall algorithmic delay

    更新于 2025年4月4日
  • #2

    android

    更新于 2025年2月6日

核心特点

  • •Hibiki 2B (for the backbone, a bit more with the depth transformer), 16 RVQ per stream.
  • •Hibiki 1B (for the backbone, a bit more with the depth transformer), 8 RVQ per stream, ideal for on device inferencde.
  • •Hibiki 2B for PyTorch (bf16): kyutai/hibiki-2b-pytorch-bf16
  • •Hibiki 1B for PyTorch (bf16): kyutai/hibiki-1b-pytorch-bf16
  • •Hibiki 2B for MLX (bf16): kyutai/hibiki-2b-mlx-bf16
  • •Hibiki 1B for MLX (bf16): kyutai/hibiki-1b-mlx-bf16

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言