Hasty Briefsbeta

gsay: Fetch pronunciation of English vocabulary from Google

7 hours ago
  • #google
  • #pronunciation
  • #shell-script
  • A shell script to fetch pronunciation of English words from Google.
  • Supports British (gb) and American (us) accents.
  • Allows caching of pronunciation files to disk (enabled by default).
  • Provides options to specify the database year (2020 or 2024).
  • Can print pronunciation links without playing audio.
  • Includes debug and version options.
  • Examples provided for usage, including handling special characters and batch processing.
  • Notes on synthetic vs. human-made pronunciations and HTTP vs. HTTPS URLs.
  • Early versions supported scraping, but now relies on heuristic mode due to Google restrictions.
  • Linter and formatter recommendations: shellcheck and shfmt.