Support sample rate range
This commit is contained in:
parent
2f09033c50
commit
43677b6c09
1 changed files with 1 additions and 1 deletions
|
@ -1032,7 +1032,7 @@ impl ElementImpl for Transcriber {
|
||||||
|
|
||||||
let sink_caps = gst::Caps::builder("audio/x-raw")
|
let sink_caps = gst::Caps::builder("audio/x-raw")
|
||||||
.field("format", "S16LE")
|
.field("format", "S16LE")
|
||||||
.field("rate", 16000)
|
.field("rate", gst::IntRange::new(8_000_i32, 48_000))
|
||||||
.field("channels", 1)
|
.field("channels", 1)
|
||||||
.build();
|
.build();
|
||||||
let sink_pad_template = gst::PadTemplate::new(
|
let sink_pad_template = gst::PadTemplate::new(
|
||||||
|
|
Loading…
Reference in a new issue