// Audio constraints. |
const char MediaConstraintsInterface::kEchoCancellation[] = |
"googEchoCancellation"; |
const char MediaConstraintsInterface::kExperimentalEchoCancellation[] = |
"googEchoCancellation2"; |
const char MediaConstraintsInterface::kAutoGainControl[] = |
"googAutoGainControl"; |
const char MediaConstraintsInterface::kExperimentalAutoGainControl[] = |
"googAutoGainControl2"; |
const char MediaConstraintsInterface::kNoiseSuppression[] = |
"googNoiseSuppression"; |
const char MediaConstraintsInterface::kExperimentalNoiseSuppression[] = |
"googNoiseSuppression2"; |
const char MediaConstraintsInterface::kHighpassFilter[] = |
"googHighpassFilter"; |
const char MediaConstraintsInterface::kTypingNoiseDetection[] = |
"googTypingNoiseDetection"; |
const char MediaConstraintsInterface::kAudioMirroring[] = "googAudioMirroring";
We have not found out how to give these parameters to the peerconnection in such a way that those take effect. What we have done is following: * Does the latter "addStream" and its media constraints affect on the local audio track given before to the mediaStream? If not, where does the configuration(setting the constraints) of the audioTrack is done? * How does one give options to the MediaConstraints object? We have tried in following way: my_custom_media_constraints.manadatory.add(new KeyValuePair("googNoiseSuppression", "true")); These does not take effect on the audio signal processing. The lack of examples and documentation is sometimes really frustrating, hopefully someone of you could help us, thanks in advance. -Mikael |
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry for your frustration. In general the Java API aims to mirror the C++ API so that no extra documentation is necessary (and so that extra docs don't become stale as they fall out of sync w/ the impl). The AppRTCDemo app is meant to be the canonical example.I think you've stumbled over an oversight in the Java API. In the C++ API you can specify media constraints to PeerConnectionFactoryInterface::CreateAudioSource() and then feed the resulting AudioSource to PeerConnectionFactoryInterface::CreateAudioTrack(). In the Java impl I apparently started implementing an independent AudioSource object but then didn't tie it into the API, missing the fact that that elides the only place mediaconstraints could be specified on the the track.Filed bug 2912 to track this.
Cheers,-a
public enum AecmModes { |
QUIET_EARPIECE_OR_HEADSET, EARPIECE, LOUD_EARPIECE, |
SPEAKERPHONE, LOUD_SPEAKERPHONE |
}
So would following work? * Create own JNI wrapper that creates AudioTrack with certain constraints, return that to the java-side and then give that to the peerconnection? Thanks in advance, Mikael |
--
Ami:
We are also very interested in the explanation of the bug you mention to Mikael above. We have been struggling with switching AudioSources in our application for some time now. I really appreciate you filing the bug. Can you give me any idea on when a fix will be made? We are contemplating making a code change ourselves but would rather have a final fix from you guys. You mention above that we could replace the NULL in the CreateAudioTrack method.. The second argument to the CreateAudioTrack is an AudioSourceInterface which quickly gets into the details of the code with which we are not familiar. Is there any guidance you can provide that would hopefully simplify the fix you mention above? Thanks for any help you can be.
Keith Wimberly
Ami:Could You please clarify, what exactly should be passed to CreateAudioSource()? Are there any default values that need to be passed there if there is no special requirement to audio source?
--
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ömer, Did you get it to work? Voice cancellation? Thanks in advance |