Company
Date Published
Author
Christian Nunciato
Word count
4046
Language
English
Hacker News points
None

Summary

In a nostalgic reflection on the now-obsolete speaking clocks, once popular in the 1930s and used widely up until the mid-2000s, the author embarks on a project to create a modern, serverless version of this service using AWS and Pulumi. By taking a test-driven development approach with Jest, the author outlines the process of building a speaking clock that delivers the current time via an MP3 audio stream accessible through an HTTPS endpoint. This involves setting up an AWS Lambda function with a Function URL to expose it to the internet, using Google Translate's text-to-speech API for audio generation, and ensuring cross-origin resource-sharing (CORS) compatibility. The project serves as both a playful homage to vintage technology and a practical exercise in modern cloud infrastructure and testing practices, demonstrating how Pulumi and Jest can be effectively used to build and test serverless applications.