/ Модель

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

Контекст
1 024 токена
Параметры
456 млн
Лицензия
MIT
Архитектура
whisper · dense
Базовая модель
whisper-th-medium-combined
Библиотека
transformers
Опубликована
12 сен 2024

whisper-th-medium-timestamp

Распознавание речиАудио → текст5 профессий

Дообученная Whisper Medium распознаёт тайскую речь и выдаёт транскрипцию с приблизительными временными метками.

173скачиваний за 30 дней3лайкавеса обновлены12 сен 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Whisper Medium (Thai) Timestamp — модель Biodatlab для автоматического распознавания тайской речи с временными метками. Это дообученная версия biodatlab/whisper-th-medium-combined на длинных аудиофрагментах, составленных из набора CMKL/Porjai-Thai-voice-dataset-central. Архитектура Whisper Medium содержит около 455,8 млн параметров; модель использует библиотеку Transformers и распространяется в формате safetensors.

Модель предназначена для транскрибации тайской речи, создания субтитров и привязки текста к временным точкам аудио. В README указана оценка WER 15,57 на тестовой части Common Voice 13 с токенизатором Deepcut.

Временные метки приблизительные: при обучении использовались метки, полученные с помощью VAD, а не точная ручная разметка. Точность распознавания и выравнивания может снижаться из-за фонового шума, особенностей дикторов и акустических условий; автор отмечает, что результат распознавания может уступать версии без временных меток. Лицензия — MIT.

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Whisper Medium (Thai) Timestamp

This model is a fine-tuned version of biodatlab/whisper-th-medium-combined on a custom-created longform dataset derived from the CMKL/Porjai-Thai-voice-dataset-central. It achieves the following results on the common-voice-13 test set:

  • WER: 15.57 (with Deepcut Tokenizer)

Model description

This model is designed to perform automatic speech recognition (ASR) for the Thai language, with the added capability of generating timestamps for the transcribed text. It's based on the Whisper medium architecture and has been fine-tuned on a specially crafted dataset to enable timestamp generation.

Use the model with Hugging Face's transformers as follows:

from transformers import pipeline
import torch

MODEL_NAME = "biodatlab/whisper-th-medium-timestamp"  # specify the model name
lang = "th"  # Thai language

device = 0 if torch.cuda.is_available() else "cpu"

pipe = pipeline(
    task="automatic-speech-recognition",
    model=MODEL_NAME,
    chunk_length_s=30,
    device=device,
    return_timestamps=True,
)
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(
  language=lang,
  task="transcribe"
)
result = pipe("audio.mp3", return_timestamps=True)
text = result["text"]
timestamps = result["chunks"]

Intended uses & limitations

This model is intended for Thai automatic speech recognition tasks, particularly where timestamp information is required. It can be used for transcribing Thai audio content, creating subtitles, or any application that needs to align text with specific time points in audio. The model's performance on speech recognition may be lower compared to non-timestamped versions due to the additional complexity of the task and the pseudo-timestamp generation method used in training.

Training and evaluation data

The model was trained on a custom-created longform dataset derived from the CMKL/Porjai-Thai-voice-dataset-central. The dataset creation process involved the following steps:

  • Combining multiple short audio clips from the original dataset into longer audio segments (up to 30 seconds).
  • Adding environmental noises and silences between clips to simulate more realistic speech scenarios.
  • Generating pseudo-timestamps for the combined audio using a Voice Activity Detection (VAD) model (Silero VAD).

This approach allowed us to create a dataset with longer, more diverse audio samples and approximate timestamp information, which is crucial for training a model capable of generating timestamps.

Training procedure

The model was fine-tuned using a custom training script that incorporates the following:

  • Mixed precision training (FP16)
  • Gradient accumulation
  • SpecAugment for data augmentation during training

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • gradient_accumulation_steps: 1
  • num_train_iters: ~50000
  • warmup_steps: 500
  • fp16: True
  • optimizer: AdamW
  • lr_scheduler_type: linear

Framework versions

  • Transformers 4.44.2
  • Pytorch 2.4.1
  • Datasets 3.0.0
  • Tokenizers 0.20.0

Performance and Limitations

The WER (Word Error Rate) of 15.57 on the Common Voice 13 test set indicates good performance for Thai ASR. However, it's important to note that the timestamp generation model has a lower accuracy compared to the non-timestamped version of the model. This is due to several factors:

  • The use of pseudo-timestamps in training data, which are approximations based on VAD rather than precise human annotations.
  • The additional complexity of the timestamp prediction task, which requires the model to learn both transcription and temporal alignment.
  • Potential discrepancies between the VAD-generated timestamps and actual word boundaries in continuous speech.

Users should be aware that while the timestamps provide a general indication of when words or phrases occur in the audio, they may not be as precise as manually annotated timestamps. The model's performance may also vary depending on the acoustic conditions, speaker variability, and the presence of background noise in the input audio.

Citation

If you use this model in your research or applications, please cite it as follows:

@misc{biodatlab_whisper_th_medium_timestamp,
    author       = {Atirut Boribalburephan, Zaw Htet Aung, Knot Pipatsrisawat, Titipat Achakulvisut},
    title        = {Whisper Medium Thai Timestamp: A fine-tuned Whisper model for Thai automatic speech recognition with timestamp generation},
    year         = 2024,
    publisher    = {Hugging Face},
    howpublished = {\url{https://huggingface.co/biodatlab/whisper-th-medium-timestamp}}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
WhisperForConditionalGeneration
Ревизия весов
b88b11d

0 моделей