# Repository: vibevoice-community/VibeVoice
## File Structure
π Root
π EXAMPLES.md
π Figures
  π MOS-preference.png
  π VibeVoice.jpg
  π VibeVoice_logo.png
  π VibeVoice_logo_white.png
π LICENSE
π README.md
π demo
  π example
    π 1p_EN2CH.mp4
    π 2p_see_u_again.mp4
    π 4p_climate_45min.mp4
  π gradio_demo.py
  π inference_from_file.py
  π text_examples
    π 1p_Ch2EN.txt
    π 1p_abs.txt
    π 2p_goat.txt
    π 2p_music.txt
    π 2p_short.txt
    π 2p_yayi.txt
    π 3p_gpt5.txt
    π 4p_climate_100min.txt
    π 4p_climate_45min.txt
  π voices
    π en-Alice_woman.wav
    π en-Carter_man.wav
    π en-Frank_man.wav
    π en-Mary_woman_bgm.wav
    π en-Maya_woman.wav
    π in-Samuel_man.wav
    π zh-Anchen_man_bgm.wav
    π zh-Bowen_man.wav
    π zh-Xinran_woman.wav
π pyproject.toml
π vibevoice
  π __init__.py
  π configs
    π qwen2.5_1.5b_64k.json
    π qwen2.5_7b_32k.json
  π modular
    π __init__.py
    π configuration_vibevoice.py
    π modeling_vibevoice.py
    π modeling_vibevoice_inference.py
    π modular_vibevoice_diffusion_head.py
    π modular_vibevoice_text_tokenizer.py
    π modular_vibevoice_tokenizer.py
    π streamer.py
  π processor
    π __init__.py
    π vibevoice_processor.py
    π vibevoice_tokenizer_processor.py
  π schedule
    π __init__.py
    π dpm_solver.py
    π timestep_sampler.py
  π scripts
    π __init__.py
    π convert_nnscaler_checkpoint_to_transformers.py
Below are the contents of all files in the repository:
### File: EXAMPLES.md
```md
## Examples
**Video Demo**
We produced this video with [Wan2.2](https://github.com/Wan-Video/Wan2.2). We sincerely appreciate the Wan-Video team for their great work.
**English**
https://github.com/user-attachments/assets/0967027c-141e-4909-bec8-091558b1b784
**Chinese**
https://github.com/user-attachments/assets/322280b7-3093-4c67-86e3-10be4746c88f
**Cross-Lingual**
https://github.com/user-attachments/assets/838d8ad9-a201-4dde-bb45-8cd3f59ce722
**Spontaneous Singing**
https://github.com/user-attachments/assets/6f27a8a5-0c60-4f57-87f3-7dea2e11c730
**Long Conversation with 4 people**
https://github.com/user-attachments/assets/a357c4b6-9768-495c-a576-1618f6275727
For more examples, see the [Project Page](https://microsoft.github.io/VibeVoice).
Try it on [Colab](https://colab.research.google.com/github/vibevoice-community/VibeVoice/blob/main/demo/VibeVoice_colab.ipynb).
```
### File: Figures/MOS-preference.png
[Binary file - 67221 bytes]
### File: Figures/VibeVoice.jpg
[Binary file - 342394 bytes]
### File: Figures/VibeVoice_logo.png
[Binary file - 1416808 bytes]
### File: Figures/VibeVoice_logo_white.png
[Binary file - 318208 bytes]
### File: LICENSE
```text
MIT License
Copyright (c) 2025 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
### File: README.md
```md
> [!IMPORTANT]
> This is a community-maintained fork of VibeVoice. Following the removal of the official VibeVoice repository, this fork serves to preserve the codebase and maintain accessibility for the community while also introducing additional functionality (such as unofficial training/fine-tuning implementations)
## ποΈ VibeVoice: A Frontier Long Conversational Text-to-Speech Model
[](https://microsoft.github.io/VibeVoice)
[](https://huggingface.co/vibevoice)
[](https://arxiv.org/pdf/2508.19205)
[](https://colab.research.google.com/github/vibevoice-community/VibeVoice/blob/main/demo/VibeVoice_colab.ipynb)
VibeVoice is a novel framework designed for generating **expressive**, **long-form**, **multi-speaker** conversational audio, such as podcasts, from text. It addresses significant challenges in traditional Text-to-Speech (TTS) systems, particularly in scalability, speaker consistency, and natural turn-taking.
A core innovation of VibeVoice is its use of continuous speech tokenizers (Acoustic and Semantic) operating at an ultra-low frame rate of 7.5 Hz. These tokenizers efficiently preserve audio fidelity while significantly boosting computational efficiency for processing long sequences. VibeVoice employs a [next-token diffusion](https://arxiv.org/abs/2412.08635) framework, leveraging a Large Language Model (LLM) to understand textual context and dialogue flow, and a diffusion head to generate high-fidelity acoustic details.
The model can synthesize speech up to **90 minutes** long with up to **4 distinct speakers**, surpassing the typical 1-2 speaker limits of many prior models.
[Examples](./EXAMPLES.md)
            ποΈ Vibe Podcasting 
            Generating Long-form Multi-speaker AI Podcast with VibeVoice
         
        """)
        
        with gr.Row():
            # Left column - Settings
            with gr.Column(scale=1, elem_classes="settings-card"):
                gr.Markdown("### ποΈ **Podcast Settings**")
                
                # Number of speakers
                num_speakers = gr.Slider(
                    minimum=1,
                    maximum=4,
                    value=2,
                    step=1,
                    label="Number of Speakers",
                    elem_classes="slider-container"
                )
                
                # Speaker selection
                gr.Markdown("### π **Speaker Selection**")
                
                available_speaker_names = list(demo_instance.available_voices.keys())
                # default_speakers = available_speaker_names[:4] if len(available_speaker_names) >= 4 else available_speaker_names
                default_speakers = ['en-Alice_woman', 'en-Carter_man', 'en-Frank_man', 'en-Maya_woman']
                speaker_selections = []
                for i in range(4):
                    default_value = default_speakers[i] if i < len(default_speakers) else None
                    speaker = gr.Dropdown(
                        choices=available_speaker_names,
                        value=default_value,
                        label=f"Speaker {i+1}",
                        visible=(i < 2),  # Initially show only first 2 speakers
                        elem_classes="speaker-item"
                    )
                    speaker_selections.append(speaker)
                
                # Advanced settings
                gr.Markdown("### βοΈ **Advanced Settings**")
                
                # Sampling parameters (contains all generation settings)
                with gr.Accordion("Generation Parameters", open=False):
                    cfg_scale = gr.Slider(
                        minimum=1.0,
                        maximum=2.0,
                        value=1.3,
                        step=0.05,
                        label="CFG Scale (Guidance Strength)",
                        # info="Higher values increase adherence to text",
                        elem_classes="slider-container"
                    )
                
            # Right column - Generation
            with gr.Column(scale=2, elem_classes="generation-card"):
                gr.Markdown("### π **Script Input**")
                
                script_input = gr.Textbox(
                    label="Conversation Script",
                    placeholder="""Enter your podcast script here. You can format it as:
Speaker 1: Welcome to our podcast today!
Speaker 2: Thanks for having me. I'm excited to discuss...
Or paste text directly and it will auto-assign speakers.""",
                    lines=12,
                    max_lines=20,
                    elem_classes="script-input"
                )
                
                # Button row with Random Example on the left and Generate on the right
                with gr.Row():
                    # Random example button (now on the left)
                    random_example_btn = gr.Button(
                        "π² Random Example",
                        size="lg",
                        variant="secondary",
                        elem_classes="random-btn",
                        scale=1  # Smaller width
                    )
                    
                    # Generate button (now on the right)
                    generate_btn = gr.Button(
                        "π Generate Podcast",
                        size="lg",
                        variant="primary",
                        elem_classes="generate-btn",
                        scale=2  # Wider than random button
                    )
                
                # Stop button
                stop_btn = gr.Button(
                    "π Stop Generation",
                    size="lg",
                    variant="stop",
                    elem_classes="stop-btn",
                    visible=False
                )
                
                # Streaming status indicator
                streaming_status = gr.HTML(
                    value="""