SlideShare a Scribd company logo
1 of 46
What Shazam doesn't want you to know ,[object Object]
[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object]
[object Object],[object Object]
Let it listen for +/- 20 seconds.
It tells you: ,[object Object],[object Object],[object Object]
[object Object]
[object Object],private  AudioFormat getFormat() {   float  sampleRate = 44100;   int  sampleSizeInBits = 8;   int  channels = 1;   boolean  signed =  true ;   boolean  bigEndian =  true ; return   new  AudioFormat( sampleRate, sampleSizeInBits, channels, signed,  bigEndian); } ,[object Object],[object Object],[object Object]
[object Object],final  AudioFormat format = getFormat();  DataLine.Info info =  new  DataLine.Info(TargetDataLine. class , format); final  TargetDataLine line =    (TargetDataLine) AudioSystem. getLine (info); line.open(format); line.start(); ,[object Object],[object Object],[object Object]
[object Object],out  =  new  ByteArrayOutputStream(); running  =  true ; try  {   while  ( running ) {   int  count = line.read( buffer , 0,  buffer . length );   if  (count > 0) {   out .write( buffer , 0, count);   }   }   out .close(); }  catch  (IOException e) {   throw new RuntimeException(e); } ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object]
The amount of cycles per second
i.e. one sine wave. ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],byte  audio[] =  out .toByteArray(); final int  amountSlices = audio. length / SLICE_SIZE ; Complex[][] results =  new  Complex[amountChucks][]; for ( int  slice = 0;slice < amountSlices; slice++) {   Complex[] complex =  new  Complex[ SLICE_SIZE ];   for ( int  i = 0;i< SLICE_SIZE ;i++) {   complex[i] =  new  Complex(audio[(slice* SLICE_SIZE )+i], 0);   }   results[slice] = FFT. fft (complex); } ,[object Object],[object Object],[object Object]
[object Object],Spectum Analyzer A spectrum analyzer or spectral analyzer is a device used to examine the  spectral composition  of some electrical,  acoustic , or optical  waveform. ,[object Object],[object Object],[object Object]
Demo:  Aphex Twin
[object Object]
[object Object]
34 41 92 129 186
39 41 117 130 218
40 42 106 129 191
40 47 117 121 217
40 53 81 129 208
40 48 109 132 260
39 45 89 135 247
40 42 84 125 251
40 41 81 121 232
38 42 113 131 245 (etc...) ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],public   void  harvest(File rootDirectory) {   String[] itemsInDirectory = rootDirectory.list();     for (String itemInDirectory:itemsInDirectory) {   if (itemInDirectory.endsWith( &quot;.mp3&quot; )) {   //Assume mp3 file   File mp3File =  new  File(mp3Directory, itemInDirectory);   captureAudio(mp3File);   }  else   if ( new  File(mp3Directory, itemInDirectory).isDirectory()) {   //Directory? Recurse!   harvest( new  File(mp3Directory, itemInDirectory));   }   } } ,[object Object],[object Object],[object Object]
[object Object],[object Object]

More Related Content

What's hot

Audio and Video streaming.ppt
Audio and Video streaming.pptAudio and Video streaming.ppt
Audio and Video streaming.ppt
Videoguy
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentation
Amandeep Kaur
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
wasrse
 
Digital Forensics best practices with the use of open source tools and admiss...
Digital Forensics best practices with the use of open source tools and admiss...Digital Forensics best practices with the use of open source tools and admiss...
Digital Forensics best practices with the use of open source tools and admiss...
Sagar Rahurkar
 

What's hot (20)

PBKDF2: Storing Sensitive Data Securely in Android Applications
PBKDF2: Storing Sensitive Data Securely in Android ApplicationsPBKDF2: Storing Sensitive Data Securely in Android Applications
PBKDF2: Storing Sensitive Data Securely in Android Applications
 
Mel frequency cepstral coefficient (mfcc)
Mel frequency cepstral coefficient (mfcc)Mel frequency cepstral coefficient (mfcc)
Mel frequency cepstral coefficient (mfcc)
 
Audio and Video streaming.ppt
Audio and Video streaming.pptAudio and Video streaming.ppt
Audio and Video streaming.ppt
 
Firewall presentation
Firewall presentationFirewall presentation
Firewall presentation
 
Difference between wavelet transform and fourier transform
Difference between wavelet transform and fourier transformDifference between wavelet transform and fourier transform
Difference between wavelet transform and fourier transform
 
Introductory Lecture to Audio Signal Processing
Introductory Lecture to Audio Signal ProcessingIntroductory Lecture to Audio Signal Processing
Introductory Lecture to Audio Signal Processing
 
Block codes
Block codesBlock codes
Block codes
 
MacOS forensics and anti-forensics (DC Lviv 2019) presentation
MacOS forensics and anti-forensics (DC Lviv 2019) presentationMacOS forensics and anti-forensics (DC Lviv 2019) presentation
MacOS forensics and anti-forensics (DC Lviv 2019) presentation
 
Domain name system
Domain name systemDomain name system
Domain name system
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
 
Introduction to pcDuino
Introduction to pcDuinoIntroduction to pcDuino
Introduction to pcDuino
 
Ppt on audio file formats
Ppt on audio file formatsPpt on audio file formats
Ppt on audio file formats
 
Introduction to forensic imaging
Introduction to forensic imagingIntroduction to forensic imaging
Introduction to forensic imaging
 
Audio compression
Audio compressionAudio compression
Audio compression
 
tcp ip protocols.ppt
tcp ip protocols.ppttcp ip protocols.ppt
tcp ip protocols.ppt
 
Digital Forensics best practices with the use of open source tools and admiss...
Digital Forensics best practices with the use of open source tools and admiss...Digital Forensics best practices with the use of open source tools and admiss...
Digital Forensics best practices with the use of open source tools and admiss...
 
Client server model
Client server modelClient server model
Client server model
 
SPEECH RECOGNITION USING NEURAL NETWORK
SPEECH RECOGNITION USING NEURAL NETWORK SPEECH RECOGNITION USING NEURAL NETWORK
SPEECH RECOGNITION USING NEURAL NETWORK
 
speech processing basics
speech processing basicsspeech processing basics
speech processing basics
 
Speech Recognition
Speech Recognition Speech Recognition
Speech Recognition
 

Viewers also liked

Права_споживачів_комунальних_послуг
Права_споживачів_комунальних_послугПрава_споживачів_комунальних_послуг
Права_споживачів_комунальних_послуг
Vitalij Misjats
 
Evaluation question 1 - Jemima Chamberlin
Evaluation question 1 - Jemima ChamberlinEvaluation question 1 - Jemima Chamberlin
Evaluation question 1 - Jemima Chamberlin
longroadmedia14
 
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
SlideTeam.net
 
Social Enterprise Comes to Life with Integration
Social Enterprise Comes to Life with IntegrationSocial Enterprise Comes to Life with Integration
Social Enterprise Comes to Life with Integration
Configero
 
Средство индивидуального перемещения "СИП-С"
Средство индивидуального перемещения "СИП-С"Средство индивидуального перемещения "СИП-С"
Средство индивидуального перемещения "СИП-С"
kulibin
 

Viewers also liked (20)

Supply Chain It Convergence MBA talk
Supply Chain It Convergence MBA talkSupply Chain It Convergence MBA talk
Supply Chain It Convergence MBA talk
 
Green Economy and Timber Value Chains
Green Economy and Timber Value ChainsGreen Economy and Timber Value Chains
Green Economy and Timber Value Chains
 
A value-chain approach - Forest-based Sector Technology Platform FTP
A value-chain approach - Forest-based Sector Technology Platform FTPA value-chain approach - Forest-based Sector Technology Platform FTP
A value-chain approach - Forest-based Sector Technology Platform FTP
 
The Great Awakening
The Great AwakeningThe Great Awakening
The Great Awakening
 
Presentacion entornos
Presentacion entornosPresentacion entornos
Presentacion entornos
 
3º básico a semana 02 al 06 mayo
3º básico a  semana 02  al 06 mayo3º básico a  semana 02  al 06 mayo
3º básico a semana 02 al 06 mayo
 
Права_споживачів_комунальних_послуг
Права_споживачів_комунальних_послугПрава_споживачів_комунальних_послуг
Права_споживачів_комунальних_послуг
 
Become a Formula Ninja
Become a Formula NinjaBecome a Formula Ninja
Become a Formula Ninja
 
Wuletawu Abera Ph.D. defense
Wuletawu Abera Ph.D. defenseWuletawu Abera Ph.D. defense
Wuletawu Abera Ph.D. defense
 
Evaluation question 1 - Jemima Chamberlin
Evaluation question 1 - Jemima ChamberlinEvaluation question 1 - Jemima Chamberlin
Evaluation question 1 - Jemima Chamberlin
 
テストプラン
テストプランテストプラン
テストプラン
 
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
3 d pie chart circular puzzle with hole in center process 9 stages style 1 po...
 
Sistema de Liquidación Directa Cret@
Sistema de Liquidación Directa Cret@Sistema de Liquidación Directa Cret@
Sistema de Liquidación Directa Cret@
 
Social Enterprise Comes to Life with Integration
Social Enterprise Comes to Life with IntegrationSocial Enterprise Comes to Life with Integration
Social Enterprise Comes to Life with Integration
 
Средство индивидуального перемещения "СИП-С"
Средство индивидуального перемещения "СИП-С"Средство индивидуального перемещения "СИП-С"
Средство индивидуального перемещения "СИП-С"
 
How to wear a hard hat
How to wear a hard hatHow to wear a hard hat
How to wear a hard hat
 
HOW TO SET-UP A FREE BLOG USING BLOGGER TO PROMOTE YOUR BOOKS AND BRAND YOURSELF
HOW TO SET-UP A FREE BLOG USING BLOGGER TO PROMOTE YOUR BOOKS AND BRAND YOURSELFHOW TO SET-UP A FREE BLOG USING BLOGGER TO PROMOTE YOUR BOOKS AND BRAND YOURSELF
HOW TO SET-UP A FREE BLOG USING BLOGGER TO PROMOTE YOUR BOOKS AND BRAND YOURSELF
 
July 12, 2016 Webcast for the Management of Technology MS at NYU Tandon Online
July 12, 2016 Webcast for the Management of Technology MS at NYU Tandon OnlineJuly 12, 2016 Webcast for the Management of Technology MS at NYU Tandon Online
July 12, 2016 Webcast for the Management of Technology MS at NYU Tandon Online
 
British Galleries 2002
British Galleries 2002British Galleries 2002
British Galleries 2002
 
Mind-mapping for Developers
Mind-mapping for DevelopersMind-mapping for Developers
Mind-mapping for Developers
 

Similar to What Shazam doesn't want you to know

Automatic subtitle generation
Automatic subtitle generationAutomatic subtitle generation
Automatic subtitle generation
tanyasaxena1611
 
Sound recording glossary updated
Sound recording glossary updated Sound recording glossary updated
Sound recording glossary updated
TomCrook
 
Sound recording glossary tom crook
Sound recording glossary tom crookSound recording glossary tom crook
Sound recording glossary tom crook
TomCrook
 
gegerageSound recording glossary tom crook
gegerageSound recording glossary tom crookgegerageSound recording glossary tom crook
gegerageSound recording glossary tom crook
TomCrook
 
Ig2 task 1 work sheet
Ig2 task 1 work sheetIg2 task 1 work sheet
Ig2 task 1 work sheet
Luke Summers
 

Similar to What Shazam doesn't want you to know (20)

Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
 
Automatic subtitle generation
Automatic subtitle generationAutomatic subtitle generation
Automatic subtitle generation
 
Deep dive into Android’s audio latency problem
Deep dive into Android’s audio latency problemDeep dive into Android’s audio latency problem
Deep dive into Android’s audio latency problem
 
Audio Fingerprinting Introduction
Audio Fingerprinting IntroductionAudio Fingerprinting Introduction
Audio Fingerprinting Introduction
 
Digital signal processing through speech, hearing, and Python
Digital signal processing through speech, hearing, and PythonDigital signal processing through speech, hearing, and Python
Digital signal processing through speech, hearing, and Python
 
Music as data
Music as dataMusic as data
Music as data
 
A CTF Hackers Toolbox
A CTF Hackers ToolboxA CTF Hackers Toolbox
A CTF Hackers Toolbox
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Encrypted Traffic Mining
Encrypted Traffic MiningEncrypted Traffic Mining
Encrypted Traffic Mining
 
Sound recording glossary updated
Sound recording glossary updated Sound recording glossary updated
Sound recording glossary updated
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Enhancing Free PBX with Adhearsion at Fosdem 2012
Enhancing Free PBX with Adhearsion at Fosdem 2012Enhancing Free PBX with Adhearsion at Fosdem 2012
Enhancing Free PBX with Adhearsion at Fosdem 2012
 
Sound recording glossary tom crook
Sound recording glossary tom crookSound recording glossary tom crook
Sound recording glossary tom crook
 
gegerageSound recording glossary tom crook
gegerageSound recording glossary tom crookgegerageSound recording glossary tom crook
gegerageSound recording glossary tom crook
 
Fourier project presentation
Fourier project  presentationFourier project  presentation
Fourier project presentation
 
Digital speech within 125 hz bandwidth (DS-125)
Digital speech within 125 hz bandwidth (DS-125)Digital speech within 125 hz bandwidth (DS-125)
Digital speech within 125 hz bandwidth (DS-125)
 
Ig2 task 1 work sheet
Ig2 task 1 work sheetIg2 task 1 work sheet
Ig2 task 1 work sheet
 
Ig2 task 1 re edit version
Ig2 task 1 re edit versionIg2 task 1 re edit version
Ig2 task 1 re edit version
 
Otto AI
Otto AIOtto AI
Otto AI
 
Ig2 task 1 work sheet
Ig2 task 1 work sheetIg2 task 1 work sheet
Ig2 task 1 work sheet
 

Recently uploaded

Recently uploaded (20)

Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 

What Shazam doesn't want you to know