Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Audio How to get the spectrogram from an audio file?

Discussion in 'Audio & Video' started by Kheoss, Jan 6, 2019.

  1. Kheoss

    Kheoss

    Joined:
    Apr 24, 2018
    Posts:
    1
    So i'm trying to map some audio into an image (spectogram) in this way :
    *Get the spectrum data (512 samples).
    *Make an png 512*512 => the value of the pixel on the row i and col j = the amplitude on the frequency j for the sample j ( it take aprox 10 seconds for the image to be created)

    [512 samples for the spectrum data => 43 Hz / sample]

    but the results are not so good (i uploaded one of those bellow).

    My goal is to feed an Convolutional Neural Network with those images but with my technique i gen an precision of 56% which is not good at all:(

    Some advices please?
     

    Attached Files:

    • 9.png
      9.png
      File size:
      19.4 KB
      Views:
      19
  2. WashingMachine

    WashingMachine

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    24
    Heya!
    Could you post your code?