/ Модель

Характеристики

Контекст
131 072 токена
Параметры
498 млн
Лицензия
CC BY-NC-SA 4.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2-0.5B
Опубликована
14 дек 2024

viitor-voice-mix

Генерация текстаТекст → текст3 профессии

Компактная дообученная модель Viitor на базе Qwen2 для потокового синтеза китайской и английской речи с выбором голоса и настройкой темпа.

22скачиваний за 30 дней5лайковвеса обновлены14 дек 2024

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

viitor-voice-mix — компактная модель синтеза речи, разработанная проектом Viitor. Она построена на архитектуре Qwen2 и содержит около 498 млн параметров. Модель преобразует текст на китайском и английском языках в речь; заявлены потоковая генерация с низкой задержкой, более 300 вариантов голоса и настройка скорости речи. Также поддерживается клонирование голоса без предварительного обучения на образце, но эта возможность обозначена авторами как исследовательская.

Модель предназначена для генерации речи в интерактивных приложениях, озвучивания презентаций и развлекательного контента, а также для развертывания на серверных и периферийных устройствах. В README заявлена задержка первого аудиокадра 200 мс на Tesla T4. Веса опубликованы в формате safetensors; лицензия CC BY-NC-SA 4.0 требует указания авторства, распространения производных материалов на тех же условиях и запрещает коммерческое использование.

Сценарии применения

  • озвучивание текста на китайском языке
  • озвучивание текста на английском языке
  • потоковая речь для интерактивных приложений
  • генерация речи с выбором из библиотеки голосов
  • настройка скорости синтезированной речи
  • экспериментальное клонирование голоса по образцу

Ограничения

Клонирование голоса без предварительного обучения обозначено авторами как исследовательская возможность. Лицензия CC BY-NC-SA 4.0 не допускает коммерческого использования.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ViiTor-Voice

An LLM based TTS Engine

Update

  • 2024.12.14:
    • demo
    • Adjusted model input by removing speaker embeddings (we found that existing open-source speaker models struggle to capture speaker characteristics effectively and have limited generalization capabilities).
    • Supports zero-shot voice cloning.
    • Supports both Chinese and English languages.

Features

  • Lightweight Design

    The model is simple and efficient, compatible with most LLM inference engines. With only 0.5B parameters, it achieves extreme optimization of computational resources while maintaining high performance. This design allows the model to be deployed not only on servers but also on mobile devices and edge computing environments, meeting diverse deployment needs.

  • Real-time Streaming Output, Low Latency Experience

    The model supports real-time speech generation, suitable for applications that demand low latency. On the Tesla T4 platform, it achieves an industry-leading first-frame latency of 200ms, providing users with nearly imperceptible instant feedback, ideal for interactive applications requiring quick response.

  • Rich Voice Library

    Offers more than 300 different voice options, allowing you to choose the most suitable speech style according to your needs and preferences. Whether it’s a formal business presentation or casual entertainment content, the model provides perfect voice matching.

  • Flexible Speech Rate Adjustment

    The model supports natural variations in speech rate, allowing users to easily adjust it based on content requirements and audience preferences. Whether speeding up for efficient information delivery or slowing down to enhance emotional depth, it maintains natural speech fluency.

  • Zero-shot Voice Cloning (Under Research)

    Decoder-only architecture naturally supports Zero-shot cloning, with future support for rapid voice cloning based on minimal voice samples.


Output Samples

Below are examples of speech generated by this project:

English Female Voice 1:

https://github.com/user-attachments/assets/395bcdeb-1899-43b2-aff9-358bdc5f1c29

English Male Voice 1:

https://github.com/user-attachments/assets/d373f2fd-4b35-4b42-983f-3a5f0c25779d

Chinese Female Voice 1:

https://github.com/user-attachments/assets/94d6da03-bc71-4f7c-8453-9312a1eb6d1e

Chinese Male Voice 1:

https://github.com/user-attachments/assets/8a03785b-8100-48fe-8d64-fd98406aab1d


Environment Setup

git clone https://github.com/viitor-ai/viitor-voice.git
cd viitor-voice
conda create -n viitor_voice python=3.10
conda activate viitor_voice
pip install -r requirements.txt

### Due to the issue with vllm's tokenizer length calculation, the token limit cannot take effect.
python_package_path=`pip show pip | egrep Location | awk -F ' ' '{print $2}'`
cp viitor_voice/utils/patch.py $python_package_path/vllm/entrypoints/openai/logits_processors.py

Inference

Pretrained Models

Offline Inference

For GPU users

from viitor_voice.inference.vllm_engine import VllmEngine
import torchaudio

tts_engine = VllmEngine(model_path="ZzWater/viitor-voice-mix")

## chinese example
ref_audio = "reference_samples/reference_samples/chinese_female.wav"
ref_text = "博士,您工作辛苦了!"
text_list = ["我觉得我还能抢救一下的!", "我…我才不要和你一起!"]
audios = tts_engine.batch_infer(text_list, ref_audio, ref_text)
for i, audio in enumerate(audios):
    torchaudio.save('test_chinese_{}.wav'.format(i), audios[0], 24000)


# english example
ref_audio = "reference_samples/reference_samples/english_female.wav"
ref_text = "At dinner, he informed me that he was a trouble shooter for a huge international organization."
text_list = ["Working overtime feels like running a marathon with no finish line in sight—just endless tasks and a growing sense that my life is being lived in the office instead of the real world."]
audios = tts_engine.batch_infer(text_list, ref_audio, ref_text)
for i, audio in enumerate(audios):
    torchaudio.save('test_english_{}.wav'.format(i), audios[0], 24000)    

For CPU users

from viitor_voice.inference.transformers_engine import TransformersEngine
import torchaudio

tts_engine = TransformersEngine(model_path="ZzWater/viitor-voice-mix", device='cpu')

## chinese example
ref_audio = "reference_samples/reference_samples/chinese_female.wav"
ref_text = "博士,您工作辛苦了!"
text_list = ["我觉得我还能抢救一下的!", "我…我才不要和你一起!"]
audios = tts_engine.batch_infer(text_list, ref_audio, ref_text)
for i, audio in enumerate(audios):
    torchaudio.save('test_chinese_{}.wav'.format(i), audios[0], 24000)


# english example
ref_audio = "reference_samples/reference_samples/english_female.wav"
ref_text = "At dinner, he informed me that he was a trouble shooter for a huge international organization."
text_list = [" Working overtime feels like running a marathon with no finish line in sight", " Just endless tasks and a growing sense that my life is being lived in the office instead of the real world."]
audios = tts_engine.batch_infer(text_list, ref_audio, ref_text)
for i, audio in enumerate(audios):
    torchaudio.save('test_english_{}.wav'.format(i), audios[0], 24000)    

Gradio Demo

python gradio_demo.py

Demo Inference

Streaming Inference (TODO)


Training

Join Our Community

Join Discord

Have questions about the project? Want to discuss new features, report bugs, or just chat with other contributors? Join our Discord community!

References

License

This project is licensed under CC BY-NC 4.0.
You are free to share and modify the code of this project for non-commercial purposes, under the following conditions:

  1. Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made.
  2. Non-Commercial: You may not use the material for commercial purposes.

Copyright Notice:
© 2024 Livedata. All Rights Reserved.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
1cdbe3d

0 моделей