Archive for March, 2023
Speech-to-text conversion
March 12, 2023
Leave a comment
See https://github.com/openai/whisper
Example:
$ whisper speech.mp3 --model small
It also knows other languages. It can even translate a foreign audio to English.
Categories: Uncategorized
cli, speech-to-text, whisper
Play a file in muted mode with mplayer
March 7, 2023
Leave a comment
Problem
With mplayer, I wanted to play an audio file in muted mode, i.e. without any sound (with volume=0). How to do that?
Solution
mplayer -volume 0 -softvol audio.mp3
If you don’t add “-softvol
“, it’ll change your system volume too and it will persist after mplayer closes. Adding “-softvol
” will mute the playback, but it won’t modify the system volume.