Skip to content
D7Level 5 · ProUnder the hoodAbout 125 minutes of lessons

Voice & Text-to-Speech APIs

Turn text into speech and speech into text, and compare voice services responsibly.

Suits
Older learners comfortable with APIs and the idea of server-side code. No microphone, recording or voice account is ever needed.
Where it fits
Level 5, Pro (16–18 and adults): Professional AI coding tools and agents, payments and servers, and a real project from idea to a maintained launch. This course is in Under the hood: The concepts and tools behind an app: files, front end and back end, data, APIs, Git, hosting and deployment.

What you'll be able to do

  • Explain text-to-speech (TTS), speech-to-text (STT) and speech-to-speech, and the difference between on-device and API voices.
  • Compare voice providers fairly using features, pricing units, terms and safety, not just how impressive a demo sounds.
  • Estimate costs from per-character and per-minute pricing and plan a budget with limits.
  • Explain why voice cloning needs explicit consent, why children's voices are off-limits, and why AI voices should be disclosed.
  • Describe a safe voice feature where the browser calls your own server and the provider key stays on that server.

Lessons

  1. 1. How voice AI works

    25 min

    Text-to-speech, speech-to-text and real-time speech, explained without pretending the computer is a person.

  2. 2. Comparing voice providers

    25 min

    What voice services offer, and how to compare any provider fairly.

  3. 3. Characters, minutes and budgets

    25 min

    Reading per-character and per-minute pricing, estimating costs and protecting a budget.

  4. 4. Voices, consent and cloning

    20 min

    Why you never clone someone's voice without consent, why children's voices are off-limits, and why AI voices should be disclosed.

  5. 5. A voice feature in the sandbox

    30 min

    Designing a voice feature where the browser calls your own server, which holds the key and enforces limits.

How it's assessed

  • Explains TTS, STT and speech-to-speech, and on-device versus API voices.
  • Compares two providers using fair, written criteria and treats terms as pass/fail requirements.
  • Estimates a cost from a (fictional) pricing table and proposes budget protections.
  • Explains consent, children's-voice and disclosure rules for voice AI.
  • Describes a server-side proxy design that keeps keys on the server.

To complete the course

  • Pass each lesson check (70% or more).
  • Complete the on-device speech demo (or read its fallback) and the pretend voice server exercise.

Notes for parents, guardians and teachers

  • No recording, microphone, voice upload or voice account is used. Demos use the browser's built-in, on-device speech where available, and simulations otherwise.
  • The voice APIs discussed are adult services, and some providers prohibit apps aimed at under-18s without written approval. They are covered for comparison only. Any real account is the adult's decision, and keys must stay on a server.
  • Learners are taught never to record or clone anyone's voice, and that children's voices must never be used to train voice models.
  • All prices in exercises are fictional credits; real prices change and vary by provider.

A parent, guardian or teacher creates the account. A short placement check suggests where each learner starts.