All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

gsay: Shell Script for Fetching English Word Pronunciations from Google

By

pooyamo

7mo ago· 4 min readenCode

Summary

gsay is a simple shell script that fetches and plays pronunciation audio files for English words from Google's search results. The script extracts human-made MP3 pronunciation files that appear in Google's answer boxes when searching for English vocabulary. It supports both British and American accents, can query for 2020 and 2024 sound files, includes disk caching by default, and requires basic dependencies like curl and a headless MP3 player (ffplay, mpv, or pw-play).

Key quotes

· 5 pulled
A simple shell script to fetch pronunciation of an English word from Google
When you search for an English vocabulary, Google shows a pronunciation in an "answer box" at top of the page
This script fetches that hopefully human-made mp3 sound file
Support British and American accents
Cache to disk (enabled by default)
Snippet from the RSS feed
A simple shell script to fetch/play pronunciation of English vocabulary from Google - pvonmoradi/gsay

You might also wanna read