Tonfall WAV-IO

Tonfall has a new feature called WAV-IO. It reads and writes audio data in wav-format.

Decoding a WAV results in the flash.media.Sound data format 44.1Khz,Stereo,32bit (float).
You can play it with the dynamic Sound API. Encoding can be done by simply passing the data you created in SAMPLE_DATA_EVENT to the encoder after specifying the target wav-format. You have to finalize the encoder after writing. Both processes are on the fly – processing block by block. They do not have to be processed in a single Flashplayer frame time.

Supported formats

  • 44.1Khz/8bit/Mono
  • 44.1Khz/8bit/Stereo
  • 44.1Khz/16bit/Mono
  • 44.1Khz/16bit/Stereo
  • 44.1Khz/32bit/Mono
  • 44.1Khz/32bit/Stereo

Please check out IWavIOStrategy, if you want to implement new wav-formats.

Browse source code

Decode Example

Get Adobe Flash player

8 thoughts on “Tonfall WAV-IO”

  1. Hi – very impressive! Lee Brimelow mentioned that you guys might be able to help here so here goes!

    I’m trying to capture input from the Flash mic, encode as an .mp3 and upload to a server. Do you have an .mp3 encoder class that would work?

    Many thanks for your help.

    Nick

  2. Hi,

    I am trying to play a wav file with the below format, using popforge as3 library but I cannot play it.

    [WAV Header compression: 1, channels: 1, samplingRate: 8000, bytesPerSecond: 8000, blockAlign: 1, bitsPerSample: 8]

    Is there any way I can do it?

    Many thanks
    Irshad

  3. Hi,

    Would you like to give me one example of how to use your WavEncoder to encode a byte array ? I found your DemoAudioEncoder.as in demo folder but I can not use it to encode my byte array. In this example, you only encode generated amplitudes.

    My situation is like this :
    – I use Microphone to record voice.
    – I save recorded voice to a bytes array.
    Now I want to encode that bytes array.

    Thank you so much in advance.

Comments are closed.