Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-10 Thread johnny lee
Where are the Actionscript Sages when you need them :(

On Mon, Aug 10, 2009 at 10:25 AM, johnny lee jlee...@gmail.com wrote:

 Thanks Latcho, can you please describe the process a little bit. What
 actually is going on? How is the FFT used to compare the wav files? Is it
 comparing header data or something? And what about MP3 files, can they be
 used instead of wav? Thanks, juju

 P.S. Has to be AS3, trying to make a Flash RIA.


 On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:


 I'd suggest you first get down in audio math and algorithms and indeed
 FFT.
 If you're done with that... choose whatever language you like and
 preferably a faster one then AS3.
 But it is not impossible to answer your question.


 johnny lee wrote:

 Hi All, how do you compare two audio files with actionscript? I heard
 something about Fast Fourier Transform, but don't understand how it
 works. What I'm trying to do is a basic voice recognition programme,
 similar to the one on symbian mobile phones where you can give word
 commands to your phone. Can this be done in actionscript?

 Thanks and cheers, juju
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-10 Thread Allandt Bik-Elliott (Receptacle)

have you seen anything like this?

http://www.communitymx.com/content/article.cfm?cid=8E9A0

just trying to get a feel for what you are trying to do

a


On 10 Aug 2009, at 09:35, johnny lee wrote:


Where are the Actionscript Sages when you need them :(

On Mon, Aug 10, 2009 at 10:25 AM, johnny lee jlee...@gmail.com  
wrote:



Thanks Latcho, can you please describe the process a little bit. What
actually is going on? How is the FFT used to compare the wav files?  
Is it
comparing header data or something? And what about MP3 files, can  
they be

used instead of wav? Thanks, juju

P.S. Has to be AS3, trying to make a Flash RIA.


On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:



I'd suggest you first get down in audio math and algorithms and  
indeed

FFT.
If you're done with that... choose whatever language you like and
preferably a faster one then AS3.
But it is not impossible to answer your question.


johnny lee wrote:

Hi All, how do you compare two audio files with actionscript? I  
heard

something about Fast Fourier Transform, but don't understand how it
works. What I'm trying to do is a basic voice recognition  
programme,

similar to the one on symbian mobile phones where you can give word
commands to your phone. Can this be done in actionscript?

Thanks and cheers, juju
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-10 Thread johnny lee
Hi Allandt, Thanks for the article link. I read through and pls correct me
if I'm wrong: You can take a snapshot of an audio file with the
computeSpectrum() method and place that data in a ByteArray object, is this
right? So, now my question is, can you take snapshots of two audio files and
compare their ByteArray objects, and then perform an action based on the
comparison? Like, the ByteArray objects match up 90% then trigger this
event.

Muchos gracias, juju

On Mon, Aug 10, 2009 at 6:24 PM, Allandt Bik-Elliott (Receptacle) 
alla...@receptacledesign.com wrote:

 have you seen anything like this?

 http://www.communitymx.com/content/article.cfm?cid=8E9A0

 just trying to get a feel for what you are trying to do

 a



 On 10 Aug 2009, at 09:35, johnny lee wrote:

  Where are the Actionscript Sages when you need them :(

 On Mon, Aug 10, 2009 at 10:25 AM, johnny lee jlee...@gmail.com wrote:

  Thanks Latcho, can you please describe the process a little bit. What
 actually is going on? How is the FFT used to compare the wav files? Is it
 comparing header data or something? And what about MP3 files, can they be
 used instead of wav? Thanks, juju

 P.S. Has to be AS3, trying to make a Flash RIA.


 On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:


 I'd suggest you first get down in audio math and algorithms and indeed
 FFT.
 If you're done with that... choose whatever language you like and
 preferably a faster one then AS3.
 But it is not impossible to answer your question.


 johnny lee wrote:

  Hi All, how do you compare two audio files with actionscript? I heard
 something about Fast Fourier Transform, but don't understand how it
 works. What I'm trying to do is a basic voice recognition programme,
 similar to the one on symbian mobile phones where you can give word
 commands to your phone. Can this be done in actionscript?

 Thanks and cheers, juju
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to compare two audio files with ActionScript?

2009-08-10 Thread Kerry Thompson
Johnny lee wrote:

 Where are the Actionscript Sages when you need them :(

They're here. I know ActionScript reasonably well, but haven't used the FFT
formulas. Writing the code to compare audio files is going to be rather
involved, I'm afraid. We can provide pointers, but, since it's your program,
I'm afraid you're stuck with the heavy lifting.

To get started, Google is your friend--AS3 FFT turned up these, among
others:
http://labs.adobe.com/wiki/index.php/Talk:ActionScript_3#computeSpectrum_an
d_FFT http://forums.adobe.com/thread/242954
http://summitprojectsflashblog.wordpress.com/2008/07/31/wave-theory-in-acti
onscript-3/

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-10 Thread Glen Pike

Hi,

   computeSpectrum will only do small chunks at a time - it might not 
give you the spectrum from the whole wave form.


   If you are trying to do Voice Recognition, you will need some 
serious computing power and ActionScript may, or may not be too slow to 
handle this.  It certainly won't work in realtime so don't expect 
miracles with the AVM.


   Speech recognition may use FFT's to help match up parts of the sound 
to pre-recorded samples, but that's as far as my knowledge goes.


   Your best bet is to look at places like http://www.voxforge.org/ and 
google for speech recognition, etc.


   Depending on your RIA, you could always find a way of cheating 
possibly...  ...e.g. find a speech-to-text engine and write a small 
application that pipes  the output into Flash, etc.


   Glen

  

  
johnny lee wrote:

Hi Allandt, Thanks for the article link. I read through and pls correct me
if I'm wrong: You can take a snapshot of an audio file with the
computeSpectrum() method and place that data in a ByteArray object, is this
right? So, now my question is, can you take snapshots of two audio files and
compare their ByteArray objects, and then perform an action based on the
comparison? Like, the ByteArray objects match up 90% then trigger this
event.

Muchos gracias, juju

On Mon, Aug 10, 2009 at 6:24 PM, Allandt Bik-Elliott (Receptacle) 
alla...@receptacledesign.com wrote:

  

have you seen anything like this?

http://www.communitymx.com/content/article.cfm?cid=8E9A0

just trying to get a feel for what you are trying to do

a



On 10 Aug 2009, at 09:35, johnny lee wrote:

 Where are the Actionscript Sages when you need them :(


On Mon, Aug 10, 2009 at 10:25 AM, johnny lee jlee...@gmail.com wrote:

 Thanks Latcho, can you please describe the process a little bit. What
  

actually is going on? How is the FFT used to compare the wav files? Is it
comparing header data or something? And what about MP3 files, can they be
used instead of wav? Thanks, juju

P.S. Has to be AS3, trying to make a Flash RIA.


On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:




I'd suggest you first get down in audio math and algorithms and indeed
FFT.
If you're done with that... choose whatever language you like and
preferably a faster one then AS3.
But it is not impossible to answer your question.


johnny lee wrote:

 Hi All, how do you compare two audio files with actionscript? I heard
  

something about Fast Fourier Transform, but don't understand how it
works. What I'm trying to do is a basic voice recognition programme,
similar to the one on symbian mobile phones where you can give word
commands to your phone. Can this be done in actionscript?

Thanks and cheers, juju
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  

 ___


Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-10 Thread johnny lee
Thanks All, this looks harder than I first thought it would be. Guess
there's no straighfoward solution.

On Mon, Aug 10, 2009 at 11:04 PM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

   computeSpectrum will only do small chunks at a time - it might not give
 you the spectrum from the whole wave form.

   If you are trying to do Voice Recognition, you will need some serious
 computing power and ActionScript may, or may not be too slow to handle this.
  It certainly won't work in realtime so don't expect miracles with the AVM.

   Speech recognition may use FFT's to help match up parts of the sound to
 pre-recorded samples, but that's as far as my knowledge goes.

   Your best bet is to look at places like http://www.voxforge.org/ and
 google for speech recognition, etc.

   Depending on your RIA, you could always find a way of cheating
 possibly...  ...e.g. find a speech-to-text engine and write a small
 application that pipes  the output into Flash, etc.

   Glen



  johnny lee wrote:

 Hi Allandt, Thanks for the article link. I read through and pls correct me
 if I'm wrong: You can take a snapshot of an audio file with the
 computeSpectrum() method and place that data in a ByteArray object, is
 this
 right? So, now my question is, can you take snapshots of two audio files
 and
 compare their ByteArray objects, and then perform an action based on the
 comparison? Like, the ByteArray objects match up 90% then trigger this
 event.

 Muchos gracias, juju

 On Mon, Aug 10, 2009 at 6:24 PM, Allandt Bik-Elliott (Receptacle) 
 alla...@receptacledesign.com wrote:



 have you seen anything like this?

 http://www.communitymx.com/content/article.cfm?cid=8E9A0

 just trying to get a feel for what you are trying to do

 a



 On 10 Aug 2009, at 09:35, johnny lee wrote:

  Where are the Actionscript Sages when you need them :(


 On Mon, Aug 10, 2009 at 10:25 AM, johnny lee jlee...@gmail.com wrote:

  Thanks Latcho, can you please describe the process a little bit. What


 actually is going on? How is the FFT used to compare the wav files? Is
 it
 comparing header data or something? And what about MP3 files, can they
 be
 used instead of wav? Thanks, juju

 P.S. Has to be AS3, trying to make a Flash RIA.


 On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:




 I'd suggest you first get down in audio math and algorithms and indeed
 FFT.
 If you're done with that... choose whatever language you like and
 preferably a faster one then AS3.
 But it is not impossible to answer your question.


 johnny lee wrote:

  Hi All, how do you compare two audio files with actionscript? I heard


 something about Fast Fourier Transform, but don't understand how it
 works. What I'm trying to do is a basic voice recognition programme,
 similar to the one on symbian mobile phones where you can give word
 commands to your phone. Can this be done in actionscript?

 Thanks and cheers, juju
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




  ___


 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-09 Thread Latcho


I'd suggest you first get down in audio math and algorithms and indeed FFT.
If you're done with that... choose whatever language you like and 
preferably a faster one then AS3.

But it is not impossible to answer your question.


johnny lee wrote:

Hi All, how do you compare two audio files with actionscript? I heard
something about Fast Fourier Transform, but don't understand how it
works. What I'm trying to do is a basic voice recognition programme,
similar to the one on symbian mobile phones where you can give word
commands to your phone. Can this be done in actionscript?

Thanks and cheers, juju
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] How to compare two audio files with ActionScript?

2009-08-09 Thread Kerry Thompson
Latcho wrote:

 I'd suggest you first get down in audio math and algorithms and indeed
FFT.
 If you're done with that... choose whatever language you like and
 preferably a faster one then AS3.

AS3 may be fast enough. Its math classes are compiled to native code, and
the loops will likely be compiled by the JIT compiler. Take a look at
http://www.noteflight.com to see what can be done with music in real time,
using AS3. I do believe the sounds are generated in real time using FFT.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with actionscript?

2009-08-09 Thread johnny lee
Thanks Latcho, can you please describe the process a little bit. What
actually is going on? How is the FFT used to compare the wav files? Is it
comparing header data or something? And what about MP3 files, can they be
used instead of wav? Thanks, juju

P.S. Has to be AS3, trying to make a Flash RIA.

On Thu, Aug 6, 2009 at 3:42 AM, Latcho spamtha...@gmail.com wrote:


 I'd suggest you first get down in audio math and algorithms and indeed FFT.
 If you're done with that... choose whatever language you like and
 preferably a faster one then AS3.
 But it is not impossible to answer your question.


 johnny lee wrote:

 Hi All, how do you compare two audio files with actionscript? I heard
 something about Fast Fourier Transform, but don't understand how it
 works. What I'm trying to do is a basic voice recognition programme,
 similar to the one on symbian mobile phones where you can give word
 commands to your phone. Can this be done in actionscript?

 Thanks and cheers, juju
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare two audio files with ActionScript?

2009-08-09 Thread johnny lee
Thanks Kerry, I'm still not understanding the process. What actually needs
to take place in order to compare two audio files? How does FFT come into
this? Thanks, juju

On Mon, Aug 10, 2009 at 5:39 AM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Latcho wrote:

  I'd suggest you first get down in audio math and algorithms and indeed
 FFT.
  If you're done with that... choose whatever language you like and
  preferably a faster one then AS3.

 AS3 may be fast enough. Its math classes are compiled to native code, and
 the loops will likely be compiled by the JIT compiler. Take a look at
 http://www.noteflight.com to see what can be done with music in real
 time,
 using AS3. I do believe the sounds are generated in real time using FFT.

 Cordially,

 Kerry Thompson

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders