← Master Index
Vol. 22 Module 22.4 Lecture

PlayAI

Voice & Music AI

How This Lesson Fits the Module & Volume

ElevenLabs and Cartesia covered quality-default and latency-default TTS. PlayAI is the third generative-voice RFP name: the conversational/platform evolution of PlayHT (Play.ht). Vol. 16.2 still teaches PlayHT APIs; Vol. 22.4 teaches the company you sign after rebrand and agent packaging. After PlayAI the module leaves spoken voice and enters music: Suno.

Capability: TTS, cloning. Product: Vol. 21 voice assistants. Wrap: Vol. 18 SDKs / FastAPI.

Learning Objectives

By the end of this lesson, students should be able to:

  • Map PlayAI to the PlayHT / Play.ht lineage without treating the rebrand as a new modality.
  • Describe PlayAI as generative TTS, cloning, and conversational-voice platform (STT not the flagship).
  • Compare PlayAI vs ElevenLabs vs Cartesia vs hyperscalers with qualitative pricing/strengths/weaknesses.
  • Call TTS using a PlayHT-style or current PlayAI client and isolate it behind FastAPI.
  • Design STT+TTS split: Whisper/Deepgram/hyperscaler in, PlayAI out.
  • Apply the same consent and PII rules as any cloning vendor.
Definition

PlayAI is the voice-AI platform identity of Play.ht / PlayHT: cloud neural TTS, instant cloning, streaming synthesis (Play 3 / PlayDialog-class engines—names evolve), and conversational agents. Authentication historically used an API key plus user id (pyht-style). Any transcription features are secondary. For production ASR, pair PlayAI with a dedicated STT stack from Vol. 16.2 lectures 1–6.

Rebrand vs Capability

Procurement docs may say PlayHT, Play.ht, or PlayAI. Engineers should treat them as one vendor family unless a contract explicitly splits products. Do not rewrite Vol. 16.2 labs solely because the homepage title changed. Do unbundle: WER lives on the listen side; MOS and TTFB live on the speak side.

Pricing / Strengths / Weaknesses (Qualitative)

DimensionPlayAI / PlayHTElevenLabsCartesiaHyperscaler TTS
Pricing postureTypically character- or plan-based TTS; cloning and agent tiers—confirm live sheetCharacters/credits + STT minutes if usedUsage/plan Sonic TTSMetered characters; enterprise commits
StrengthsGenerative TTS + dialog engines; streaming; PlayHT API familiarity; cloningStudio/brand/cloning reputation; agent UXLive TTFB specialistDPA, regions, STT+TTS one cloud
WeaknessesSTT not why you buy; name churn confuses RFPs; cloud; smaller “default” status than ElevenLabs in some marketsPrice/TTFB trade-offsNarrower studio narrativeLess “character” voice

Engines and Product Shapes

Batch TTS

  • Course narration, IVR prompts
  • Job → download audio
  • Cache aggressively

Streaming / PlayDialog-class

  • Conversational turns
  • gRPC/WS via SDK
  • Barge-in still your gateway

Agents

  • Vendor-hosted voice agent
  • Fine for prototypes
  • Production: your LLM + wrap-as-data

Pick PlayAI when

  • Existing PlayHT integration / keys
  • Dialog-class TTS wins listening tests
  • You already own STT
  • You want a generative alternative to ElevenLabs

Avoid using it as

  • Your WER source of truth
  • On-prem speech appliance
  • A music or video generator
  • A license to clone without consent

Python: PlayHT-Lineage TTS Call

PlayAI SDK package names may differ from classic pyht. Pattern below matches Vol. 16.2: user id + API key from env, engine/voice from config. Isolate behind FastAPI so switching to ElevenLabs is a client swap.

# playai_tts.py — PlayHT-lineage pattern; confirm current PlayAI SDK names import os from pyht import Client from pyht.client import TTSOptions client = Client( user_id=os.environ["PLAY_USER_ID"], api_key=os.environ["PLAY_API_KEY"], ) opts = TTSOptions(voice=os.environ["PLAY_VOICE_ID"]) # stock or consented clone with open("confirm.wav", "wb") as f: for chunk in client.tts( "Just to confirm: pay forty-nine dollars to Acme. Say yes or no.", opts, ): f.write(chunk)

Related Lectures

LectureRole
PlayHTCapability + historic API
ElevenLabs (STT/TTS) / 22.4 ElevenLabs / CartesiaVoice peers
Whisper / DeepgramSTT split
FastAPI / streamingProduct wrap
SunoNext: music, not voice
Common Misconception

“PlayAI is a new modality.” It is PlayHT’s platform evolution. Second: PlayDialog means you can skip STT specialists. Third: user id in the PlayHT client is optional security theater—it is auth; treat it like a secret. Fourth: rebrand resets consent for old clones. Fifth: PlayAI competes with Suno on songs.

Knowledge Check

  1. Short Answer: What older product name should students map to PlayAI? Answer: PlayHT / Play.ht.
  2. True/False: PlayAI is primarily an STT specialist like Deepgram. Answer: False — TTS/cloning/agents first.
  3. Multiple Choice: Production ASR should usually be: (a) a dedicated STT vendor or Whisper, (b) implied by PlayDialog, (c) Suno lyrics. Answer: (a).
  4. Short Answer: Name one qualitative strength vs hyperscaler TTS. Answer: Generative/dialog voice quality, cloning, or streaming TTS (any valid).
  5. True/False: PlayHT user id + API key belong in source control. Answer: False.
  6. Multiple Choice: Vol. 16.2 PlayHT lecture is: (a) still the capability/API companion, (b) obsolete and must be ignored, (c) a video model. Answer: (a).
  7. Short Answer: Which module starts music generation after PlayAI? Answer: Suno (then Udio) in 22.4.
  8. True/False: Cloning consent resets automatically after a vendor rebrand. Answer: False.
  9. Multiple Choice: Isolate PlayAI behind: (a) FastAPI/your gateway, (b) a public HTML voice id, (c) Veo. Answer: (a).
  10. Short Answer: Name one TTS RFP peer in this module. Answer: ElevenLabs or Cartesia.

Key Takeaways

  • PlayAI = PlayHT lineage generative TTS/agents; rebrand ≠ new science.
  • Unbundle STT vs TTS; eval MOS/TTFB independently.
  • Keep keys and voice IDs in env/config; wrap with Vol. 18.
  • Same Vol. 20 consent/PII rules as ElevenLabs.
  • Next: Suno—text-to-song, not TTS.
Trainer’s Guide

Lab: Given a PlayHT-style snippet and an ElevenLabs snippet, students write an adapter interface synthesize(text, voice_id) -> bytes with two implementations. Grade: no secrets in git, STT called out as a third interface, one paragraph on when PlayAI wins a listening test vs Cartesia TTFB.

Recap: PlayAI is the third generative-voice vendor, continuous with Vol. 16.2 PlayHT. Spoken-voice catalog done. Music next: Suno.