Це відео не доступне.
Перепрошуємо.

Read and Visualize Audio Files in Python (librosa module)

Поділитися
Вставка
  • Опубліковано 10 січ 2019
  • This Python video tutorial show how to read and visualize Audio files (in this example - wav format files) by Python. For this reason librosa module is using.
    In addition to that matplotlib library is a perfect tool to visualize amplitudes of audio files. Glob module is used for reading audio files from working directory.
    Matplotlib - matplotlib.org/
    Glob module - docs.python.or...
    More reading about librosa in official documentation: pypi.org/proje...
    In simple words - LibROSA is a python package for music and audio analysis. It provides the building blocks necessary to create music information retrieval systems.
    Dataset source: www.kaggle.com...
    I will try to develop this topic (audio files analysis) in the context of Machine Learning. For example classification task to identify the male or female voice is on the audio.
    Best regards.
    Vytautas.
    #pythonaudio #librosamodule #visualizeaudio

КОМЕНТАРІ • 92

  • @aFterThePlane
    @aFterThePlane 4 роки тому +2

    This is great Vytautas, I was looking for a solution to import multiple audio files at once and as I don't know much of python I was very lost. Glad you posted this content!

    • @DataScienceGarage
      @DataScienceGarage  4 роки тому

      I'm glad that helped to you!

    • @aFterThePlane
      @aFterThePlane 4 роки тому

      @@DataScienceGarage you never went ahead posting more on dealing with audio files did you? I couldn't find it

  • @danny_p466
    @danny_p466 5 років тому +5

    nice video, I would love to see more music information retrieval related videos with machine learning

    • @danny_p466
      @danny_p466 5 років тому

      you should also check this video: ua-cam.com/video/oGGVvTgHMHw/v-deo.html if you haven't already

    • @DataScienceGarage
      @DataScienceGarage  5 років тому

      @@danny_p466 That's cool. Thanks for sharing!

  • @leirgauk
    @leirgauk 5 років тому +55

    *HUMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM*

  • @JustIn-case
    @JustIn-case 3 роки тому

    This was still mad helpful in 2021! thanks!

  • @massterviddeo9030
    @massterviddeo9030 5 років тому +3

    great video dude, help me with this ....if i want to print the fourier transform of each of song , what i can do ?

  • @FITecLi
    @FITecLi 4 роки тому +2

    Very good, I'm very happy to be able to get this video. You can increase your material about signal processing and voice recognition.
    because I really need it. Thank you very much, from #Timor_Leste...

  • @omahmed6910
    @omahmed6910 3 роки тому +1

    Thanks alot.😁

  • @debabratagogoi9038
    @debabratagogoi9038 2 роки тому

    Nicely explained, hope to see more such videos. If possible can you show how to mix noise files with audio files using 'for loop' and Librosa

  • @muralirambala9007
    @muralirambala9007 4 роки тому +1

    Hello Mr. Vytautas,
    Greetings,
    Its so glad being a subscriber your you-tube channel and videos are very useful for me.
    Please upload the video for the audio file analysis such as remove the noise, filtering and voice recognition in the audio file.
    Thanks in advance

  • @AS36588
    @AS36588 3 роки тому +1

    Hi, good video! Also you can plot all the graphics in 1 image using the .axs in a matrix format .

  • @raahulkalyaan8391
    @raahulkalyaan8391 4 роки тому +1

    does it only work on wav format files? what about mp4,mp3,aac files?

  • @claudinemaeleysa1259
    @claudinemaeleysa1259 3 роки тому

    Cool! Thanks a lot for this video! Great help for my research in MER

  • @ritikasingh2846
    @ritikasingh2846 3 роки тому +1

    Thank you so much.I got a lot of help with this video. Sir, can you upload a video about calculating "Persentage of voice similarly score?”
    I will be very grateful to you.🙏

    • @harshmaheshwari2200
      @harshmaheshwari2200 2 роки тому

      yess, need it desperately please upload another one regarding that

  • @zahranematzadeh6456
    @zahranematzadeh6456 2 роки тому

    Thank you Garage for your useful video. I look forward to seeing your next videos about classification task to identify the male or female voice. It would be great if you extract the features and train this file with CNN. I hope you can send me the related link of your videos soon. Thank you again.

  • @teamelectroteck
    @teamelectroteck 3 роки тому

    I wanna write a simple code that monitors the audio output your speakers basically and when a certain audio with a certain frequency is being played the script will press a button. Is it possible?

  • @BLAXE-vm3ms
    @BLAXE-vm3ms 3 роки тому

    in the time variable why did you divide range by frequency

  • @kondurmadhu4506
    @kondurmadhu4506 3 роки тому

    how to find the number of samples for each audio file..

  • @nuk6950
    @nuk6950 4 роки тому

    I need help. I have followed the steps correctly from the start, but why is the error "name 'glob' is not defined" still not resolved? Thank you

  • @Master-mp7to
    @Master-mp7to 4 роки тому

    Very helpful, thanks for making this

  • @Abdoabdoabdo179
    @Abdoabdoabdo179 2 роки тому

    how to save the images result in a file sir

  • @5thgenapps608
    @5thgenapps608 2 роки тому

    How would we animate the graph while the sound is playing? Thanks

  • @nabaaf.hameed786
    @nabaaf.hameed786 3 роки тому

    I applied the code but it keep told me ValueError: x and y must have same first dimension for sentence ax.plot(time, audio)

  • @tomatrix7525
    @tomatrix7525 3 роки тому

    Very good

  • @sileshiaweke4814
    @sileshiaweke4814 5 років тому

    Great deed thank you very much!!!, can you do the next part soon?

  • @ssbian9520
    @ssbian9520 4 роки тому +1

    how to set the directory? data_dir= for any location ?

    • @DataScienceGarage
      @DataScienceGarage  4 роки тому +1

      Yes, exactly, you can change data_dir to any location on your machine to grab files you want.

    • @ssbian9520
      @ssbian9520 4 роки тому

      @@DataScienceGarage thank you, I mean how to set it? what is the format please

    • @ssbian9520
      @ssbian9520 4 роки тому

      @@DataScienceGarage for example, if my *.wav is in D:\user\sound\wav folder, I should write data_dir='./sound/wav'? or './user/sound/wav'?

    • @ssbian9520
      @ssbian9520 4 роки тому

      @@DataScienceGarage there is no error for my code, but the len() result is 0.

    • @manjunadhkandavalli1017
      @manjunadhkandavalli1017 4 роки тому +1

      @@ssbian9520 'D:\user\sound\wav'
      Just copy the address from the address bar of your folder.Using ./ may go to the default directory and may be D:\user is not your default directory.Hope this helps

  • @anshul4249
    @anshul4249 3 роки тому

    Can anyone please help how I can implement modulation techniques like ASK, PSK, FSK in python?

  • @MasterZiomekPL
    @MasterZiomekPL 4 роки тому

    my import librosa line is returning No module named 'numba.decorators'. Is this module deprecated?

  • @anumaamir3441
    @anumaamir3441 3 роки тому

    name glob is not defined error is constantly appearing. kindly help

  • @saltanatkhalyk3397
    @saltanatkhalyk3397 3 роки тому

    thank you. that code works)

  • @felipemunoz4798
    @felipemunoz4798 4 роки тому

    Me salvaste!!!! gracias!!

  • @Aemilindore
    @Aemilindore 3 роки тому +1

    You are speaking of audio processing but didn’t remove the hum. Hummm..

  • @aiacademybysid5631
    @aiacademybysid5631 5 років тому

    Very helpful

  • @yeahx32p69
    @yeahx32p69 2 роки тому

    How can I save these files as csv?

  • @tamalnath1997
    @tamalnath1997 3 роки тому

    How to convert mp3 files into wav format??

  • @atharvaathalye
    @atharvaathalye 4 роки тому

    Sir your guide on spectrogram?

  • @Siri-ie3xj
    @Siri-ie3xj 3 роки тому

    Thanks a lot !!!

  • @_Kanad_Patil_TE_IT
    @_Kanad_Patil_TE_IT 4 роки тому

    please sir, make video on audio files comparison in latest python version(3.8.1)

  • @saltanatkhalyk3397
    @saltanatkhalyk3397 3 роки тому

    I loaded only 15 audios out of 100, then I got the error. How to download all the files?

  • @pencildrawingtutorialsb5069
    @pencildrawingtutorialsb5069 5 років тому

    Sir, i want contact with you.. Please help me. I have a Python code but modules line off 😢😢 please fix it

  • @chutimaruangmanee7047
    @chutimaruangmanee7047 4 роки тому

    Thank you very much. But can I ask you something, How to save all plot in one file?

    • @nicolasfeuchster8160
      @nicolasfeuchster8160 4 роки тому

      I would like to know the same thing

    • @pietjan2409
      @pietjan2409 4 роки тому

      plt.savefig('plot.png', dpi=300, bbox_inches='tight')
      with dpi = image resolution
      and bbox_inches is optional

  • @gunjansharma9062
    @gunjansharma9062 3 роки тому

    i have installed librosa still it is showing module not found can you please help me

    • @DataScienceGarage
      @DataScienceGarage  3 роки тому

      Did you installed librosa on your active environment? Type !pip list in your notebook to be sure that librosa is in the list.

    • @gunjansharma9062
      @gunjansharma9062 3 роки тому

      thank you for your help but now it is showing sndfile library file not found ,m using jupyter

  • @navyadamodar6546
    @navyadamodar6546 5 років тому

    How did u install librosa in Jupyter notebook? I am getting error.... I have used both pip install librosa and conda install

    • @garimaprabhakar6417
      @garimaprabhakar6417 5 років тому +1

      pip install librosa in terminal should have worked, but if it still doesn't, you can just search up librosa online and download it from the python library.

    • @navyadamodar6546
      @navyadamodar6546 5 років тому

      @@garimaprabhakar6417 I found solution for the issue & I was able to install librosa....thank you for the reply!

  • @AlmostDead
    @AlmostDead 4 роки тому

    Hello, I was wondering if you could help me with my project, I really need some guidance. Is there any way we can talk?

  • @telmomachado1490
    @telmomachado1490 3 роки тому +1

    could you do another example teaching about library resources?

  • @vybhavchaturvedi8348
    @vybhavchaturvedi8348 4 роки тому

    len function is not working in at all. I have tried numerous times. Only output is zero

    • @DataScienceGarage
      @DataScienceGarage  4 роки тому +1

      Hmm, and you have followed all previous commands?

    • @vybhavchaturvedi8348
      @vybhavchaturvedi8348 4 роки тому

      @@DataScienceGarage Thank you, i figured it out

    • @vybhavchaturvedi8348
      @vybhavchaturvedi8348 4 роки тому

      I was working in Pycharm and it was not accepting ./Desktop___ as the address for the directory, rater C:/User/ etc etc. No idea why it didn't throw an error though.
      Anyways, thank you for concern and such a good video

  • @prabhapro3663
    @prabhapro3663 4 роки тому

    plz help:
    name 'glob' is not defined

  • @balasubramaniantk4863
    @balasubramaniantk4863 3 роки тому +1

    RIP earphone guy

  • @jdaniele
    @jdaniele 4 роки тому +1

    Video is very hard to follow on a tablet screen. Font is too much small and you wasted a lot of space on the sides of screen. Think about it next video. Thanks.

  • @daxu9605
    @daxu9605 3 роки тому

    Holy noise floor on ur voice recording

    • @DataScienceGarage
      @DataScienceGarage  3 роки тому +1

      Yep, in that time I did not had a normal mic.. :)

    • @daxu9605
      @daxu9605 3 роки тому +1

      @@DataScienceGarage that 50/60 hz is pummeling :D

  • @yusufbeky4527
    @yusufbeky4527 3 роки тому

    are you from Russia?

  • @DataScienceGarage
    @DataScienceGarage  5 років тому

    I have created another one video demonstrating simple use of glob module: just how to read external files (2 simple methods) some time ago: ua-cam.com/video/1nc5Sju8FVU/v-deo.html

    • @ASHISHMISHRA666
      @ASHISHMISHRA666 4 роки тому

      I get sampling frequency half of the original. For 44100 I get 22050

  • @blackopis210
    @blackopis210 5 років тому

    русский?))

  • @MixtE50C
    @MixtE50C 4 роки тому

    WTF is that annoying sound?

    • @MixtE50C
      @MixtE50C 4 роки тому

      Okey, played in my shitty speakers instead of my headphones, that background noise is less aggressive

    • @MixtE50C
      @MixtE50C 4 роки тому

      Anyway, great video

    • @DataScienceGarage
      @DataScienceGarage  4 роки тому

      Thanks! :D