Module Encoder.Speex


module Speex: sig .. end


type bitrate_control =
| Quality of int
| Vbr of int
| Abr of int

type mode =
| Narrowband
| Wideband
| Ultra_wideband

type t = {
   bitrate_control : bitrate_control;
   samplerate : int;
   stereo : bool;
   mode : mode;
   frames_per_packet : int;
   complexity : int option;
   fill : int option;
}
val string_of_br_ctl : bitrate_control -> string
val string_of_mode : mode -> string
val string_of_complexity : int option -> string
val to_string : t -> string