While writing up a reflection of completing the #DailyBloggingChallenge for a year, I realized that my #Hugo based website is missing #SEO data in its head.

The hugo clarity theme comes with SEO though it is not activated by default and one would only realize it when going through the layouts/partials/opengraph.html code. There is the mention of the site param blogDir that is not implemented anywhere else within the code.

Thus to activate the SEO over #SchemaOrg and #JsonLd one needs to add the param blogDir and point it to the designated section. Using the exampleSite as a reference it would be blogDir = "post" in the config/_default/params.toml file.

GitHub - chipzoller/hugo-clarity: A theme for Hugo based on VMware Clarity

A theme for Hugo based on VMware Clarity. Contribute to chipzoller/hugo-clarity development by creating an account on GitHub.

GitHub

#DailyBloggingChallenge (365/365)

The only caveat of the #Whisper project is that it only works on 16-bit #WAV files.

There is a #FFMPEG script on how to do it via the #terminal

ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav

#DailyBloggingChallenge (364/365)

The ‘Quick Start’ section in the Readme sufficed for setting up.

The only thing that I had to change in the ./models/download-ggml-model.sh script (1) is remove the option --show-progress on line 105. Seems like GNU Wget2 2.1.0 doesn’t have that option.

Alternatively one can replace the option with

--progress=bar --force-progress

#wget #bash

whisper.cpp/models/download-ggml-model.sh at master · ggerganov/whisper.cpp

Port of OpenAI's Whisper model in C/C++. Contribute to ggerganov/whisper.cpp development by creating an account on GitHub.

GitHub

#DailyBloggingChallenge (363/365)

Instead opted in to using #Whisper which also works with #KdenLive.

Although Whisper is originally written in #Python there is a #CPP project that makes transcribing very fast. It took less than 2min to transcribe the 26 min audio clip.

https://github.com/ggerganov/whisper.cpp

GitHub - ggerganov/whisper.cpp: Port of OpenAI's Whisper model in C/C++

Port of OpenAI's Whisper model in C/C++. Contribute to ggerganov/whisper.cpp development by creating an account on GitHub.

GitHub

#DailyBloggingChallenge (362/365)

Originally wanted to use #VOSK to transcribe the #SpeechToText. Initially tried it out over #KdenLive and its ‘Speech Recognition’ tool.

This took quite awhile to setup, since it is not concrete what kind file format, if any, the VOSK model should have. Additionally, the recommendation of setting up a virtual #Python environment didn’t work as expect and went with the global approach.

And finally scratched the whole approach, once realizing that transcribing 26 min audio clip is taking longer than 10min.

#DailyBloggingChallenge (361/365)

Further options exist like #YouTubeDL (1) or stream via #VLC.

Sometimes I wished that creators would mirror their channels on more permissive sites like #PeerTube or #Odysee that don’t hard-lock into watching ads.

GitHub - ytdl-org/youtube-dl: Command-line program to download videos from YouTube.com and other video sites

Command-line program to download videos from YouTube.com and other video sites - ytdl-org/youtube-dl

GitHub

#DailyBloggingChallenge (360/365)

Alternatively one could also use #FFMPEG to combine the files together via the #Terminal like

ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac output.mp4

Source: https://superuser.com/a/277667

How to merge audio and video file in ffmpeg

I want to merge an audio file (.wav or .au format) with a video file (.mp4 format). Please suggest me how to achieve this. I want to merge these file to new .mp4 video file. An ffmpeg command woul...

Super User

#DailyBloggingChallenge (359/365)

Most of the time, I try to watch videos on #Invidious with lower resolution to speed up loading time, especially since I watch by default at twice the playback rate.

Today I realized that some instances permit the downloading of content. And even if one has to download audio and video separate, one can easily merge them together temporarily in one’s favorite #VideoEditor without the need to render the end product.

#DailyBloggingChallenge (358/365)

For a long time #BraveBrowser was the trick to mitigate #YouTube ads.

Seems like YouTube has finally caught on and now going back to #Invidious.

#DailyBloggingChallenge (357/365)

This concludes the explanation behind the process of creating a #Paypal partial for #Hugo using #GoLang tricks combined with #HTML, #CSS, and #JavaScript

The #TLDR can be read at https://bf5.eu/post/guide/hugo-how-to-create-paypal-partial/

#blog #writing

Hugo: How to create PayPal partial

Learn how to create a PayPal partial for your Hugo site. It can either be stand-a-lone or be part of a drop-down. The drop-down variety comes with the feature …