Interface StreamOptions
public interface StreamOptions
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classGets or Sets codecstatic classGets or Sets sampleRate -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamOptions.Builderbuilder()Getting buildergetCodec()Defines the audio codec/format used for the stream audio payload.Defines the audio sampling rate (Hz) used for the stream.Defines the version of the stream protocol.
-
Method Details
-
getVersion
Integer getVersion()Defines the version of the stream protocol.- Returns:
- version
-
getCodec
StreamOptions.CodecEnum getCodec()Defines the audio codec/format used for the stream audio payload.Currently, only
PCMis supported (uncompressed raw audio). UsesampleRateto configure the sampling rate for the stream.- Returns:
- codec
-
getSampleRate
StreamOptions.SampleRateEnum 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
Getting builder- Returns:
- New Builder instance
-