Knowledge Base

Декілька місяців тому OpenAI представила нове покоління аудіо-моделей: точніше Whisper 3

754 просмотров Оригинал — Я тестую: SEO та ШІ 🇺🇦 ↗

Декілька місяців тому OpenAI представила нове покоління аудіо-моделей: точніше Whisper 3 і з емоціями. Вичікував, збирав інформацію, і ось, що ми маємо.

Speech-to-Text (доступна в API):

  • Нові моделі GPT-4o-transcribe і GPT-4o-mini-transcribe значно перевершили за точністю Whisper v3 та інші популярні рішення.
  • Вони показують кращий результат (нижчий WER) навіть за складних умов: шумного фону, акцентів або швидкої мови.
  • Ідеально підходять для кол-центрів, розшифрувань зустрічей і подкастів.

Text-to-Speech (доступна в API):

  • Нова модель GPT-4o-mini-tts вміє не просто озвучувати текст, але й виражати емоції та інтонації за вашою інструкцією.
  • Наприклад, можна попросити модель говорити «як співчутливий оператор підтримки», професійний диктор або навіть оповідач історій.
  • Голосовий AI стає максимально природним і персоналізованим.
  • Whisper 3 був хороший, але OpenAI підняла планку ще вище: нові моделі дають точність і гнучкість, яких раніше не було.

Послухати різні варіанти озвучування можна на цьому майданчику: www.openai.fm

Ще ніколи раніше не було так просто інтегрувати такого рівня синтезовану мову в своїх проектах!

Ось код на Python з демо-текстом і демо-інструкцією:

import asyncio

from openai import AsyncOpenAI
from openai.helpers import LocalAudioPlayer

openai = AsyncOpenAI()

input = """Woohoo! Let's get those meetings scheduled, superstar!\n\nAlright, first up—Monday at 10 AM, you've got a check-in with the team. Go, teamwork! Next, we're locking in Wednesday at 2 PM for that client presentation—you got this!\n\nOh, and don't forget Friday at 4 PM, a strategy session to wrap up the week. Finish strong!\n\nNeed to move anything around? No worries—I'm here to keep your schedule totally winning! Just say the word, and I'll make it happen! Let's do this!"""

instructions = """Personality/affect: a high-energy cheerleader helping with administrative tasks \n\nVoice: Enthusiastic, and bubbly, with an uplifting and motivational quality.\n\nTone: Encouraging and playful, making even simple tasks feel exciting and fun.\n\nDialect: Casual and upbeat, using informal phrasing and pep talk-style expressions.\n\nPronunciation: Crisp and lively, with exaggerated emphasis on positive words to keep the energy high.\n\nFeatures: Uses motivational phrases, cheerful exclamations, and an energetic rhythm to create a sense of excitement and engagement."""

async def main() -> None:

async with openai.audio.speech.with_streaming_response.create(
model="gpt-4o-mini-tts",
voice="coral",
input=input,
instructions=instructions,
response_format="pcm",
) as response:
await LocalAudioPlayer().play(response)

if __name__ == "__main__":
asyncio.run(main())
Тут більше місця займає сам текст озвучування та інструкція, ніж сам код!

Ми живемо в приголомшливий час!