Skip to content

New voice, Lesson 11 on opening pull requests, and Udemy's AI disclosure - #39

Merged
thejesh23 merged 11 commits into
mainfrom
azure-voice
Nov 26, 2026
Merged

thejesh23 merged 11 commits into
mainfrom
azure-voice

Conversation

@thejesh23

@thejesh23 thejesh23 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Three changes that all need the videos re-rendered, so they ship together.

1. A more natural voice

Narration moves from macOS say (Aman) to Azure AI Speech's en-IN-Arjun:DragonHDLatestNeural. Udemy's review noted the text-to-speech voice and warned that robotic-sounding audio can be reviewed again.

  • tools/azure_tts.py (new) synthesizes each clip through Azure's REST API. The key comes from AZURE_SPEECH_KEY or the macOS Keychain, never the repo.
  • Every clip is checked: HD voices are generative, so each new clip is transcribed back with Azure speech-to-text and compared with its text. A clip that's off by more than a few letters is made again, up to 3 times. This caught a real problem: the voice slurred "noreply" and swallowed the word before it, so the scripts now say "no reply".
  • Clips are cached by voice and text, so a re-render only makes changed sentences.
  • --voice Aman still uses say, so the renderer works without a key.

2. Lesson 11: Opening the pull request

The course taught PR descriptions only in passing. The new lesson covers:

Exercise: write the title and description for the Exercise 3 fix; tools/check_pr_description.py checks them (18 tests).

Lessons 11–14 become 12–15, so lesson numbers still match Udemy's lecture numbers. Lessons 05, 10 and 15 now point to the new lesson.

3. Udemy's required AI disclosure

The landing copy opens with the sentence Udemy's Help Center requires word for word. It's already saved on Udemy.

Draft until all 16 lectures and the promo are rendered and their flagged clips reviewed.

🤖 Generated with Claude Code

thejesh23 and others added 8 commits November 26, 2026 03:28
HD voices are generative, so a clip can come out with a slurred or
invented word. Every new clip is transcribed back with Azure
speech-to-text and compared with its text; a clip that differs by more
than a few letters is made again. Clips are cached by voice and text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Azure voice names go to azure_tts; other names (--voice Aman) still use
macOS say. Each render writes narration-check.json and prints any clip
whose transcript didn't match its text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Udemy's review asked for the Help Center's sentence, word for word, as
the first line of the description. Already saved on Udemy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The new voice slurred 'noreply' and swallowed the 'dot' before it; the
transcription check caught it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Titles, the four parts of a description, templates and draft PRs, with a
real merged CPython PR as the example. The exercise is writing the title
and description for the Exercise 3 fix; check_pr_description.py checks
them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sson

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@thejesh23 thejesh23 changed the title Narrate the videos with an Azure AI Speech voice New voice, Lesson 11 on opening pull requests, and Udemy's AI disclosure Nov 26, 2026
thejesh23 and others added 3 commits November 26, 2026 04:33
The voice sometimes clips the last word of a sentence ('look yet' heard
as 'look') or swallows a short one ('dot git' heard as 'git'). Those are
only a few letters, so they passed the letter count. Word-level
comparison now fails any clip with a word the transcript has nothing
for, while still allowing sound-alikes such as ruff and rough.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
'to main' at the end of a clause was clipped: say 'the main branch'.
CPython's and nixpkgs get spoken forms ('C Python's', 'nix packages').

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@thejesh23
thejesh23 marked this pull request as ready for review November 26, 2026 12:57
@thejesh23
thejesh23 merged commit 126502b into main Nov 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant