Interface StreamOptions


public interface StreamOptions
  • Method Details

    • getVersion

      Integer getVersion()
      Defines the version of the stream protocol.
      Returns:
      version
    • getCodec

      Defines the audio codec/format used for the stream audio payload.

      Currently, only PCM is supported (uncompressed raw audio). Use sampleRate to configure the sampling rate for the stream.

      Returns:
      codec
    • getSampleRate

      Defines the audio sampling rate (Hz) used for the stream.

      For calls that traverse the PSTN, audio is typically sampled at 8 kHz, so using a higher value will not improve perceived quality. Higher sample rates can be useful for non-PSTN scenarios (for example, SIP/streaming paths), but will increase bandwidth usage and processing load.

      Returns:
      sampleRate
    • builder

      static StreamOptions.Builder builder()
      Getting builder
      Returns:
      New Builder instance