Expand my Community achievements bar.

Audio Publisher & Subscriber problem

Avatar

Former Community Member

I always hear my voice when I chat with Audio publisher and Subscriber .

What can I do to remove my own voice when I chat with others??

I have tried to remove Audio Subscriber component, but I still hear my own voice whether I use a headset or not.

Please help me !! thanks!!

4 Replies

Avatar

Former Community Member

In one instance ,you are hearing audio? That should not be possible. Run

the Audio example in sampleApps folder and let us know if you are

hearing your own audio in an instance.

If you don't hear while running the sampleApp, you must be doing

something wrong. Send a simple sample code for in that case that

reproduces the issue.

Thanks

Hironmay Basu

Avatar

Former Community Member

yes , I am hearing my own voice in just one instance..

my situation is that i enter the Audio sample application wearing a headphone, and use microphone on my notebook.

when I start my audio, I really hear my own audio from my headphone.

may you try this audio sample on my server, I did not modify any thing.
http://www.confu-z.com/flextest/audio.html

I always hearing my audio so I can not chat to another one smoothly.

Is this a bug ?

please help me , thanks!

Avatar

Former Community Member

here is parts of my application related with Audio publish:

Is there any thing wrong?

private function actAudio():void

{

if (btn_speak.label == "speak")

{

audioPub.publish();

audioPub.useEchoSuppression = true;

//audioPub.

if (mics) {

activityTimer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);

activityTimer.start();

}

btn_speak.label = "stop speak";

//audioPub.microphone.codec = SoundCodec.SPEEX;

}

else

{

audioPub.stop();

if (mics) {

activityTimer.removeEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);

activityTimer.stop();

}

activityProgress.setProgress(0,100);

btn_speak.label = "speak";

}

}

<fx:Declarations>

<mx:Parallel id="sequenceEffect">

<mx:Fade id="beOut"  duration="1000"  />

<mx:WipeDown duration="1000" />

<!--<mx:Glow duration="300" />-->

<!--<mx:Blur id="beIn" blurXFrom="30" blurYFrom="30" blurXTo="0" blurYTo="0" duration="200" />-->

</mx:Parallel>

<rtc:AdobeHSAuthenticator id="auth" userName="{User_Account}" password="{User_Password}"/>

<rtc:AdobeHSAuthenticator id="auth1" userName="{User_Account}"/>

</fx:Declarations>

<rtc:ConnectSessionContainer id="cSession" autoLogin="false" authenticator="{auth}" width="100%" height="100%" roomURL="https://collaboration.adobelivecycle.com/mark8988/room{ClassRoom_ID}" synchronizationChange="onSessionEventNotification(event)" error="onSessionEventNotification(event)">

<mx:HBox borderStyle="solid"

paddingTop="10"

paddingBottom="10"

paddingLeft="5"

paddingRight="5"

width="100%"

horizontalCenter="0"

top="5"

backgroundColor="#767676"

cornerRadius="15"

borderThickness="3" height="100%" horizontalAlign="left">

<mx:VBox width="30%" height="100%">

<mx:Panel width="100%" height="50%" layout="absolute" backgroundColor="#FFFFFF" title="{classname}" fontSize="12">

<mx:VBox height="100%" width="100%">

<rtc:WebCamera id="sharedWC" width="100%" height="90%"/>

<mx:HBox width="100%" horizontalGap="2" height="10%">

<rtc:AudioPublisher id="audioPub" height="0"/>

<mx:Label text=" voice:" fontSize="12"/>

<mx:ProgressBar id="activityProgress" minimum="0" maximum="100" mode="manual" label="" height="19" width="35%"/>

<mx:Label text=" volumn:" fontSize="12"/>

<mx:HSlider id="gainSlider" minimum="0" maximum="100" width="80" value="{audioPub.gain}" change="onGainChange(event)" />

<mx:Button id="btn_speak" label="speek" click="actAudio()" />

</mx:HBox>

</mx:VBox>

</mx:Panel>

<mx:Panel width="100%" height="50%" layout="absolute" backgroundColor="#FFFFFF">

<rtc:SimpleChat id="sharedSC" width="100%" height="100%"/>

</mx:Panel>

</mx:VBox>

<mx:VBox width="70%" height="100%">

<mx:ToggleButtonBar dataProvider="{pagesStack}" id="pagesButton" selectedIndex="1" fontSize="12" styleName="buttonStyle">

</mx:ToggleButtonBar>

<mx:ViewStack id="pagesStack" width="100%" height="100%" change="setupStack_changeHandler(event)">

<mx:HBox label="白板" width="100%" height="100%">

<rtc:SharedWhiteBoard id="sharedWB" width="100%" height="100%"/>

</mx:HBox>

<mx:VBox label="共享桌面" width="100%" height="100%">

<mx:ViewStack id="shareType" width="100%" height="100%" selectedIndex="{isTeacher}">

<mx:VBox id="displayArea" creationComplete="initSubscribe()">

</mx:VBox>

<mx:VBox>

<rtc:ScreenSharePublisher id="sspublisher" playerVersion="10.1"/>

<mx:Label id="publisherid" text=""/>

<mx:HBox>

<mx:Button id="startss_bt" label="share screen" click="startSS()"/>

<mx:Button id="pause_bt" label="pause" click="pauseSS()" enabled="false"/>

<mx:Button id="stopss_bt" label="stop share screen" click="stopSS()" enabled="false"/>

</mx:HBox>

</mx:VBox>

</mx:ViewStack>

</mx:VBox>

<mx:VBox label="Docs" width="100%" height="100%">

<mx:DataGrid id="_fileGrid" dataProvider="{_fileDescriptors}" width="100%" height="90%">

<mx:columns>

<mx:DataGridColumn dataField="name" fontSize="12" headerText="file name"/>

<mx:DataGridColumn dataField="size" fontSize="12" headerText="file size"/>      

</mx:columns>

</mx:DataGrid>

<mx:HBox>

<mx:Button id="upload_btn" label="upload" click="onUploadClick()"/>

<mx:Button id="download_btn" label="download" click="onDownloadClick()"/>

<mx:Button id="delete_btn" label="delete" click="onDeleteClick()"/>

</mx:HBox>

</mx:VBox>

</mx:ViewStack>

</mx:VBox>

</mx:HBox>

</rtc:ConnectSessionContainer>

Avatar

Former Community Member

can anybody help me ??

what's wrong with my app ??