jlelse's Blog

Thoughts, stories and ideas

API

Use Telegram as a notification service with Go

in 👨‍💻 Dev

Telegram is my favorite messenger for chatting. There are many reasons for this. But Telegram is also very suitable to use it as a notification service for your own projects. For example I get a daily overview of the number of page views of my blogs, but also notifications about new Webmentions, or likes and announcements via ActivityPub are sent to me via Telegram. That I use Telegram is because the Bot API is so easy to use.

Read more

How I use the Speech Synthesis API on my blog

in 👨‍💻 Dev

I just added the feature to my blog that allows you to have any article read to you. For some articles I already add an MP3 file with a natural sounding pronunciation, but now it is also possible to get articles read aloud that don’t have an MP3 file (if the browser and operating system support this). There is an experimental SpeechSynthesis API in some browsers (Firefox and Chrome support the function).

Read more

Using the Google Text-to-Speech API to create audio versions for blog posts

Ashwíṅ Víshnú asked how I created the audio version for my latest post. Here’s a way how you can use the Google Text-to-Speech API to create MP3s from text. A simple way to try this API without a Google Cloud account is to follow these steps: Open this page in a new (private) Firefox tab. Open the Web Developer tools and go to the Network tab. On the page enter the text to synthesize into the text area and choose your config.

Read more

Jan-Lukas Else