awstranscriber: only set vocabulary filter when vocabulary is set

AWS otherwise refuses to start the transcription.
This commit is contained in:
Mathieu Duponchelle 2022-09-08 22:08:20 +02:00 committed by Sebastian Dröge
parent 72b659b3ea
commit 419cc03133

View file

@ -945,7 +945,6 @@ impl Transcriber {
if let Some(ref vocabulary_filter) = settings.vocabulary_filter {
query_params
.push_str(format!("&vocabulary-filter-name={}", vocabulary_filter).as_str());
}
query_params.push_str(
format!(
@ -958,6 +957,7 @@ impl Transcriber {
)
.as_str(),
);
}
if let Some(ref session_id) = settings.session_id {
gst::debug!(CAT, obj: element, "Using session ID: {}", session_id);