Text to Speech

Episode #474 by Teacher's Avatar David Kimura

Summary

In this episode, we look at implementing text-to-speech functionality using Ruby on Rails without third-party libraries. We'll discuss some nuances and various workarounds to address common issues.
rails stimulusjs javascript 16:44

Chapters

  • Introduction (0:00)
  • Creating the Stimulus Controller (1:06)
  • Setting up the view (1:32)
  • Building out the functionality (3:01)
  • First test (4:51)
  • Setting up preferred voices (5:26)
  • Testing preferred voice (9:19)
  • Visual feedback (9:37)
  • Testing visual feedback (10:31)
  • Updating button when speaking ends (10:50)
  • Testing when speaking ends (11:33)
  • Fixing voice changes (11:43)
  • Testing the fix (15:17)
  • Final thoughts (15:56)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams