Models, data and API for Bulgarian speech
Everything you need to use, check or build on the models. The models are on the BRAIN++ portal and on Hugging Face under the MIT licence and can be used freely, commercial use included. The demos run on the BRAIN++ portal, and speech recognition is also available through our inference server.
Models
| Model | Task | Architecture and size | Runs on | Status | Licence | Links |
|---|---|---|---|---|---|---|
| bgmstress | Text → text with stress marks | Neural model + dictionary; small 18 MB, base 100 MB, large 240 MB (ONNX) | CPU, no GPU | Available | MIT | Portal Hugging Face |
| bgmtts | Text → speech, female and male voice | Voice 12 MB + stress 18 MB (ONNX); normaliser for numbers, dates, units, abbreviations | CPU and browser | Available | MIT | Portal Hugging Face |
| bgmasr | Speech → text, speaker separation | ~0.2 billion parameters; punctuation, per-word timestamps; optional KenLM | CPU and GPU; web demo and our inference server (API) | Available | MIT | Portal Hugging Face |
| bg-s2s | Speech → speech, dialogue | 6 billion parameters; websocket with PCM audio in 50 ms chunks; ~800 ms to response on an RTX 5090 | GPU server | In development | to come | How we measure |
What they can do
- Stress marking that tells homographs apart from context
- Text normaliser: numbers, dates, abbreviations, mixed Bulgarian and English
- Recognition with a separate head for speaker changes (marker |) and speaker clustering
- A language model (5-gram KenLM) after recognition: fixes about 300 of 9,500 words per hour of audio
- ASR speed: 3 minutes of audio in 1–3 s, 1 hour in 11–13 s
Known limitations
- ASR: mixed Bulgarian and English; also picks up background voices
- ASR: meetings with many speakers remain the hardest case
- TTS: sometimes “overacts”, not ready for audiobooks yet
- S2S: in active development, no public release
How it is built
Browser
TTS runs locally. The text never leaves the device.
BRAIN++ portal
This page and the demos. Static content behind a CDN.
Separate API server
ASR with a queue on its own virtual machine. Traffic peaks do not affect the portal.
BRAIN++ cluster
H200 and B200 GPUs for training and recognition; 1,128 AMD EPYC CPUs for data processing.
Data and rights
Every batch of recordings has a manifest with its rights class. For prototypes we use everything available, but only a model whose whole lineage is green gets a public release. The strictest parent wins: if the data, the base model or the teacher model is red, the result is red too.
Green – gets published
Common Voice, FLEURS, recordings with consent, National Assembly, municipal councils
Yellow – prototype only
Local TV stations, synthetic audio from open models – until the rights are confirmed
Red – never in a public model
Audiobooks, TV and radio without rights, outputs of closed models
How we measure
One shared benchmark calls every model through the common API, runs the same frozen tests and records the numbers in a public table. Test data never goes into training. Then people take over: listeners compare the models against a recording of the same text read by a person.
| Direction | What we measure | Tests |
|---|---|---|
| ASR | Word error rate (WER) overall and by audio type; invented words in silence; speed | FLEURS, Common Voice; news, podcast, phone call; a real noisy test set from 30–40 municipalities, checked by volunteers |
| TTS | Intelligibility, stress, numbers, time to first sound. Target: ≥98% correct numbers and ≥95% correct stress on homographs | A control text with numbers, names and tricky stress; blind comparison by listeners |
| S2S | Task completion, answer quality, time to first sound | to come |
Results table soon
Links
BRAIN++ portal
The models, the demos and the inference server
The models on the portal
AvailableModel pages on the BRAIN++ portal: bgmstress · bgmtts · bgmasr
portal.brain-plus.aiDemo: text to speech
LiveBulgarian speech synthesis, with two voices.
portal.brain-plus.ai/spaces/bgmtts-demoDemo: speech to text
LiveUpload a recording and see the transcript with speaker separation.
portal.brain-plus.ai/spaces/bgmasr-demoDemo: stress marks
LiveAdding stress marks to text.
portal.brain-plus.ai/spaces/bgmstress-demoInference server (API)
LiveSpeech recognition (bgmasr) through an API compatible with Whisper / OpenAI.
How to use it ↓Hugging Face
The models to download
bgmstress
AvailableStress marks in text, telling homographs apart. MIT licence.
huggingface.co/monydochev/bgmstressHugging Face · monydochev
AvailableAll models: weights, model cards and examples.
huggingface.co/monydochevbgmtts
AvailableText to speech, with a female and a male voice. MIT licence.
huggingface.co/monydochev/bgmttsbgmasr
AvailableSpeech to text with speaker separation. MIT licence.
huggingface.co/monydochev/bgmasrSpeech recognition API
The interface follows the Whisper / OpenAI transcription format, so existing clients and libraries work unchanged. Requests go through a queue: under load you get your answer a little later, not an error.
- Access
- On request – write to us at office@brainplusplus.bg
- Address and key
- Provided on request
- Formats
- wav, mp3, m4a, ogg
- Limits
- Agreed per request
TTS needs no API: it runs in the browser or on an ordinary CPU with onnxruntime. It installs as a Python package from Hugging Face.
# the address and key are provided on request curl "$GLAS_BG_API/v1/audio/transcriptions" \ -H "Authorization: Bearer $GLAS_BG_KEY" \ -F model="bgmasr" \ -F file="@zapis.wav" \ -F response_format="verbose_json"python · openai client
from openai import OpenAI
client = OpenAI(base_url=GLAS_BG_API + "/v1", api_key=GLAS_BG_KEY)
with open("zapis.wav", "rb") as f:
r = client.audio.transcriptions.create(model="bgmasr", file=f)
print(r.text) # a speaker change is marked with " | "
TTS · installpip install https://huggingface.co/monydochev/bgmtts/resolve/main/bgmtts-0.1.0-py3-none-any.whl # usage: see the model page on the BRAIN++ portal (portal.brain-plus.ai/r/bgmtts) or on Hugging Face
How to take part
Code and experiments
Open an “exp: …” issue in GitLab with a hypothesis, data and a base model. The script records the recipe; the benchmark gives the number.
Data
Hand over the recordings unchanged, with a MANIFEST.yaml and a proposed rights class. Every batch is backed up.
Checking and listening
The annotation tool works fully with a keyboard and a screen reader (NVDA, JAWS, TalkBack).
Contact
Модели, данни и API за български говор
Всичко, което ви трябва, за да ползвате, проверите или доразвиете моделите. Моделите са в портала на BRAIN++ и в Hugging Face под лиценз MIT и могат да се ползват свободно, включително за търговски цели. Демата работят в портала на BRAIN++, а разпознаването на реч е достъпно и през нашия сървър за инференс.
Модели
| Модел | Задача | Архитектура и размер | Къде работи | Статус | Лиценз | Връзки |
|---|---|---|---|---|---|---|
| bgmstress | Текст → текст с ударения | Невронен модел + речник; small 18 MB, base 100 MB, large 240 MB (ONNX) | Процесор, без GPU | Наличен | MIT | Портал Hugging Face |
| bgmtts | Текст → реч, женски и мъжки глас | Глас 12 MB + ударения 18 MB (ONNX); нормализатор на числа, дати, единици, съкращения | Процесор и браузър | Наличен | MIT | Портал Hugging Face |
| bgmasr | Реч → текст, разделяне по говорещи | ~0,2 млрд. параметъра; пунктуация, време за всяка дума; KenLM по избор | Процесор и GPU; уеб демо и наш сървър за инференс (API) | Наличен | MIT | Портал Hugging Face |
| bg-s2s | Реч → реч, диалог | 6 млрд. параметъра; websocket с PCM аудио на парчета от 50 ms; ~800 ms до отговор на RTX 5090 | Сървър с GPU | В разработка | предстои | Как мерим |
Какво умеят
- Ударения с различаване на омографи по контекст
- Нормализатор на текст: числа, дати, съкращения, смесен български и английски
- Разпознаване с отделна глава за смяна на говорещ (маркер |) и групиране на говорещите
- Езиков модел (5-грамен KenLM) след разпознаването: оправя около 300 от 9 500 думи в час запис
- Скорост на ASR: 3 минути запис за 1-3 s, 1 час за 11-13 s
Известни ограничения
- ASR: смесен български и английски; улавя и фонови гласове
- ASR: срещи с много говорещи остават най-трудният случай
- TTS: понякога „преиграва“ – още не е за аудиокниги
- S2S: в активна разработка, без публична версия
Как е устроено
Браузър
TTS се изпълнява локално. Текстът не напуска устройството.
Портал BRAIN++
Тази страница и демата. Статично съдържание зад CDN.
Отделен API сървър
ASR с опашка на собствена виртуална машина. Пикът на трафик не засяга портала.
Клъстер BRAIN++
GPU H200 и B200 за обучение и разпознаване; 1 128 процесора AMD EPYC за обработка на данни.
Данни и права
Всяка партида записи има манифест с клас на правата. За прототипите ползваме всичко налично, но публична версия получава само модел, при който цялото родословие е зелено. Най-строгият родител печели: ако данните, базовият модел или моделът-учител са червени, и резултатът е червен.
Зелено – публикува се
Common Voice, FLEURS, записи със съгласие, Народно събрание, общински съвети
Жълто – само за прототип
Местни телевизии, синтетичен звук от отворени модели – до потвърждение на правата
Червено – никога в публичен модел
Аудиокниги, ТВ и радио без права, изходи на затворени модели
Как мерим
Един общ измервател вика всеки модел през общия API, пуска едни и същи замразени тестове и записва числата в публична таблица. Тестовите данни никога не влизат в обучението. После идва човекът: слушатели сравняват моделите срещу запис на същия текст, прочетен от човек.
| Направление | Какво мерим | Тестове |
|---|---|---|
| ASR | Грешни думи (WER) общо и по вид звук; измислени думи в тишина; скорост | FLEURS, Common Voice; новини, подкаст, телефонен разговор; реален шумен тест от 30-40 общини, проверен от доброволци |
| TTS | Разбираемост, ударения, числа, време до първи звук. Цел: ≥98% верни числа и ≥95% верни ударения при омографи | Контролен текст с числа, имена и трудни ударения; сляпо сравнение от слушатели |
| S2S | Изпълнена задача, качество на отговора, време до първи звук | предстои |
Таблица с резултати скоро
Връзки
Портал BRAIN++
Моделите, демата и сървърът за инференс
Моделите в портала
НаличноСтраници на моделите в портала на BRAIN++: bgmstress · bgmtts · bgmasr
portal.brain-plus.aiДемо: текст в реч
РаботиБългарски синтез на реч, с два гласа.
portal.brain-plus.ai/spaces/bgmtts-demoДемо: реч в текст
РаботиКачете запис и вижте транскрипцията с разделяне по говорещи.
portal.brain-plus.ai/spaces/bgmasr-demoДемо: ударения
РаботиПоставяне на ударения в текст.
portal.brain-plus.ai/spaces/bgmstress-demoСървър за инференс (API)
РаботиРазпознаване на реч (bgmasr) през API, съвместим с Whisper / OpenAI.
Как се ползва ↓Hugging Face
Моделите за изтегляне
bgmstress
НаличноУдарения в текст, с различаване на омографи. Лиценз MIT.
huggingface.co/monydochev/bgmstressHugging Face · monydochev
НаличноВсички модели: тегла, карти на моделите и примери.
huggingface.co/monydochevbgmtts
НаличноТекст в реч, с женски и мъжки глас. Лиценз MIT.
huggingface.co/monydochev/bgmttsbgmasr
НаличноРеч в текст с разделяне по говорещи. Лиценз MIT.
huggingface.co/monydochev/bgmasrAPI за разпознаване
Интерфейсът следва формата на Whisper / OpenAI за транскрипция, така че съществуващите клиенти и библиотеки работят без промени. Заявките минават през опашка – при натоварване получавате отговор малко по-късно, а не грешка.
- Достъп
- При запитване – пишете ни на office@brainplusplus.bg
- Адрес и ключ
- Предоставят се при запитване
- Формати
- wav, mp3, m4a, ogg
- Лимити
- Според заявката
TTS не изисква API: работи в браузъра или на обикновен процесор с onnxruntime. Инсталира се като Python пакет от Hugging Face.
# адресът и ключът се предоставят при запитване curl "$GLAS_BG_API/v1/audio/transcriptions" \ -H "Authorization: Bearer $GLAS_BG_KEY" \ -F model="bgmasr" \ -F file="@zapis.wav" \ -F response_format="verbose_json"python · openai клиент
from openai import OpenAI
client = OpenAI(base_url=GLAS_BG_API + "/v1", api_key=GLAS_BG_KEY)
with open("zapis.wav", "rb") as f:
r = client.audio.transcriptions.create(model="bgmasr", file=f)
print(r.text) # смяната на говорещ е отбелязана с " | "
TTS · инсталацияpip install https://huggingface.co/monydochev/bgmtts/resolve/main/bgmtts-0.1.0-py3-none-any.whl # употреба: вижте страницата на модела в портала на BRAIN++ (portal.brain-plus.ai/r/bgmtts) или в Hugging Face
Как да участвате
Код и експерименти
Отворете задача „exp: …“ в GitLab с хипотеза, данни и базов модел. Скриптът записва рецептата; измервателят дава числото.
Данни
Предайте записите непроменени, с MANIFEST.yaml и предложен клас на правата. Всяка партида има резервно копие.
Проверка и слушане
Инструментът за анотация работи изцяло с клавиатура и екранен четец (NVDA, JAWS, TalkBack).