public interface AudioController
AudioController
object is only valid while the SinchClient is started. As soon as the
SinchClient is stopped, this object is invalidated and must not be
used.| Modifier and Type | Interface and Description |
|---|---|
static class |
AudioController.UseSpeakerphone |
| Modifier and Type | Method and Description |
|---|---|
void |
disableAutomaticAudioRouting()
Disables automatic audio routing (AAR).
|
void |
disableSpeaker()
Disables speaker mode.
|
void |
enableAutomaticAudioRouting(boolean manageBluetoothAudio,
AudioController.UseSpeakerphone useSpeakerphone)
Enables automatic audio routing between earpiece, speakerphone, wired headset and bluetooth audio devices.
|
void |
enableSpeaker()
Enables speaker mode.
|
void |
mute()
Mutes audio input.
|
void |
setLocalAudioListener(LocalAudioListener listener)
Sets a listener for the local audio listener.
|
void |
unmute()
Unmutes audio input.
|
void mute()
void unmute()
void enableSpeaker()
void disableSpeaker()
void setLocalAudioListener(LocalAudioListener listener)
listener - will be called when the recording is being started, stopped and
when new audio buffer is available.LocalAudioListenervoid enableAutomaticAudioRouting(boolean manageBluetoothAudio,
AudioController.UseSpeakerphone useSpeakerphone)
manageBluetoothAudio - if set to true, allows to automatically reroute audio to Bluetooth headset when available. Fires MissingPermissionException if android.Manifest.permission.BLUETOOTH is not granted.useSpeakerphone - can be set to AudioController.UseSpeakerphone AUTO, TRUE or FALSE. AUTO mode uses proximity sensor to operate.void disableAutomaticAudioRouting()
Copyright 2016, Sinch AB