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