SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.16973 · 2024

VoiceCraft: Zero-Shot Speech Editing and Text-to-Speech in the Wild

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 8 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
jasonppy/voicecraft canonical 8 of 9
FunctionStatusWhere it lives
find_closest_cut_off_word Ran jasonppy/voicecraft/predict.py
pointer only (licence: NONE) · get_code("06244bf64882ebfe")
get_mask_interval Ran jasonppy/voicecraft/inference_speech_editing_scale.py
pointer only (licence: NOASSERTION) · get_code("69fc23269eca855d")
get_mask_interval_from_word_bounds Ran jasonppy/voicecraft/predict.py
pointer only (licence: NONE) · get_code("e0162cfc7ba3b31c")
get_span Ran jasonppy/voicecraft/edit_utils.py
pointer only (licence: NONE) · get_code("ae9e5db4e53c6dce")
get_transcribe_state Ran jasonppy/voicecraft/gradio_app.py
pointer only (licence: NONE) · get_code("a6e1062a6dea09b3")
get_transcribe_state Ran jasonppy/voicecraft/predict.py
pointer only (licence: NONE) · get_code("76f8432650c37dd1")
top_k_top_p_filtering Ran jasonppy/voicecraft/models/voicecraft.py
pointer only (licence: NONE) · get_code("99a311d99448f881")
topk_sampling Ran jasonppy/voicecraft/models/voicecraft.py
pointer only (licence: NONE) · get_code("fb8e21d446dcf26f")
find_closest_word_boundary Not yet run jasonppy/voicecraft/tts_demo.py
pointer only (licence: NONE) · get_code("d3cb669c6fbc4bf8")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce VoiceCraft, a token infilling neural codec language model, that achieves state-of-the-art performance on both speech editing and zero-shot text-to-speech (TTS) on audiobooks, internet videos, and podcasts. VoiceCraft employs a Transformer decoder architecture and introduces a token rearrangement procedure that combines causal masking and delayed stacking to enable generation within an existing sequence. On speech editing tasks, VoiceCraft produces edited speech that is nearly indistinguishable from unedited recordings in terms of naturalness, as evaluated by humans; for zero-shot TTS, our model outperforms prior SotA models including VALLE and the popular commercial model XTTS-v2. Crucially, the models are evaluated on challenging and realistic datasets, that consist of diverse accents, speaking styles, recording conditions, and background noise and music, and our model performs consistently well compared to other models and real recordings. In particular, for speech editing evaluation, we introduce a high quality, challenging, and realistic dataset named RealEdit. We encourage readers to listen to the demos at https://jasonppy.github.io/VoiceCraft_web.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.16973")
get_code_for_paper("2403.16973")
have("2403.16973")

Connect an agent — have() is free.