-
- All Implemented Interfaces:
public interface AudioControllerInterface for controlling different audio settings. This object is only valid while the SinchClient is started. As soon as the SinchClient is stopped, it is invalidated and must not be used.
Please see AudioController.enableAutomaticAudioRouting for advanced automatic audio routing options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAudioController.UseSpeakerphonepublic final classAudioController.AudioRoutingConfigAutomatic routing configuration data.
-
Method Summary
Modifier and Type Method Description abstract Unitmute()Mutes audio input. abstract Unitunmute()Unmutes audio input. abstract UnitenableSpeaker()Enables speaker mode. abstract UnitdisableSpeaker()Disables speaker mode. abstract UnitsetLocalAudioListener(LocalAudioListener listener)Sets a listener for the local audio listener. abstract UnitenableAutomaticAudioRouting(AudioController.AudioRoutingConfig audioRoutingConfig)Enables automatic audio routing between earpiece, speakerphone, wired headset and bluetooth audio devices. abstract UnitdisableAutomaticAudioRouting()Disables automatic audio routing (AAR). abstract BooleanisMute()Indicates whether the microphone is muted. abstract BooleanisSpeakerOn()Indicates whether the speaker is enabled. abstract BooleanisAutomaticAudioRoutingEnabled()Indicates whether the automatic audio routing is enabled. -
-
Method Detail
-
enableSpeaker
abstract Unit enableSpeaker()
Enables speaker mode.
-
disableSpeaker
abstract Unit disableSpeaker()
Disables speaker mode.
-
setLocalAudioListener
abstract Unit setLocalAudioListener(LocalAudioListener listener)
Sets a listener for the local audio listener.
- Parameters:
listener- will be called when the recording is being started, stopped and when new audio buffer is available.
-
enableAutomaticAudioRouting
abstract Unit enableAutomaticAudioRouting(AudioController.AudioRoutingConfig audioRoutingConfig)
Enables automatic audio routing between earpiece, speakerphone, wired headset and bluetooth audio devices. Priorities are following:
Bluetooth (if available and manageBluetoothAudio == true)
Wired Headset
Default audio device if AudioRoutingConfig.useSpeakerphoneState is UseSpeakerphone.SPEAKERPHONE_TRUE or UseSpeakerphone.SPEAKERPHONE_FALSE, or Proximity sensor's based decision (speakerphone / earpiece) if AudioRoutingConfig.useSpeakerphoneState is UseSpeakerphone.SPEAKERPHONE_AUTO.
Default audio device (speakerphone/ earpiece) is set using AudioRoutingConfig.useSpeakerphoneState parameter.
- Parameters:
audioRoutingConfig- automatic routing configuration data
-
disableAutomaticAudioRouting
abstract Unit disableAutomaticAudioRouting()
Disables automatic audio routing (AAR). When AAR is disabled use AudioController.enableSpeaker to toggle between speakerphone and earpiece.
-
isSpeakerOn
abstract Boolean isSpeakerOn()
Indicates whether the speaker is enabled.
-
isAutomaticAudioRoutingEnabled
abstract Boolean isAutomaticAudioRoutingEnabled()
Indicates whether the automatic audio routing is enabled.
-
-
-
-