site  contact  subhomenews

sox fix and whisper.cpp compiled in OE

August 12, 2024 — BarryK

In the Puppy Forum the question was asked about an application for converting audio voice to text:

https://forum.puppylinux.com/viewtopic.php?t=12333

James (jamesbond in the forum) informed us about 'whisper.cpp'. Furthermore, he created a GUI for it.

I attempted to use the GUI. It uses the 'sox' utility record capability to record from microphone to a text file. That was my stumbling block, as discovered sox does not support alsa nor pulseaudio. A bit of investigation; found that the sox build recipe in OpenEmbedded is broken. I fixed it and recompiled sox. Here is the github commit:

https://github.com/bkauler/oe-qky-scarthgap/commit/6bb4c5e40fcdfef41288246ef2b8881bd97a68f6

Tested James' GUI and it works.

Then compiled whisper.cpp in OpenEmbedded. The Makefile needs some modifications for a cross-compile environment:

https://github.com/bkauler/oe-qky-scarthgap/commit/66f78356bf0eb5ea4dee5ea1fa854e6d134cb55c

Maybe can add features to the GUI; will maybe think about that.    

Tags: easy