mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
awstranscriber: only set vocabulary filter when vocabulary is set
AWS otherwise refuses to start the transcription.
This commit is contained in:
parent
72b659b3ea
commit
419cc03133
1 changed files with 12 additions and 12 deletions
|
@ -945,19 +945,19 @@ 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!(
|
||||
"&vocabulary-filter-method={}",
|
||||
match settings.vocabulary_filter_method {
|
||||
AwsTranscriberVocabularyFilterMethod::Mask => "mask",
|
||||
AwsTranscriberVocabularyFilterMethod::Remove => "remove",
|
||||
AwsTranscriberVocabularyFilterMethod::Tag => "tag",
|
||||
}
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
query_params.push_str(
|
||||
format!(
|
||||
"&vocabulary-filter-method={}",
|
||||
match settings.vocabulary_filter_method {
|
||||
AwsTranscriberVocabularyFilterMethod::Mask => "mask",
|
||||
AwsTranscriberVocabularyFilterMethod::Remove => "remove",
|
||||
AwsTranscriberVocabularyFilterMethod::Tag => "tag",
|
||||
}
|
||||
)
|
||||
.as_str(),
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(ref session_id) = settings.session_id {
|
||||
gst::debug!(CAT, obj: element, "Using session ID: {}", session_id);
|
||||
|
|
Loading…
Reference in a new issue