How to create your own Shazam (audio recognition) with Python in Windows10

preview_player
Показать описание
(Launch Pycharm IDE)

◼️ Get forked repo and switch to the "good" (git) branch
⚫ ⚠️Checkout branch: `origin/develop` ⚠️

◼️ Create virtualenv from ⚠️python3.6.x⚠️ interpreter(s)
🔵 Install packages/requirements
🔵 `pip install cython`

◼️ Reset the database

◼️ Resources: Copy some mp3 file into mp3/ folder
➡️ `mkdir mp3`
➡️ copy [source_dir]/*.mp3 mp3/.

◼️ Fingerprinting the audio files
❌ Errors !
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work

◼️ Install runtime dependencies
▪️ Installation of ffmpeg with chocolatery + powershell
➡️ open a powershell in administration mode
➡️ choco search ffmpeg
Chocolatey v0.10.11
ffmpeg 4.2 [Approved]
youtube-dl 2019.09.01 [Approved]
advanced-codecs 12.0.0 [Approved]
audacity-ffmpeg 2.2.2.20181007 [Approved] Downloads cached for licensed users
lavfilters 0.74.1 [Approved] Downloads cached for licensed users
[...]
➡️ choco install -y ffmpeg

◼️ Fingerprinting the audio files

✔️ Normally that work now ;-)

After for checking:

2020-05-13
If you have some troubles with PyAudio, like this:
...
building '_portaudio' extension

You need to install Microsoft Visual C++ 14.0 to install [...]:
❌ error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual

2020-08-24

2021-03-28
Рекомендации по теме
Комментарии
Автор

how much do you charge for this app? I know it´s a free source code but I´m asking if you could build it for me?

hardfiresk
Автор

After I did all the "◼ Install runtime dependencies" (all the result is exactly the same as the video), the "RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work" still appear, any clue?

pakkarwin
Автор

I am getting this error - "Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

shrutisharma
Автор

Had an error =>FileNotFoundError: [WinError 3] The system cannot find the path specified: 'mp3/' please help me fix this error.

jamesbeck
Автор

Hello so i have a problem with the ffmpeg. Ive installed it using chocolatey and when i re run i get the same error saying it couldnt find ffmpeg. Any idea why that would happen ?

frkg
Автор

I am getting the ffmpeg error even after installing choco
The system cannot find the file specified.
help pls.

prashnought
Автор

how could you fingerprints2.db file? As it is not opening in my pychram

kritika
Автор

why cannot create the schema in my sqlite database please suggest the solution

prashantpanta
Автор

I have this problem
RuntimeWarning: divide by zero encountered in log10 arr2D = 10 * np.log10(arr2D) # calculates the base 10 logarithm for all elements of arr2D
Can help me please:(

Decameca
Автор

I tried many times, but i want to run this step: - run reset-database.py for reseting database, the error i get is 'cannot import name 'izip_longest' from 'itertools' (unkown location). same with from db import Database. I guess the roots of my problem is that i dont have a database in the first place?

Please help me out! i really want to use parts from this for my school project :D

bonoke
Автор

Is it possible to implement this app with Flask, so i can use it as a webapplication?

VISCRA
Автор

how can we try the app? im sorry i dont understand how to do use the syntax on "how to set up" section, im using windows btw

leviian
Автор

what color theme do you use in this video?

andriy
Автор

The fingerprints.dp file is not working what is the solution

kareemgbr
Автор

Thanks alot I have done it but whe I try to run recognize-from-microphone.py I get



sqlite - connection opened
usage: recognize-from-microphone.py [-h] [-s [SECONDS]]

optional arguments:
-h, --help show this help message and exit
-s [SECONDS], --seconds [SECONDS]
sqlite - connection has been closed

Process finished with exit code 0

SENSORY_YD
Автор

He'll can you help me to build this type of similar i am using dejavu.

patelaryan
Автор

I am working on the same project. Can we connect ?

ShawankumarParida
Автор

It would be great if you could add the recognizing via mic py execution too.

prashnought
Автор

I am unable to clone this repository. Please help

hritikamishra