LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2021, 08:14 AM   #1
fabian3194
LQ Newbie
 
Registered: Dec 2021
Posts: 4

Rep: Reputation: Disabled
Possible to 'grep' a sound-bite from an audio mp3 file ?


Hello,

Is there a Linux tool that can retrieve sound-bites from an audio mp3 file given a sound pattern to search ? Consider over a hundred mp3 files of media announcements by one or more public figures where I want to 'grep' out particular spoken words eg any spoken instances of the words rice, drought and water etc. The analogous function is pdfgrep to pdf files as a way of finding pertinent documents.

Thanks,
Fabian
 
Old 12-08-2021, 08:25 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Hi, welcome here, at LQ

Interesting idea. I guess there is no software to do that "in one". But you may try to use a speech recognition software to convert mp3 to text and you can use grep on that.
 
Old 12-08-2021, 08:46 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Not quite what you want, but there's taggrepper.
 
Old 12-08-2021, 09:11 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,615

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

I just put "audio grep" into a search engine, and the first hit is a tool called audiogrep which transcribes to text then searches that.

However, for matching audio snippets I would expect a better version to be something that directly compared audio waveforms (or signatures derived from them) - there's a bunch of online services which presumably use this method to provide music identification.

It didn't take much to identify the term "acoustic fingerprinting", and combining that with "linux" produced another result: EchoPrint, from a company which got bought by Spotify, but the code is still available at https://github.com/spotify/echoprint-server and https://github.com/spotify/echoprint-codegen - the latter appears to be a tool that "indexes" audio files.

There may well be other options out there - the above is only from quick searches that should have been the minimum performed before asking this question.

 
Old 12-08-2021, 09:14 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
SongRec looks like a close match (warning for GitHub link though). It describes the overall process so depending on how comfortable you are with coding, it might be possible to build something similar.
 
  


Reply

Tags
audio



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an alias in ksh that uses grep and includes 'grep -v grep' doug248 Linux - Newbie 2 08-05-2012 02:07 PM
audio cd works - mp3's, streaming audio, flash sound don't spoody_goon Linux - Software 7 07-08-2006 03:11 PM
First Swaret, then Keybd and mouse, new kernel and USBs bite! xmeson Slackware 1 12-24-2004 03:23 PM
Gnome 2.6 - I'll Bite oldweasel Mandriva 1 04-01-2004 09:44 AM
Anyone know how to take the bite out of Bluetooth? BarkingBonefish Linux - Hardware 0 03-26-2004 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration