Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, October 27, 2021

Debian GNU/Linux 11 bullseye How to convert mp3 audio files to text

Debian GNU/Linux 11 bullseye How to convert mp3 audio files to text

(Based on this Answer: Ubuntu – Convert speech (mp3 audio files) to text https://itectec.com/ubuntu/ubuntu-convert-speech-mp3-audio-files-to-text/ )

Hi friends, I was looking for a solution to extract audio to text files. Bases in this Answer from itectec.com I resolved my problem.

This original solution is based on Ubuntu, but I tested on Debian 11 Bullseye and it worked.

Steps: (This steps are Similar to the original Tutorial).


First convert your existing audio file to the mandatory input format: ffmpeg -i 1.mp3 -ar 16000 -ac 1 1.wav


After run pocketsphinx pocketsphinx_continuous -infile 1.wav 2> pocketsphinx.log > myspeech.txt


the program will created  the file myspeech.txt will have what you're looking for.

You would need to install the above programs using this command: 
sudo apt install pocketsphinx pocketsphinx-en-us ffmpeg 


References

Ubuntu – Convert speech (mp3 audio files) to text
https://itectec.com/ubuntu/ubuntu-convert-speech-mp3-audio-files-to-text/

Debian GNU/Linux www.debian.org

I hope it help. It worked for me.

See you next.

Danny


Saturday, October 16, 2021

How to uninstall LibreOffice on Debian 11

 How to uninstall LibreOffice on Debian 11

Hi friends some tips about how to uninstall LibreOffice correctly on Debian 11.

I tried two methods because one worked in one PC the other not and vice versa. I hope can be useful for you.

Methods

1. Purge LibreOffice first using dpkg -i purge libreoffice. Does not work. Use second method

2. Use sudo apt-get purge libreoffice*. Note: this method does not work in Debian 11 bullseye: sudo apt-get remove –purge libreoffice*

See you next

Danny