Аудио
Синтез речи из текста (TTS) и расшифровка аудио в текст (STT). Голоса и форматы у каждой модели свои — список на странице модели.
Синтез речи
Эндпоинты
https://api.neuralbridge.ru/v1/audio/speechосновнойПараметры
Набор зависит от модели: справа — сколько моделей из 5 принимают параметр. Значения по умолчанию и допустимые значения — на странице модели.
speed5 из 5response_format5 из 5voice4 из 5language4 из 5input1 из 5sample_rate1 из 5bit_rate1 из 5temperature1 из 5apply_text_normalization1 из 5Пример запроса
На модели deepgram/aura-1-08130. Для другой модели подставьте её идентификатор из таблицы ниже.
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.neuralbridge.ru/v1")
audio = client.audio.speech.create(model="deepgram/aura-1-08130", voice="default", input="Привет!")
audio.write_to_file("speech.mp3")5 моделей
deepgram/aura-1-08130deepgram/aura-2-en-08130deepgram/aura-2-es-08130inworld/tts-2-08130myshell-ai/melotts-08130Распознавание речи
Эндпоинты
https://api.neuralbridge.ru/v1/audio/transcriptionsосновнойПараметры
Набор зависит от модели: справа — сколько моделей из 5 принимают параметр. Значения по умолчанию и допустимые значения — на странице модели.
language5 из 5response_format5 из 5temperature5 из 5enable_timestamps3 из 5enable_diarization2 из 5file1 из 5source_url1 из 5language_code1 из 5secondary_language_codes1 из 5diarize1 из 5num_speakers1 из 5diarization_threshold1 из 5tag_audio_events1 из 5timestamps_granularity1 из 5file_format1 из 5no_verbatim1 из 5keyterms1 из 5numbers_format1 из 5seed1 из 5Пример запроса
На модели elevenlabs/scribe-v3-08130. Для другой модели подставьте её идентификатор из таблицы ниже.
curl https://api.neuralbridge.ru/v1/audio/transcriptions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F model="elevenlabs/scribe-v3-08130" \
-F file=@record.mp35 моделей
elevenlabs/scribe-v3-08130deepgram/nova-3-08130openai/whisper-08130openai/whisper-large-v3-turbo-08130openai/whisper-tiny-en-08130Музыка и песни
Эндпоинты
https://api.neuralbridge.ru/v1/audio/musicосновнойПараметры
Набор зависит от модели: справа — сколько моделей из 2 принимают параметр. Значения по умолчанию и допустимые значения — на странице модели.
prompt2 из 2instrumental2 из 2duration1 из 2seed1 из 2output_format1 из 2sign_with_c2pa1 из 2composition_plan1 из 2section_duration_ms1 из 2section_lines1 из 2section_line_chars1 из 2section_name_chars1 из 2section_styles1 из 2context_adherence1 из 2lyrics1 из 2lyrics_optimizer1 из 2format1 из 2sample_rate1 из 2bitrate1 из 2Пример запроса
На модели elevenlabs/music-v2-08130. Для другой модели подставьте её идентификатор из таблицы ниже.
curl https://api.neuralbridge.ru/v1/audio/music \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "elevenlabs/music-v2-08130", "prompt": "Warm cinematic ambient, soft piano, subtle strings, hopeful mood", "duration": 30, "instrumental": true}' \
--output music.mp32 модели
elevenlabs/music-v2-08130minimax/music-2.6-08130