SlideShare uma empresa Scribd logo
1 de 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]

Mais conteúdo relacionado

Mais procurados

Digital modeling of speech signal
Digital modeling of speech signalDigital modeling of speech signal
Digital modeling of speech signal
Vinodhini
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
Agam Goel
 
Voice morphing document
Voice morphing documentVoice morphing document
Voice morphing document
himadrigupta
 

Mais procurados (20)

Speech Signal Processing
Speech Signal ProcessingSpeech Signal Processing
Speech Signal Processing
 
Wavelets presentation
Wavelets presentationWavelets presentation
Wavelets presentation
 
Text independent speaker recognition system
Text independent speaker recognition systemText independent speaker recognition system
Text independent speaker recognition system
 
Digital modeling of speech signal
Digital modeling of speech signalDigital modeling of speech signal
Digital modeling of speech signal
 
Speech signal processing lizy
Speech signal processing lizySpeech signal processing lizy
Speech signal processing lizy
 
Introduction to wavelet transform with applications to dsp
Introduction to wavelet transform with applications to dspIntroduction to wavelet transform with applications to dsp
Introduction to wavelet transform with applications to dsp
 
Synthesizers
SynthesizersSynthesizers
Synthesizers
 
Introductory Lecture to Audio Signal Processing
Introductory Lecture to Audio Signal ProcessingIntroductory Lecture to Audio Signal Processing
Introductory Lecture to Audio Signal Processing
 
8051 ch9
8051 ch98051 ch9
8051 ch9
 
Recording and reproduction system
Recording and reproduction systemRecording and reproduction system
Recording and reproduction system
 
Audio Fingerprinting Introduction
Audio Fingerprinting IntroductionAudio Fingerprinting Introduction
Audio Fingerprinting Introduction
 
Beamforming and microphone arrays
Beamforming and microphone arraysBeamforming and microphone arrays
Beamforming and microphone arrays
 
Fundamentals of Wimax
Fundamentals of WimaxFundamentals of Wimax
Fundamentals of Wimax
 
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications IDSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
DSP_FOEHU - Lec 13 - Digital Signal Processing Applications I
 
Unit 1 speech processing
Unit 1 speech processingUnit 1 speech processing
Unit 1 speech processing
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
Imaging: X-ray and Terahertz imaging
Imaging: X-ray and Terahertz imagingImaging: X-ray and Terahertz imaging
Imaging: X-ray and Terahertz imaging
 
Surround sount system
Surround sount systemSurround sount system
Surround sount system
 
Voice morphing document
Voice morphing documentVoice morphing document
Voice morphing document
 
Phase Noise and Jitter Measurements
Phase Noise and Jitter MeasurementsPhase Noise and Jitter Measurements
Phase Noise and Jitter Measurements
 

Destaque

Права_споживачів_комунальних_послуг
Права_споживачів_комунальних_послугПрава_споживачів_комунальних_послуг
Права_споживачів_комунальних_послуг
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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 
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
 
IG1 Task 1
IG1 Task 1IG1 Task 1
IG1 Task 1
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

What Shazam doesn't want you to know