aws_sdk_transcribestreaming/operation/start_stream_transcription/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::start_stream_transcription::_start_stream_transcription_output::StartStreamTranscriptionOutputBuilder;
3
4pub use crate::operation::start_stream_transcription::_start_stream_transcription_input::StartStreamTranscriptionInputBuilder;
5
6impl crate::operation::start_stream_transcription::builders::StartStreamTranscriptionInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::start_stream_transcription::StartStreamTranscriptionOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::start_stream_transcription::StartStreamTranscriptionError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.start_stream_transcription();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `StartStreamTranscription`.
24///
25/// <p>Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to Amazon Transcribe and the transcription results are streamed to your application.</p>
26/// <p>The following parameters are required:</p>
27/// <ul>
28/// <li>
29/// <p><code>language-code</code> or <code>identify-language</code> or <code>identify-multiple-language</code></p></li>
30/// <li>
31/// <p><code>media-encoding</code></p></li>
32/// <li>
33/// <p><code>sample-rate</code></p></li>
34/// </ul>
35/// <p>For more information on streaming with Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
36#[derive(::std::fmt::Debug)]
37pub struct StartStreamTranscriptionFluentBuilder {
38 handle: ::std::sync::Arc<crate::client::Handle>,
39 inner: crate::operation::start_stream_transcription::builders::StartStreamTranscriptionInputBuilder,
40 config_override: ::std::option::Option<crate::config::Builder>,
41}
42impl
43 crate::client::customize::internal::CustomizableSend<
44 crate::operation::start_stream_transcription::StartStreamTranscriptionOutput,
45 crate::operation::start_stream_transcription::StartStreamTranscriptionError,
46 > for StartStreamTranscriptionFluentBuilder
47{
48 fn send(
49 self,
50 config_override: crate::config::Builder,
51 ) -> crate::client::customize::internal::BoxFuture<
52 crate::client::customize::internal::SendResult<
53 crate::operation::start_stream_transcription::StartStreamTranscriptionOutput,
54 crate::operation::start_stream_transcription::StartStreamTranscriptionError,
55 >,
56 > {
57 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
58 }
59}
60impl StartStreamTranscriptionFluentBuilder {
61 /// Creates a new `StartStreamTranscriptionFluentBuilder`.
62 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
63 Self {
64 handle,
65 inner: ::std::default::Default::default(),
66 config_override: ::std::option::Option::None,
67 }
68 }
69 /// Access the StartStreamTranscription as a reference.
70 pub fn as_input(&self) -> &crate::operation::start_stream_transcription::builders::StartStreamTranscriptionInputBuilder {
71 &self.inner
72 }
73 /// Sends the request and returns the response.
74 ///
75 /// If an error occurs, an `SdkError` will be returned with additional details that
76 /// can be matched against.
77 ///
78 /// By default, any retryable failures will be retried twice. Retry behavior
79 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
80 /// set when configuring the client.
81 pub async fn send(
82 self,
83 ) -> ::std::result::Result<
84 crate::operation::start_stream_transcription::StartStreamTranscriptionOutput,
85 ::aws_smithy_runtime_api::client::result::SdkError<
86 crate::operation::start_stream_transcription::StartStreamTranscriptionError,
87 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
88 >,
89 > {
90 let input = self
91 .inner
92 .build()
93 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
94 let runtime_plugins = crate::operation::start_stream_transcription::StartStreamTranscription::operation_runtime_plugins(
95 self.handle.runtime_plugins.clone(),
96 &self.handle.conf,
97 self.config_override,
98 );
99 crate::operation::start_stream_transcription::StartStreamTranscription::orchestrate(&runtime_plugins, input).await
100 }
101
102 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
103 pub fn customize(
104 self,
105 ) -> crate::client::customize::CustomizableOperation<
106 crate::operation::start_stream_transcription::StartStreamTranscriptionOutput,
107 crate::operation::start_stream_transcription::StartStreamTranscriptionError,
108 Self,
109 > {
110 crate::client::customize::CustomizableOperation::new(self)
111 }
112 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
113 self.set_config_override(::std::option::Option::Some(config_override.into()));
114 self
115 }
116
117 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
118 self.config_override = config_override;
119 self
120 }
121 /// <p>Specify the language code that represents the language spoken in your audio.</p>
122 /// <p>If you're unsure of the language spoken in your audio, consider using <code>IdentifyLanguage</code> to enable automatic language identification.</p>
123 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p>
124 pub fn language_code(mut self, input: crate::types::LanguageCode) -> Self {
125 self.inner = self.inner.language_code(input);
126 self
127 }
128 /// <p>Specify the language code that represents the language spoken in your audio.</p>
129 /// <p>If you're unsure of the language spoken in your audio, consider using <code>IdentifyLanguage</code> to enable automatic language identification.</p>
130 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p>
131 pub fn set_language_code(mut self, input: ::std::option::Option<crate::types::LanguageCode>) -> Self {
132 self.inner = self.inner.set_language_code(input);
133 self
134 }
135 /// <p>Specify the language code that represents the language spoken in your audio.</p>
136 /// <p>If you're unsure of the language spoken in your audio, consider using <code>IdentifyLanguage</code> to enable automatic language identification.</p>
137 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p>
138 pub fn get_language_code(&self) -> &::std::option::Option<crate::types::LanguageCode> {
139 self.inner.get_language_code()
140 }
141 /// <p>The sample rate of the input audio (in hertz). Low-quality audio, such as telephone audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your audio.</p>
142 pub fn media_sample_rate_hertz(mut self, input: i32) -> Self {
143 self.inner = self.inner.media_sample_rate_hertz(input);
144 self
145 }
146 /// <p>The sample rate of the input audio (in hertz). Low-quality audio, such as telephone audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your audio.</p>
147 pub fn set_media_sample_rate_hertz(mut self, input: ::std::option::Option<i32>) -> Self {
148 self.inner = self.inner.set_media_sample_rate_hertz(input);
149 self
150 }
151 /// <p>The sample rate of the input audio (in hertz). Low-quality audio, such as telephone audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your audio.</p>
152 pub fn get_media_sample_rate_hertz(&self) -> &::std::option::Option<i32> {
153 self.inner.get_media_sample_rate_hertz()
154 }
155 /// <p>Specify the encoding of your input audio. Supported formats are:</p>
156 /// <ul>
157 /// <li>
158 /// <p>FLAC</p></li>
159 /// <li>
160 /// <p>OPUS-encoded audio in an Ogg container</p></li>
161 /// <li>
162 /// <p>PCM (only signed 16-bit little-endian audio formats, which does not include WAV)</p></li>
163 /// </ul>
164 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio">Media formats</a>.</p>
165 pub fn media_encoding(mut self, input: crate::types::MediaEncoding) -> Self {
166 self.inner = self.inner.media_encoding(input);
167 self
168 }
169 /// <p>Specify the encoding of your input audio. Supported formats are:</p>
170 /// <ul>
171 /// <li>
172 /// <p>FLAC</p></li>
173 /// <li>
174 /// <p>OPUS-encoded audio in an Ogg container</p></li>
175 /// <li>
176 /// <p>PCM (only signed 16-bit little-endian audio formats, which does not include WAV)</p></li>
177 /// </ul>
178 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio">Media formats</a>.</p>
179 pub fn set_media_encoding(mut self, input: ::std::option::Option<crate::types::MediaEncoding>) -> Self {
180 self.inner = self.inner.set_media_encoding(input);
181 self
182 }
183 /// <p>Specify the encoding of your input audio. Supported formats are:</p>
184 /// <ul>
185 /// <li>
186 /// <p>FLAC</p></li>
187 /// <li>
188 /// <p>OPUS-encoded audio in an Ogg container</p></li>
189 /// <li>
190 /// <p>PCM (only signed 16-bit little-endian audio formats, which does not include WAV)</p></li>
191 /// </ul>
192 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/how-input.html#how-input-audio">Media formats</a>.</p>
193 pub fn get_media_encoding(&self) -> &::std::option::Option<crate::types::MediaEncoding> {
194 self.inner.get_media_encoding()
195 }
196 /// <p>Specify the name of the custom vocabulary that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
197 /// <p>If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.</p><important>
198 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more custom vocabularies with your transcription, use the <code>VocabularyNames</code> parameter instead.</p>
199 /// </important>
200 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
201 pub fn vocabulary_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
202 self.inner = self.inner.vocabulary_name(input.into());
203 self
204 }
205 /// <p>Specify the name of the custom vocabulary that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
206 /// <p>If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.</p><important>
207 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more custom vocabularies with your transcription, use the <code>VocabularyNames</code> parameter instead.</p>
208 /// </important>
209 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
210 pub fn set_vocabulary_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
211 self.inner = self.inner.set_vocabulary_name(input);
212 self
213 }
214 /// <p>Specify the name of the custom vocabulary that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
215 /// <p>If the language of the specified custom vocabulary doesn't match the language identified in your media, the custom vocabulary is not applied to your transcription.</p><important>
216 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more custom vocabularies with your transcription, use the <code>VocabularyNames</code> parameter instead.</p>
217 /// </important>
218 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
219 pub fn get_vocabulary_name(&self) -> &::std::option::Option<::std::string::String> {
220 self.inner.get_vocabulary_name()
221 }
222 /// <p>Specify a name for your transcription session. If you don't include this parameter in your request, Amazon Transcribe generates an ID and returns it in the response.</p>
223 /// <p>You can use a session ID to retry a streaming session.</p>
224 pub fn session_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
225 self.inner = self.inner.session_id(input.into());
226 self
227 }
228 /// <p>Specify a name for your transcription session. If you don't include this parameter in your request, Amazon Transcribe generates an ID and returns it in the response.</p>
229 /// <p>You can use a session ID to retry a streaming session.</p>
230 pub fn set_session_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
231 self.inner = self.inner.set_session_id(input);
232 self
233 }
234 /// <p>Specify a name for your transcription session. If you don't include this parameter in your request, Amazon Transcribe generates an ID and returns it in the response.</p>
235 /// <p>You can use a session ID to retry a streaming session.</p>
236 pub fn get_session_id(&self) -> &::std::option::Option<::std::string::String> {
237 self.inner.get_session_id()
238 }
239 /// <p>An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames.</p>
240 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
241 pub fn audio_stream(
242 mut self,
243 input: ::aws_smithy_http::event_stream::EventStreamSender<crate::types::AudioStream, crate::types::error::AudioStreamError>,
244 ) -> Self {
245 self.inner = self.inner.audio_stream(input);
246 self
247 }
248 /// <p>An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames.</p>
249 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
250 pub fn set_audio_stream(
251 mut self,
252 input: ::std::option::Option<
253 ::aws_smithy_http::event_stream::EventStreamSender<crate::types::AudioStream, crate::types::error::AudioStreamError>,
254 >,
255 ) -> Self {
256 self.inner = self.inner.set_audio_stream(input);
257 self
258 }
259 /// <p>An encoded stream of audio blobs. Audio streams are encoded as either HTTP/2 or WebSocket data frames.</p>
260 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html">Transcribing streaming audio</a>.</p>
261 pub fn get_audio_stream(
262 &self,
263 ) -> &::std::option::Option<::aws_smithy_http::event_stream::EventStreamSender<crate::types::AudioStream, crate::types::error::AudioStreamError>>
264 {
265 self.inner.get_audio_stream()
266 }
267 /// <p>Specify the name of the custom vocabulary filter that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
268 /// <p>If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.</p><important>
269 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more vocabulary filters with your transcription, use the <code>VocabularyFilterNames</code> parameter instead.</p>
270 /// </important>
271 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
272 pub fn vocabulary_filter_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
273 self.inner = self.inner.vocabulary_filter_name(input.into());
274 self
275 }
276 /// <p>Specify the name of the custom vocabulary filter that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
277 /// <p>If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.</p><important>
278 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more vocabulary filters with your transcription, use the <code>VocabularyFilterNames</code> parameter instead.</p>
279 /// </important>
280 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
281 pub fn set_vocabulary_filter_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
282 self.inner = self.inner.set_vocabulary_filter_name(input);
283 self
284 }
285 /// <p>Specify the name of the custom vocabulary filter that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
286 /// <p>If the language of the specified custom vocabulary filter doesn't match the language identified in your media, the vocabulary filter is not applied to your transcription.</p><important>
287 /// <p>This parameter is <b>not</b> intended for use with the <code>IdentifyLanguage</code> parameter. If you're including <code>IdentifyLanguage</code> in your request and want to use one or more vocabulary filters with your transcription, use the <code>VocabularyFilterNames</code> parameter instead.</p>
288 /// </important>
289 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
290 pub fn get_vocabulary_filter_name(&self) -> &::std::option::Option<::std::string::String> {
291 self.inner.get_vocabulary_filter_name()
292 }
293 /// <p>Specify how you want your vocabulary filter applied to your transcript.</p>
294 /// <p>To replace words with <code>***</code>, choose <code>mask</code>.</p>
295 /// <p>To delete words, choose <code>remove</code>.</p>
296 /// <p>To flag words without changing them, choose <code>tag</code>.</p>
297 pub fn vocabulary_filter_method(mut self, input: crate::types::VocabularyFilterMethod) -> Self {
298 self.inner = self.inner.vocabulary_filter_method(input);
299 self
300 }
301 /// <p>Specify how you want your vocabulary filter applied to your transcript.</p>
302 /// <p>To replace words with <code>***</code>, choose <code>mask</code>.</p>
303 /// <p>To delete words, choose <code>remove</code>.</p>
304 /// <p>To flag words without changing them, choose <code>tag</code>.</p>
305 pub fn set_vocabulary_filter_method(mut self, input: ::std::option::Option<crate::types::VocabularyFilterMethod>) -> Self {
306 self.inner = self.inner.set_vocabulary_filter_method(input);
307 self
308 }
309 /// <p>Specify how you want your vocabulary filter applied to your transcript.</p>
310 /// <p>To replace words with <code>***</code>, choose <code>mask</code>.</p>
311 /// <p>To delete words, choose <code>remove</code>.</p>
312 /// <p>To flag words without changing them, choose <code>tag</code>.</p>
313 pub fn get_vocabulary_filter_method(&self) -> &::std::option::Option<crate::types::VocabularyFilterMethod> {
314 self.inner.get_vocabulary_filter_method()
315 }
316 /// <p>Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.</p>
317 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html">Partitioning speakers (diarization)</a>.</p>
318 pub fn show_speaker_label(mut self, input: bool) -> Self {
319 self.inner = self.inner.show_speaker_label(input);
320 self
321 }
322 /// <p>Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.</p>
323 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html">Partitioning speakers (diarization)</a>.</p>
324 pub fn set_show_speaker_label(mut self, input: ::std::option::Option<bool>) -> Self {
325 self.inner = self.inner.set_show_speaker_label(input);
326 self
327 }
328 /// <p>Enables speaker partitioning (diarization) in your transcription output. Speaker partitioning labels the speech from individual speakers in your media file.</p>
329 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html">Partitioning speakers (diarization)</a>.</p>
330 pub fn get_show_speaker_label(&self) -> &::std::option::Option<bool> {
331 self.inner.get_show_speaker_label()
332 }
333 /// <p>Enables channel identification in multi-channel audio.</p>
334 /// <p>Channel identification transcribes the audio on each channel independently, then appends the output for each channel into one transcript.</p>
335 /// <p>If you have multi-channel audio and do not enable channel identification, your audio is transcribed in a continuous manner and your transcript is not separated by channel.</p>
336 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html">Transcribing multi-channel audio</a>.</p>
337 pub fn enable_channel_identification(mut self, input: bool) -> Self {
338 self.inner = self.inner.enable_channel_identification(input);
339 self
340 }
341 /// <p>Enables channel identification in multi-channel audio.</p>
342 /// <p>Channel identification transcribes the audio on each channel independently, then appends the output for each channel into one transcript.</p>
343 /// <p>If you have multi-channel audio and do not enable channel identification, your audio is transcribed in a continuous manner and your transcript is not separated by channel.</p>
344 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html">Transcribing multi-channel audio</a>.</p>
345 pub fn set_enable_channel_identification(mut self, input: ::std::option::Option<bool>) -> Self {
346 self.inner = self.inner.set_enable_channel_identification(input);
347 self
348 }
349 /// <p>Enables channel identification in multi-channel audio.</p>
350 /// <p>Channel identification transcribes the audio on each channel independently, then appends the output for each channel into one transcript.</p>
351 /// <p>If you have multi-channel audio and do not enable channel identification, your audio is transcribed in a continuous manner and your transcript is not separated by channel.</p>
352 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html">Transcribing multi-channel audio</a>.</p>
353 pub fn get_enable_channel_identification(&self) -> &::std::option::Option<bool> {
354 self.inner.get_enable_channel_identification()
355 }
356 /// <p>Specify the number of channels in your audio stream. Up to two channels are supported.</p>
357 pub fn number_of_channels(mut self, input: i32) -> Self {
358 self.inner = self.inner.number_of_channels(input);
359 self
360 }
361 /// <p>Specify the number of channels in your audio stream. Up to two channels are supported.</p>
362 pub fn set_number_of_channels(mut self, input: ::std::option::Option<i32>) -> Self {
363 self.inner = self.inner.set_number_of_channels(input);
364 self
365 }
366 /// <p>Specify the number of channels in your audio stream. Up to two channels are supported.</p>
367 pub fn get_number_of_channels(&self) -> &::std::option::Option<i32> {
368 self.inner.get_number_of_channels()
369 }
370 /// <p>Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
371 pub fn enable_partial_results_stabilization(mut self, input: bool) -> Self {
372 self.inner = self.inner.enable_partial_results_stabilization(input);
373 self
374 }
375 /// <p>Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
376 pub fn set_enable_partial_results_stabilization(mut self, input: ::std::option::Option<bool>) -> Self {
377 self.inner = self.inner.set_enable_partial_results_stabilization(input);
378 self
379 }
380 /// <p>Enables partial result stabilization for your transcription. Partial result stabilization can reduce latency in your output, but may impact accuracy. For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
381 pub fn get_enable_partial_results_stabilization(&self) -> &::std::option::Option<bool> {
382 self.inner.get_enable_partial_results_stabilization()
383 }
384 /// <p>Specify the level of stability to use when you enable partial results stabilization (<code>EnablePartialResultsStabilization</code>).</p>
385 /// <p>Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.</p>
386 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
387 pub fn partial_results_stability(mut self, input: crate::types::PartialResultsStability) -> Self {
388 self.inner = self.inner.partial_results_stability(input);
389 self
390 }
391 /// <p>Specify the level of stability to use when you enable partial results stabilization (<code>EnablePartialResultsStabilization</code>).</p>
392 /// <p>Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.</p>
393 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
394 pub fn set_partial_results_stability(mut self, input: ::std::option::Option<crate::types::PartialResultsStability>) -> Self {
395 self.inner = self.inner.set_partial_results_stability(input);
396 self
397 }
398 /// <p>Specify the level of stability to use when you enable partial results stabilization (<code>EnablePartialResultsStabilization</code>).</p>
399 /// <p>Low stability provides the highest accuracy. High stability transcribes faster, but with slightly lower accuracy.</p>
400 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#streaming-partial-result-stabilization">Partial-result stabilization</a>.</p>
401 pub fn get_partial_results_stability(&self) -> &::std::option::Option<crate::types::PartialResultsStability> {
402 self.inner.get_partial_results_stability()
403 }
404 /// <p>Labels all personally identifiable information (PII) identified in your transcript.</p>
405 /// <p>Content identification is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment.</p>
406 /// <p>You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
407 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
408 pub fn content_identification_type(mut self, input: crate::types::ContentIdentificationType) -> Self {
409 self.inner = self.inner.content_identification_type(input);
410 self
411 }
412 /// <p>Labels all personally identifiable information (PII) identified in your transcript.</p>
413 /// <p>Content identification is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment.</p>
414 /// <p>You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
415 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
416 pub fn set_content_identification_type(mut self, input: ::std::option::Option<crate::types::ContentIdentificationType>) -> Self {
417 self.inner = self.inner.set_content_identification_type(input);
418 self
419 }
420 /// <p>Labels all personally identifiable information (PII) identified in your transcript.</p>
421 /// <p>Content identification is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment.</p>
422 /// <p>You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
423 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
424 pub fn get_content_identification_type(&self) -> &::std::option::Option<crate::types::ContentIdentificationType> {
425 self.inner.get_content_identification_type()
426 }
427 /// <p>Redacts all personally identifiable information (PII) identified in your transcript.</p>
428 /// <p>Content redaction is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment.</p>
429 /// <p>You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
430 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
431 pub fn content_redaction_type(mut self, input: crate::types::ContentRedactionType) -> Self {
432 self.inner = self.inner.content_redaction_type(input);
433 self
434 }
435 /// <p>Redacts all personally identifiable information (PII) identified in your transcript.</p>
436 /// <p>Content redaction is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment.</p>
437 /// <p>You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
438 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
439 pub fn set_content_redaction_type(mut self, input: ::std::option::Option<crate::types::ContentRedactionType>) -> Self {
440 self.inner = self.inner.set_content_redaction_type(input);
441 self
442 }
443 /// <p>Redacts all personally identifiable information (PII) identified in your transcript.</p>
444 /// <p>Content redaction is performed at the segment level; PII specified in <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment.</p>
445 /// <p>You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
446 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable information</a>.</p>
447 pub fn get_content_redaction_type(&self) -> &::std::option::Option<crate::types::ContentRedactionType> {
448 self.inner.get_content_redaction_type()
449 }
450 /// <p>Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select <code>ALL</code>.</p>
451 /// <p>To include <code>PiiEntityTypes</code> in your request, you must also include either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
452 /// <p>Values must be comma-separated and can include: <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>, <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>, <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>, <code>SSN</code>, or <code>ALL</code>.</p>
453 pub fn pii_entity_types(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
454 self.inner = self.inner.pii_entity_types(input.into());
455 self
456 }
457 /// <p>Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select <code>ALL</code>.</p>
458 /// <p>To include <code>PiiEntityTypes</code> in your request, you must also include either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
459 /// <p>Values must be comma-separated and can include: <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>, <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>, <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>, <code>SSN</code>, or <code>ALL</code>.</p>
460 pub fn set_pii_entity_types(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
461 self.inner = self.inner.set_pii_entity_types(input);
462 self
463 }
464 /// <p>Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select <code>ALL</code>.</p>
465 /// <p>To include <code>PiiEntityTypes</code> in your request, you must also include either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
466 /// <p>Values must be comma-separated and can include: <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>, <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>, <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>, <code>SSN</code>, or <code>ALL</code>.</p>
467 pub fn get_pii_entity_types(&self) -> &::std::option::Option<::std::string::String> {
468 self.inner.get_pii_entity_types()
469 }
470 /// <p>Specify the name of the custom language model that you want to use when processing your transcription. Note that language model names are case sensitive.</p>
471 /// <p>The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.</p>
472 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html">Custom language models</a>.</p>
473 pub fn language_model_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
474 self.inner = self.inner.language_model_name(input.into());
475 self
476 }
477 /// <p>Specify the name of the custom language model that you want to use when processing your transcription. Note that language model names are case sensitive.</p>
478 /// <p>The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.</p>
479 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html">Custom language models</a>.</p>
480 pub fn set_language_model_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
481 self.inner = self.inner.set_language_model_name(input);
482 self
483 }
484 /// <p>Specify the name of the custom language model that you want to use when processing your transcription. Note that language model names are case sensitive.</p>
485 /// <p>The language of the specified language model must match the language code you specify in your transcription request. If the languages don't match, the custom language model isn't applied. There are no errors or warnings associated with a language mismatch.</p>
486 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html">Custom language models</a>.</p>
487 pub fn get_language_model_name(&self) -> &::std::option::Option<::std::string::String> {
488 self.inner.get_language_model_name()
489 }
490 /// <p>Enables automatic language identification for your transcription.</p>
491 /// <p>If you include <code>IdentifyLanguage</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your audio stream. Including language options can improve transcription accuracy.</p>
492 /// <p>You can also include a preferred language using <code>PreferredLanguage</code>. Adding a preferred language can help Amazon Transcribe identify the language faster than if you omit this parameter.</p>
493 /// <p>If you have multi-channel audio that contains different languages on each channel, and you've enabled channel identification, automatic language identification identifies the dominant language on each audio channel.</p>
494 /// <p>Note that you must include either <code>LanguageCode</code> or <code>IdentifyLanguage</code> or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
495 /// <p>Streaming language identification can't be combined with custom language models or redaction.</p>
496 pub fn identify_language(mut self, input: bool) -> Self {
497 self.inner = self.inner.identify_language(input);
498 self
499 }
500 /// <p>Enables automatic language identification for your transcription.</p>
501 /// <p>If you include <code>IdentifyLanguage</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your audio stream. Including language options can improve transcription accuracy.</p>
502 /// <p>You can also include a preferred language using <code>PreferredLanguage</code>. Adding a preferred language can help Amazon Transcribe identify the language faster than if you omit this parameter.</p>
503 /// <p>If you have multi-channel audio that contains different languages on each channel, and you've enabled channel identification, automatic language identification identifies the dominant language on each audio channel.</p>
504 /// <p>Note that you must include either <code>LanguageCode</code> or <code>IdentifyLanguage</code> or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
505 /// <p>Streaming language identification can't be combined with custom language models or redaction.</p>
506 pub fn set_identify_language(mut self, input: ::std::option::Option<bool>) -> Self {
507 self.inner = self.inner.set_identify_language(input);
508 self
509 }
510 /// <p>Enables automatic language identification for your transcription.</p>
511 /// <p>If you include <code>IdentifyLanguage</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your audio stream. Including language options can improve transcription accuracy.</p>
512 /// <p>You can also include a preferred language using <code>PreferredLanguage</code>. Adding a preferred language can help Amazon Transcribe identify the language faster than if you omit this parameter.</p>
513 /// <p>If you have multi-channel audio that contains different languages on each channel, and you've enabled channel identification, automatic language identification identifies the dominant language on each audio channel.</p>
514 /// <p>Note that you must include either <code>LanguageCode</code> or <code>IdentifyLanguage</code> or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
515 /// <p>Streaming language identification can't be combined with custom language models or redaction.</p>
516 pub fn get_identify_language(&self) -> &::std::option::Option<bool> {
517 self.inner.get_identify_language()
518 }
519 /// <p>Specify two or more language codes that represent the languages you think may be present in your media; including more than five is not recommended. If you're unsure what languages are present, do not include this parameter.</p>
520 /// <p>Including language options can improve the accuracy of language identification.</p>
521 /// <p>If you include <code>LanguageOptions</code> in your request, you must also include <code>IdentifyLanguage</code>.</p>
522 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p><important>
523 /// <p>You can only include one language dialect per language per stream. For example, you cannot include <code>en-US</code> and <code>en-AU</code> in the same request.</p>
524 /// </important>
525 pub fn language_options(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
526 self.inner = self.inner.language_options(input.into());
527 self
528 }
529 /// <p>Specify two or more language codes that represent the languages you think may be present in your media; including more than five is not recommended. If you're unsure what languages are present, do not include this parameter.</p>
530 /// <p>Including language options can improve the accuracy of language identification.</p>
531 /// <p>If you include <code>LanguageOptions</code> in your request, you must also include <code>IdentifyLanguage</code>.</p>
532 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p><important>
533 /// <p>You can only include one language dialect per language per stream. For example, you cannot include <code>en-US</code> and <code>en-AU</code> in the same request.</p>
534 /// </important>
535 pub fn set_language_options(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
536 self.inner = self.inner.set_language_options(input);
537 self
538 }
539 /// <p>Specify two or more language codes that represent the languages you think may be present in your media; including more than five is not recommended. If you're unsure what languages are present, do not include this parameter.</p>
540 /// <p>Including language options can improve the accuracy of language identification.</p>
541 /// <p>If you include <code>LanguageOptions</code> in your request, you must also include <code>IdentifyLanguage</code>.</p>
542 /// <p>For a list of languages supported with Amazon Transcribe streaming, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p><important>
543 /// <p>You can only include one language dialect per language per stream. For example, you cannot include <code>en-US</code> and <code>en-AU</code> in the same request.</p>
544 /// </important>
545 pub fn get_language_options(&self) -> &::std::option::Option<::std::string::String> {
546 self.inner.get_language_options()
547 }
548 /// <p>Specify a preferred language from the subset of languages codes you specified in <code>LanguageOptions</code>.</p>
549 /// <p>You can only use this parameter if you've included <code>IdentifyLanguage</code> and <code>LanguageOptions</code> in your request.</p>
550 pub fn preferred_language(mut self, input: crate::types::LanguageCode) -> Self {
551 self.inner = self.inner.preferred_language(input);
552 self
553 }
554 /// <p>Specify a preferred language from the subset of languages codes you specified in <code>LanguageOptions</code>.</p>
555 /// <p>You can only use this parameter if you've included <code>IdentifyLanguage</code> and <code>LanguageOptions</code> in your request.</p>
556 pub fn set_preferred_language(mut self, input: ::std::option::Option<crate::types::LanguageCode>) -> Self {
557 self.inner = self.inner.set_preferred_language(input);
558 self
559 }
560 /// <p>Specify a preferred language from the subset of languages codes you specified in <code>LanguageOptions</code>.</p>
561 /// <p>You can only use this parameter if you've included <code>IdentifyLanguage</code> and <code>LanguageOptions</code> in your request.</p>
562 pub fn get_preferred_language(&self) -> &::std::option::Option<crate::types::LanguageCode> {
563 self.inner.get_preferred_language()
564 }
565 /// <p>Enables automatic multi-language identification in your transcription job request. Use this parameter if your stream contains more than one language. If your stream contains only one language, use IdentifyLanguage instead.</p>
566 /// <p>If you include <code>IdentifyMultipleLanguages</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your stream. Including <code>LanguageOptions</code> restricts <code>IdentifyMultipleLanguages</code> to only the language options that you specify, which can improve transcription accuracy.</p>
567 /// <p>If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic multiple language identification request, include <code>VocabularyNames</code> or <code>VocabularyFilterNames</code>.</p>
568 /// <p>Note that you must include one of <code>LanguageCode</code>, <code>IdentifyLanguage</code>, or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
569 pub fn identify_multiple_languages(mut self, input: bool) -> Self {
570 self.inner = self.inner.identify_multiple_languages(input);
571 self
572 }
573 /// <p>Enables automatic multi-language identification in your transcription job request. Use this parameter if your stream contains more than one language. If your stream contains only one language, use IdentifyLanguage instead.</p>
574 /// <p>If you include <code>IdentifyMultipleLanguages</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your stream. Including <code>LanguageOptions</code> restricts <code>IdentifyMultipleLanguages</code> to only the language options that you specify, which can improve transcription accuracy.</p>
575 /// <p>If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic multiple language identification request, include <code>VocabularyNames</code> or <code>VocabularyFilterNames</code>.</p>
576 /// <p>Note that you must include one of <code>LanguageCode</code>, <code>IdentifyLanguage</code>, or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
577 pub fn set_identify_multiple_languages(mut self, input: ::std::option::Option<bool>) -> Self {
578 self.inner = self.inner.set_identify_multiple_languages(input);
579 self
580 }
581 /// <p>Enables automatic multi-language identification in your transcription job request. Use this parameter if your stream contains more than one language. If your stream contains only one language, use IdentifyLanguage instead.</p>
582 /// <p>If you include <code>IdentifyMultipleLanguages</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your stream. Including <code>LanguageOptions</code> restricts <code>IdentifyMultipleLanguages</code> to only the language options that you specify, which can improve transcription accuracy.</p>
583 /// <p>If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic multiple language identification request, include <code>VocabularyNames</code> or <code>VocabularyFilterNames</code>.</p>
584 /// <p>Note that you must include one of <code>LanguageCode</code>, <code>IdentifyLanguage</code>, or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
585 pub fn get_identify_multiple_languages(&self) -> &::std::option::Option<bool> {
586 self.inner.get_identify_multiple_languages()
587 }
588 /// <p>Specify the names of the custom vocabularies that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
589 /// <p>If none of the languages of the specified custom vocabularies match the language identified in your media, your job fails.</p><important>
590 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary with your transcription, use the <code>VocabularyName</code> parameter instead.</p>
591 /// </important>
592 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
593 pub fn vocabulary_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
594 self.inner = self.inner.vocabulary_names(input.into());
595 self
596 }
597 /// <p>Specify the names of the custom vocabularies that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
598 /// <p>If none of the languages of the specified custom vocabularies match the language identified in your media, your job fails.</p><important>
599 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary with your transcription, use the <code>VocabularyName</code> parameter instead.</p>
600 /// </important>
601 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
602 pub fn set_vocabulary_names(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
603 self.inner = self.inner.set_vocabulary_names(input);
604 self
605 }
606 /// <p>Specify the names of the custom vocabularies that you want to use when processing your transcription. Note that vocabulary names are case sensitive.</p>
607 /// <p>If none of the languages of the specified custom vocabularies match the language identified in your media, your job fails.</p><important>
608 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary with your transcription, use the <code>VocabularyName</code> parameter instead.</p>
609 /// </important>
610 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html">Custom vocabularies</a>.</p>
611 pub fn get_vocabulary_names(&self) -> &::std::option::Option<::std::string::String> {
612 self.inner.get_vocabulary_names()
613 }
614 /// <p>Specify the names of the custom vocabulary filters that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
615 /// <p>If none of the languages of the specified custom vocabulary filters match the language identified in your media, your job fails.</p><important>
616 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary filter with your transcription, use the <code>VocabularyFilterName</code> parameter instead.</p>
617 /// </important>
618 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
619 pub fn vocabulary_filter_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
620 self.inner = self.inner.vocabulary_filter_names(input.into());
621 self
622 }
623 /// <p>Specify the names of the custom vocabulary filters that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
624 /// <p>If none of the languages of the specified custom vocabulary filters match the language identified in your media, your job fails.</p><important>
625 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary filter with your transcription, use the <code>VocabularyFilterName</code> parameter instead.</p>
626 /// </important>
627 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
628 pub fn set_vocabulary_filter_names(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
629 self.inner = self.inner.set_vocabulary_filter_names(input);
630 self
631 }
632 /// <p>Specify the names of the custom vocabulary filters that you want to use when processing your transcription. Note that vocabulary filter names are case sensitive.</p>
633 /// <p>If none of the languages of the specified custom vocabulary filters match the language identified in your media, your job fails.</p><important>
634 /// <p>This parameter is only intended for use <b>with</b> the <code>IdentifyLanguage</code> parameter. If you're <b>not</b> including <code>IdentifyLanguage</code> in your request and want to use a custom vocabulary filter with your transcription, use the <code>VocabularyFilterName</code> parameter instead.</p>
635 /// </important>
636 /// <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/vocabulary-filtering.html">Using vocabulary filtering with unwanted words</a>.</p>
637 pub fn get_vocabulary_filter_names(&self) -> &::std::option::Option<::std::string::String> {
638 self.inner.get_vocabulary_filter_names()
639 }
640}