Package 

Interface AudioManager


  • 
    public interface AudioManager
    
                        

    Interface for managing audio capture, playback, and processing for voice conversations

    This interface provides comprehensive audio management including microphone input handling with permission management, speaker output control and volume management, mute/unmute functionality, and audio session configuration for optimal quality.

    • Method Detail

      • startPlayback

         abstract Unit startPlayback()

        Start audio playback for incoming audio

      • setMicMuted

         abstract Unit setMicMuted(Boolean muted)

        Set the microphone mute state

        Parameters:
        muted - true to mute microphone, false to unmute
      • setMicrophoneMuted

         abstract Unit setMicrophoneMuted(Boolean muted)

        Mute the microphone at the OS/track level

        Parameters:
        muted - true to mute, false to unmute
      • isMuted

         abstract Boolean isMuted()

        Check if the microphone is currently muted

      • setVolume

         abstract Unit setVolume(Float volume)

        Set the playback volume

        Parameters:
        volume - Volume level from 0.0 (silent) to 1.
      • getVolume

         abstract Float getVolume()

        Get the current playback volume

      • isPlaying

         abstract Boolean isPlaying()

        Check if audio playback is currently active

      • cleanup

         abstract Unit cleanup()

        Clean up audio resources Should be called when audio management is no longer needed