IntdashAudioEncoderOption
public struct IntdashAudioEncoderOption
音声エンコーダー用のオプションを格納するクラス。
-
サンプリングレート(デフォルトは 48000)。
Declaration
Swift
public var sampleRate: Double
-
ビットレート。
Declaration
Swift
public var bitRate: Int
-
チャンネル数。現在はモノラル(1チャンネル)のみサポートしています。
Declaration
Swift
public let channel: Int
-
エンコードする音声の1フレームの長さ(Opusの場合のみ有効)。
2.5ms(0.0025)
、5ms(0.005)
、10ms(0.01)
、20ms(0.02)
、40ms(0.04)
、60ms(0.06)
のいずれかで指定します。Declaration
Swift
public var frameDuration: TimeInterval?
-
IntdashAudioEncoderOption を生成します。
Declaration
Swift
public init()