Flash :: Encoding Speex Into A SWF Version 10 Sound Stream

Mar 1, 2012

Adobe's "SWF File Format Specification v10" says that Speex encoded data can be used for streaming sound (a little clarification of the "streaming sound" definition here: "The SWF file format supports a streaming sound mode where sound data is played and downloaded in tight synchronization with the timeline. In this mode, sound packets are stored with each frame." - this has nothing to do with any FMS streaming, no ActionScript needed - just plain SWF).This should be accomplished by using a single SoundStreamHead2 tag with StreamSoundCompression set to 11 (which means "Speex", as stated in the abovementioned Specification) and then N pairs of ShowFrame and SoundStreamBlock tags. However, this does not work - Flash Player plays no sound when playing the SWF generated by me this way. Please note, that I am capable of generating such SWFs containing streamed MP3 or PCM data, which then play perfectly. Just not Speex...

I strictly conform to the Specification:URL...I tried the streaming sound approach as well as the event sound - both do not work.Moreover, I was not able to find (anywhere on the Internet) any sample SWF with streaming sound (nor event sound) encoded in Speex. Do they even exist? Anyway, Flash CS5.5 is not capable of generating them.I would just like to know whether Speex support for SWF streaming sound can be found anywhere else than in the Specification. (I know that FLV can contain Speex and that Flash Player can stream Speex from a microphone and that FMS can stream Speex to its clients, but this is not what I am asking for)

View 1 Replies


Similar Posts:


Actionscript 3 :: Flash/Flex Speex Audio Decode, To Play A Speex File?

Dec 7, 2011

I want to play *.spx files which encoded by Speex on the Web.But I have no knowledge of Flash/Flex or any Flash Audio codec. After Google search for a whole day, I got some solutions, that is:

Do something wrapping Speex files with a FLV container because that the Speex is only playable as the audio codec in a FLV container.Now I can play a SPX-Audio-Only FLV file in Flex, I use netStream.play("audio-only-speex.flv"), But I donot know how to wrap a Spx file with FLV container using ActionScript.I have never heard FMS stuffs before, as well as I'm not sure whether my virtual host can support or not...Convert every Spx files to MP3.

I think the best solution is decoding Spx in AS3, Yes, I'd like to make a Spx Flash Player.So, I downloaded Speex Library from speex.org, installed Adobe Alchemy. After ./configure;make the libspeex, build libspeex/speex.c out a libspeex.swc via Alchemy. then, I donot know how to do next. How can I decode the speex audio with AS3? My libspeex.swc: [url].....

In addtion, should I rewrite the libspeex using Alchemy API before build the libspeex.swc? Although I am not professional in AS, but I have a strong ability to learn.

View 2 Replies

ActionScript 3.0 :: Flash Client - Publish Different Encoding Quality Stream

Jun 12, 2009

I use wowza server and need to build a flash client to publish different encoding qualities streams. Does it has any open source or paid with source code flash client products?

View 3 Replies

Media Server :: Protecting Live Stream Encoding URL

Apr 21, 2010

We set up a Flash Media Server and we are trying to figure out how to protect our live encoding url. Seems like anyone with a Flash Media Encoder and who knew the location of our server could publish a live stream.

View 13 Replies

AS3 :: Flash - How To Perform Encoding Of A Wave File Into Base64 Encoding

Aug 1, 2011

I need to perform encoding of a wav file into base64...

View 2 Replies

Professional :: Edited Sound In Flash 5.5 Doesn't Export To Published Version?

Jun 1, 2011

I have an MP3 file in Flash 5.5 that I have edited in the properties panel of the frame where the sound is...I basically cut a couple seconds off the beginning by editing the timeline. It plays fine when I'm in Flash, but when I publish the movie, the sound is published unedited.

View 3 Replies

Professional :: Sound Stream From One Clip Playing Over Stream From Another

Jan 23, 2011

I have a layout with narration and a nav bar. When I click a nav button for section 2, the audio from section 1 (set to stream) continues to play over the audio for section 2. This cumulates so if I click buttons for sections 3, 4 and 5, I get five audio files playing on top of each other. Sections are individual movie clips with embedded audio streaming on a Sounds layer in each movie clip.

View 3 Replies

Sound Stream From One Clip Plys Over Stream From Another?

Jan 24, 2011

I have a narration and a nav bar. When I click the button for Section 2, the audio for Section 1 continues to play on top of the audio for Section 2.

View 1 Replies

Read Using C++ (C#) Sound Stream Sent By Flash?

Feb 28, 2010

I need to read sound stream sent by flash audio in my C++ application (C++ is not a real limitation, it may be C# or any other desktop language). Now flash app sends audio to another flash app but I need to receive the same audio by desktop application.So, is there a standard or best way how to do it?

View 5 Replies

Media Server :: Send Sound With Stream (both Sound And Mic Audio)?

Oct 6, 2011

I have a broadcasting project that I've got where the host of the show can have multiple sound effects they can use on their show.I'm wondering if the only way to go about this is for all the clients listening to the show need to download the mp3 of that sound effect or if the sound effect could come from the host ...like combining his mic (for his voice) but also straight audio (the sound effect) into the stream.

View 1 Replies

Professional :: Flash - Animation With Stream Sound Not Playing In Mac?

Jul 29, 2011

I have made a 5 min animation with stream sound. Its playing perfectly in PC. But in mac, its not playing. Stream sound starts from frame 60. So mac plays the swf plays till 60 frame, after that it pauses. I tried importing different sound format (wav, aif, mp3) and tried with all sound export setting but the problem remain same; its playing only till 60.When i removed the sound, it played till end. Even with event sound, it plays till end. But with stream sound, the problem. The problem is only in mac; in pc its perfect.I am using VMware Mac OS x leopard in window xp for testing purpose.

View 2 Replies

Flex :: API For Speex Codec In Flash

Apr 16, 2010

With AIR 2 allowing access to mic data, it's possible to save/process audio locally. Adobe provides a WAVWriter example but is there any API access to the Speex codec?

View 1 Replies

ActionScript 3.0 :: Get Version String Of Current Flash Player Version

Sep 21, 2010

a client asked me to incorporate a flash version check in a flash application i made for him.it should read something like: "you have flash player 10.x.x.x.x.x.x.x the current version is 10.1.x.x.x.x.x.x"the user veriosn is easy to get with Capabilities.versionbut is there an url on adobe's site to get the string of the current downloadable version from?

View 6 Replies

Python :: Django - Check A SWF's Flash Version And ActionScript Version?

Mar 1, 2012

I need to validate an uploaded SWF to ensure it meets certain Flash and ActionScript version limitations. Anyone know a good Python library to parse metadata out of a SWF?

View 2 Replies

Professional :: Get Option Of Version Flash Version 10 In Flash Tab Of File>Publish Settings?

May 22, 2010

i m using adobe flash cs3 with AS3 . I have updated my flash player in version 10 and it's activeX. But while I gonna publishing it , I do not get option of version Flash Version 10 in Flash Tab of File>Publish Settings. How, can I have option of Flash Player 10 ?

View 1 Replies

Upgrade The SDK To Version 8 Or 9 Or Release A Updated Flash Version For The Wii

Jun 22, 2007

Are there any plans to upgrade the SDK to version 8 or 9 or release a updated flash version for the Wii. It's ridiculous that Adobe has not done this already considering the sheer volume of people using the Wii web browser.

View 4 Replies

Actionscript 3 :: Adobe Flash : Playing Speex Audio From A File

Aug 5, 2010

I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code -

var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);

[Code]....

I tested the above code with .flv videos and AAC encoded audio files and it works just fine. But when I try stream_ns.play("sample.spx") I get a stream not found exception.

Am I using the wrong container (.spx) for speex audio. Is playing speex audio from a file supported?

View 4 Replies

Flash :: Enable Speex Codec On Microphone Object In Flex 4?

Nov 23, 2010

From what I have read, using Speek over Nellymoser is advantageous, but I can't figure out how to use it with a Flex 4 Microphone object. For instance, the last code line:

[Code]...

View 1 Replies

Flex :: Play Speex Encoded Audio In Flash Player?

Mar 22, 2011

I am able to record sound from microphone, encode it using SPEEX and write into ByteArray. I want to play it back. If I try using Sound object the audio is messed up. Speex uses 16kHz for encoding and Sound Object needs 44.1kHz for playing audio. How am I supposed to play this encoded sound.

View 1 Replies

Actionscript 3 :: Flash SPEEX Codec Conversion For Google Speech API

Sep 1, 2011

People have figured out how to use the Google Speech API (Speech-To-Text). I'm trying to get it working with Flash Speex codec, and I just can't figure it out. I've tried inserting frame size byte before each 160 bytes (as some sources say), but this doesn't work. So I post a challenge to somehow translate the flash speex bytes for Google Speech API to understand. Here is basic flex code:

[Code]....

View 1 Replies

Actionscript 3 :: Adobe Flash : Playing Speex Audio From A File?

Apr 8, 2005

I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code -

var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);

[code].....

View 1 Replies

Process Flex/Flash SPEEX Audio Data On The Server Side?

May 4, 2011

I'm implementing a very simple audio-only RTMP server.I have my client code like this:

// get the default mic
var mic:Microphone= Microphone.getMicrophone();
// best quality (picks up all sounds, no transmission interruptions)[code].....

Then on the server, I keep receiving audio packets with size of either 43 bytes or 11 bytes (no other sizes found yet).My questions are:

Why do I get size of either 43 bytes or 11 bytes (from SPEEX encoding?)?

Is the 43 bytes = 1 head byte + 42 data bytes?

What is the size of 11 bytes?

How should I process or convert the SPEEX to raw data, so that my server side app can use this audio data? My current implementation:

I pick up all 43-byte packets (drop all 11-byte packets);

Skip the first 1 byte;

Decode the left 42 bytes using Speex library.

How should I convert the raw data back to SPEEX audio data?

View 1 Replies

ActionScript 3.0 :: Current FP Debug Version - Error "Flex Builder Requires A More Recent Version Of Flash Player"?

Jul 14, 2009

I identify my current installed debug version? Basically, I am using Flex 3, for past 2-3 days whenever I launch any Project or debug it, I get the message box saying "Flex Builder requires a more recent version of Flash Player." It says my curent FP as 9.0.115.0 and debug version as 9.0.45.0. However, my actual FP version if FP 10.0.22.87. I don't understand why this confussion! I don't know how can I know my actual version of Debug player.

View 2 Replies

ActionScript 3.0 :: Stopping A Stream Sound?

Aug 5, 2009

how do we stop a streaming sound?

sound.stop();
or
sound.close();

View 1 Replies

Sound Choppy In Stream Mode.?

Oct 9, 2009

I placed my audio in the timeline, but I want it streamed rather than event driven because people will be jumping around the timeline When I change the sound to Stream the audio gets incredibly choppy.

View 6 Replies

ActionScript 3.0 :: Stoping Sound Stream?

Oct 20, 2009

i make my first flash homepage this time, and i got a problem with my intro.It takes a lot of time to make this work because its my first projekt.So iïve made a flv file as the movie clip and an mp3 for the sound.And i lode it by Actio Script.Here is my code.

//Intro-Video laden
var IntroConnection:NetConnection = new NetConnection();
var IntroStream:NetStream;

[code]........

View 0 Replies

ActionScript 3.0 :: Sound Stream Is Not Available Anymore?

Sep 11, 2010

I load icecast stream into Sound object, using some tricks to overcome memory leakage. Generally it works quite well, unless someone reloads either icecast or stream source program on the server. In that case flash player just mutes itself forever. I'm looking for some way to detect this case internally and reload the stream without refreshing web-page.My problem is caused by the fact that onComplete event for some reason doesn't trigger, maybe there's another event happening, but I just couldn't find any.One thing that I tried was noting down stream progress point and checking consequently for 200 times if it stays the same and if it did I was manually calling stream reload function.

View 1 Replies

ActionScript 3.0 :: Open And Close A Sound Stream?

Jan 11, 2010

I am stumbling across this issue as I open and close a sound stream. This is the code I use, not sure if closing and opening a stream on the same function is a good idea.

[Code]...

View 4 Replies

Professional :: Sound Synch: Stream Vs Event

Apr 23, 2010

I'm working in Flash CS3. My animation is about a minute long, with a single audio track that plays from beginning to end. The sound quality is noticably better when I set the synching to Event, but unless I set it to Stream the sound falls behind the animation. Is there any way to maintain proper synchronization with the Event setting? Also: will the lag be consistent on different machines and players? I thought about adjusting the timing of the animation so that it matches the Event-set sound in playback, but that's such a clunky a solution it seems likely to cause other problems.

View 2 Replies

Actionscript 3 :: Sound Stream Stops Loading?

Jan 28, 2011

I have a little sound stream script here, but sometimes if you press play to the next track before the current has done loading the next track doesn't comeplete loading

package player {
import flash.events.Event;
import flash.display.Sprite;

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved