Home / Companies / Deepgram / Blog / Post Details
Content Deep Dive

How to Build a Highlight Read Aloud App with Aura-2 Text-to-Speech

Blog post from Deepgram

Post Details
Company
Date Published
Author
Zian (Andy) Wang
Word Count
2,708
Language
English
Hacker News Points
-
Summary

A tutorial by Zian (Andy) Wang guides readers through creating a web-based text-to-speech application using Deepgram's JavaScript SDK and Aura-2 Text-to-Speech API, designed to read aloud any highlighted text on a webpage. The tutorial covers setting up a foundational HTML structure, integrating necessary imports and styles, and establishing a JavaScript environment capable of handling audio through the Web Audio API. The guide details how to manage audio playback controls and addresses browser-specific challenges like polyfilling the Buffer object and using WebSockets to bypass CORS limitations. The article concludes by suggesting the potential to expand this functionality into a Chrome Extension, allowing users to have text read aloud from any webpage with ease.