LogoLogo
ALO.ai
Developer Documentation
Developer Documentation
  • Developer Documentation
  • Developer Account
    • API Key
  • SDKs
    • Authentication
    • Chat
      • Configuration
      • Send Messages
        • Upload Files
      • Message History
      • Message Actions
      • Message Counts
      • Translation
      • Typing Indicators
      • API Reference
        • Event
        • Message
    • Presence
      • Configuration
      • Basic Usage
      • Methods
    • Audio
      • Prerequisites
      • Instantiating Audio Service
      • Connect to a Channel
      • Disconnecting Audio Service
      • Push To Talk (PTT)
      • Full Duplex
      • Mute and Unmute Audio
      • Input/Output Device Selection
        • Microphone Selection
        • Speaker Selection
      • Channel Participants
      • Text To Speech Audio (TTS)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloAudio
        • AudioUser
        • AudioChannel
        • Participant
    • Video
      • Prerequisites
      • Instantiating Video Service
      • Connect to a Channel
      • Disconnecting Video Service
      • Input Device Selection
        • Microphone Selection
        • Camera Selection
      • Publishing Streams
      • Modifying Published Streams
      • Channel Participants
      • Rendering Streams
        • Local Stream
        • Remote Streams
      • Muting/Unmuting Remote Streams
      • Recording Video (coming soon)
      • Automatic Reconnects
      • Handling Events
      • Classes
        • AloVideo
        • Participant
        • VideoChannel
        • VideoUser
  • ALO APPS
    • Overview
    • Creating Apps
    • Webhooks
      • Verifying Requests from ALO
    • Custom Action Forms
    • Using the ALO Platform API
  • ALO Platform API
    • Overview
    • Authentication
    • API
      • Actions and Periods
      • Channels
      • Channel Messages
      • Channel Users
      • Direct Message Channels
      • Direct Message Channel Chat Messages
      • Direct Message Channel Users
      • Groups
      • Periods
      • Types
      • Users
      • Video Management System
  • Misc
    • Supported Language Codes
Powered by GitBook
LogoLogo

ALO.ai

  • ALO.ai

© Copyright 2025 ALO.ai, Inc. • All Rights Reserved

On this page
  • What is Push To Talk?
  • PTT Related Events
  1. SDKs
  2. Audio

Push To Talk (PTT)

What is Push To Talk?

Push-to-talk method of communicating which is how a two-way radio works uses a “walkie-talkie” button to switch from voice reception to transmit mode. When a user is transmitting no other user on the channel can transmit. The mutex locking mechanism is what we use to ensure that only one user is transmitting at a time.

When you connect to a channel without setting isFullDuplex to true the user will be in PTT mode.

PTT Related Events

Event

Description

onPTTStateChange

This event will let you know when the PTT button is available (meaning you are connected to an audio channel and no one else is speaking). The possible states are:

AloAudio.PTT_BUTTON_STATE_AVAILABLE AloAudio.PTT_BUTTON_STATE_UNAVAILABLE

onPTTLockChange

When you successfully acquire the lock to use the PTT there will be an event with the AloAudio.PTT_LOCK_ACQUIRED state. When the lock is released the state will be AloAudio.PTT_LOCK_RELEASED

onPTTSpeakerChange

When a user acquires the PTT lock there will be an event containing information about the user that current attains the lock.

onMuteChange

When you acquire the lock there will be an event stating that you microphone is not muted. When releasing the lock the event will indicate that your microphone is muted.

PreviousDisconnecting Audio ServiceNextFull Duplex

Last updated 8 months ago