223 223 | "com.amazonaws.transcribestreaming.synthetic",
|
224 224 | "StartCallAnalyticsStreamTranscriptionInput",
|
225 225 | );
|
226 226 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
227 227 | ::aws_smithy_schema::ShapeId::from_static(
|
228 228 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$LanguageCode",
|
229 229 | "com.amazonaws.transcribestreaming.synthetic",
|
230 230 | "StartCallAnalyticsStreamTranscriptionInput",
|
231 231 | ),
|
232 232 | ::aws_smithy_schema::ShapeType::String,
|
233 - | "language_code",
|
233 + | "LanguageCode",
|
234 234 | 0,
|
235 235 | )
|
236 236 | .with_http_header("x-amzn-transcribe-language-code");
|
237 237 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ: ::aws_smithy_schema::Schema =
|
238 238 | ::aws_smithy_schema::Schema::new_member(
|
239 239 | ::aws_smithy_schema::ShapeId::from_static(
|
240 240 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$MediaSampleRateHertz",
|
241 241 | "com.amazonaws.transcribestreaming.synthetic",
|
242 242 | "StartCallAnalyticsStreamTranscriptionInput",
|
243 243 | ),
|
244 244 | ::aws_smithy_schema::ShapeType::Integer,
|
245 - | "media_sample_rate_hertz",
|
245 + | "MediaSampleRateHertz",
|
246 246 | 1,
|
247 247 | )
|
248 248 | .with_http_header("x-amzn-transcribe-sample-rate");
|
249 249 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_ENCODING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
250 250 | ::aws_smithy_schema::ShapeId::from_static(
|
251 251 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$MediaEncoding",
|
252 252 | "com.amazonaws.transcribestreaming.synthetic",
|
253 253 | "StartCallAnalyticsStreamTranscriptionInput",
|
254 254 | ),
|
255 255 | ::aws_smithy_schema::ShapeType::String,
|
256 - | "media_encoding",
|
256 + | "MediaEncoding",
|
257 257 | 2,
|
258 258 | )
|
259 259 | .with_http_header("x-amzn-transcribe-media-encoding");
|
260 260 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
261 261 | ::aws_smithy_schema::ShapeId::from_static(
|
262 262 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$VocabularyName",
|
263 263 | "com.amazonaws.transcribestreaming.synthetic",
|
264 264 | "StartCallAnalyticsStreamTranscriptionInput",
|
265 265 | ),
|
266 266 | ::aws_smithy_schema::ShapeType::String,
|
267 - | "vocabulary_name",
|
267 + | "VocabularyName",
|
268 268 | 3,
|
269 269 | )
|
270 270 | .with_http_header("x-amzn-transcribe-vocabulary-name");
|
271 271 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
272 272 | ::aws_smithy_schema::ShapeId::from_static(
|
273 273 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$SessionId",
|
274 274 | "com.amazonaws.transcribestreaming.synthetic",
|
275 275 | "StartCallAnalyticsStreamTranscriptionInput",
|
276 276 | ),
|
277 277 | ::aws_smithy_schema::ShapeType::String,
|
278 - | "session_id",
|
278 + | "SessionId",
|
279 279 | 4,
|
280 280 | )
|
281 281 | .with_http_header("x-amzn-transcribe-session-id");
|
282 282 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_AUDIO_STREAM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
283 283 | ::aws_smithy_schema::ShapeId::from_static(
|
284 284 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$AudioStream",
|
285 285 | "com.amazonaws.transcribestreaming.synthetic",
|
286 286 | "StartCallAnalyticsStreamTranscriptionInput",
|
287 287 | ),
|
288 288 | ::aws_smithy_schema::ShapeType::Union,
|
289 - | "audio_stream",
|
289 + | "AudioStream",
|
290 290 | 5,
|
291 291 | )
|
292 292 | .with_http_payload();
|
293 293 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAME: ::aws_smithy_schema::Schema =
|
294 294 | ::aws_smithy_schema::Schema::new_member(
|
295 295 | ::aws_smithy_schema::ShapeId::from_static(
|
296 296 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$VocabularyFilterName",
|
297 297 | "com.amazonaws.transcribestreaming.synthetic",
|
298 298 | "StartCallAnalyticsStreamTranscriptionInput",
|
299 299 | ),
|
300 300 | ::aws_smithy_schema::ShapeType::String,
|
301 - | "vocabulary_filter_name",
|
301 + | "VocabularyFilterName",
|
302 302 | 6,
|
303 303 | )
|
304 304 | .with_http_header("x-amzn-transcribe-vocabulary-filter-name");
|
305 305 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_METHOD: ::aws_smithy_schema::Schema =
|
306 306 | ::aws_smithy_schema::Schema::new_member(
|
307 307 | ::aws_smithy_schema::ShapeId::from_static(
|
308 308 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$VocabularyFilterMethod",
|
309 309 | "com.amazonaws.transcribestreaming.synthetic",
|
310 310 | "StartCallAnalyticsStreamTranscriptionInput",
|
311 311 | ),
|
312 312 | ::aws_smithy_schema::ShapeType::String,
|
313 - | "vocabulary_filter_method",
|
313 + | "VocabularyFilterMethod",
|
314 314 | 7,
|
315 315 | )
|
316 316 | .with_http_header("x-amzn-transcribe-vocabulary-filter-method");
|
317 317 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_MODEL_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
318 318 | ::aws_smithy_schema::ShapeId::from_static(
|
319 319 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$LanguageModelName",
|
320 320 | "com.amazonaws.transcribestreaming.synthetic",
|
321 321 | "StartCallAnalyticsStreamTranscriptionInput",
|
322 322 | ),
|
323 323 | ::aws_smithy_schema::ShapeType::String,
|
324 - | "language_model_name",
|
324 + | "LanguageModelName",
|
325 325 | 8,
|
326 326 | )
|
327 327 | .with_http_header("x-amzn-transcribe-language-model-name");
|
328 328 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_IDENTIFY_LANGUAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
329 329 | ::aws_smithy_schema::ShapeId::from_static(
|
330 330 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$IdentifyLanguage",
|
331 331 | "com.amazonaws.transcribestreaming.synthetic",
|
332 332 | "StartCallAnalyticsStreamTranscriptionInput",
|
333 333 | ),
|
334 334 | ::aws_smithy_schema::ShapeType::Boolean,
|
335 - | "identify_language",
|
335 + | "IdentifyLanguage",
|
336 336 | 9,
|
337 337 | )
|
338 338 | .with_http_header("x-amzn-transcribe-identify-language");
|
339 339 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
340 340 | ::aws_smithy_schema::ShapeId::from_static(
|
341 341 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$LanguageOptions",
|
342 342 | "com.amazonaws.transcribestreaming.synthetic",
|
343 343 | "StartCallAnalyticsStreamTranscriptionInput",
|
344 344 | ),
|
345 345 | ::aws_smithy_schema::ShapeType::String,
|
346 - | "language_options",
|
346 + | "LanguageOptions",
|
347 347 | 10,
|
348 348 | )
|
349 349 | .with_http_header("x-amzn-transcribe-language-options");
|
350 350 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PREFERRED_LANGUAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
351 351 | ::aws_smithy_schema::ShapeId::from_static(
|
352 352 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$PreferredLanguage",
|
353 353 | "com.amazonaws.transcribestreaming.synthetic",
|
354 354 | "StartCallAnalyticsStreamTranscriptionInput",
|
355 355 | ),
|
356 356 | ::aws_smithy_schema::ShapeType::String,
|
357 - | "preferred_language",
|
357 + | "PreferredLanguage",
|
358 358 | 11,
|
359 359 | )
|
360 360 | .with_http_header("x-amzn-transcribe-preferred-language");
|
361 361 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
362 362 | ::aws_smithy_schema::ShapeId::from_static(
|
363 363 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$VocabularyNames",
|
364 364 | "com.amazonaws.transcribestreaming.synthetic",
|
365 365 | "StartCallAnalyticsStreamTranscriptionInput",
|
366 366 | ),
|
367 367 | ::aws_smithy_schema::ShapeType::String,
|
368 - | "vocabulary_names",
|
368 + | "VocabularyNames",
|
369 369 | 12,
|
370 370 | )
|
371 371 | .with_http_header("x-amzn-transcribe-vocabulary-names");
|
372 372 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAMES: ::aws_smithy_schema::Schema =
|
373 373 | ::aws_smithy_schema::Schema::new_member(
|
374 374 | ::aws_smithy_schema::ShapeId::from_static(
|
375 375 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$VocabularyFilterNames",
|
376 376 | "com.amazonaws.transcribestreaming.synthetic",
|
377 377 | "StartCallAnalyticsStreamTranscriptionInput",
|
378 378 | ),
|
379 379 | ::aws_smithy_schema::ShapeType::String,
|
380 - | "vocabulary_filter_names",
|
380 + | "VocabularyFilterNames",
|
381 381 | 13,
|
382 382 | )
|
383 383 | .with_http_header("x-amzn-transcribe-vocabulary-filter-names");
|
384 384 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION: ::aws_smithy_schema::Schema =
|
385 385 | ::aws_smithy_schema::Schema::new_member(
|
386 386 | ::aws_smithy_schema::ShapeId::from_static(
|
387 387 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$EnablePartialResultsStabilization",
|
388 388 | "com.amazonaws.transcribestreaming.synthetic",
|
389 389 | "StartCallAnalyticsStreamTranscriptionInput",
|
390 390 | ),
|
391 391 | ::aws_smithy_schema::ShapeType::Boolean,
|
392 - | "enable_partial_results_stabilization",
|
392 + | "EnablePartialResultsStabilization",
|
393 393 | 14,
|
394 394 | )
|
395 395 | .with_http_header("x-amzn-transcribe-enable-partial-results-stabilization");
|
396 396 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PARTIAL_RESULTS_STABILITY: ::aws_smithy_schema::Schema =
|
397 397 | ::aws_smithy_schema::Schema::new_member(
|
398 398 | ::aws_smithy_schema::ShapeId::from_static(
|
399 399 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$PartialResultsStability",
|
400 400 | "com.amazonaws.transcribestreaming.synthetic",
|
401 401 | "StartCallAnalyticsStreamTranscriptionInput",
|
402 402 | ),
|
403 403 | ::aws_smithy_schema::ShapeType::String,
|
404 - | "partial_results_stability",
|
404 + | "PartialResultsStability",
|
405 405 | 15,
|
406 406 | )
|
407 407 | .with_http_header("x-amzn-transcribe-partial-results-stability");
|
408 408 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE: ::aws_smithy_schema::Schema =
|
409 409 | ::aws_smithy_schema::Schema::new_member(
|
410 410 | ::aws_smithy_schema::ShapeId::from_static(
|
411 411 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$ContentIdentificationType",
|
412 412 | "com.amazonaws.transcribestreaming.synthetic",
|
413 413 | "StartCallAnalyticsStreamTranscriptionInput",
|
414 414 | ),
|
415 415 | ::aws_smithy_schema::ShapeType::String,
|
416 - | "content_identification_type",
|
416 + | "ContentIdentificationType",
|
417 417 | 16,
|
418 418 | )
|
419 419 | .with_http_header("x-amzn-transcribe-content-identification-type");
|
420 420 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_REDACTION_TYPE: ::aws_smithy_schema::Schema =
|
421 421 | ::aws_smithy_schema::Schema::new_member(
|
422 422 | ::aws_smithy_schema::ShapeId::from_static(
|
423 423 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$ContentRedactionType",
|
424 424 | "com.amazonaws.transcribestreaming.synthetic",
|
425 425 | "StartCallAnalyticsStreamTranscriptionInput",
|
426 426 | ),
|
427 427 | ::aws_smithy_schema::ShapeType::String,
|
428 - | "content_redaction_type",
|
428 + | "ContentRedactionType",
|
429 429 | 17,
|
430 430 | )
|
431 431 | .with_http_header("x-amzn-transcribe-content-redaction-type");
|
432 432 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PII_ENTITY_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
433 433 | ::aws_smithy_schema::ShapeId::from_static(
|
434 434 | "com.amazonaws.transcribestreaming.synthetic#StartCallAnalyticsStreamTranscriptionInput$PiiEntityTypes",
|
435 435 | "com.amazonaws.transcribestreaming.synthetic",
|
436 436 | "StartCallAnalyticsStreamTranscriptionInput",
|
437 437 | ),
|
438 438 | ::aws_smithy_schema::ShapeType::String,
|
439 - | "pii_entity_types",
|
439 + | "PiiEntityTypes",
|
440 440 | 18,
|
441 441 | )
|
442 442 | .with_http_header("x-amzn-transcribe-pii-entity-types");
|
443 443 | static STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
444 444 | STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA_ID,
|
445 445 | ::aws_smithy_schema::ShapeType::Structure,
|
446 446 | &[
|
447 447 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_CODE,
|
448 448 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ,
|
449 449 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_ENCODING,
|
450 450 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAME,
|
451 451 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_SESSION_ID,
|
452 452 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_AUDIO_STREAM,
|
453 453 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAME,
|
454 454 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_METHOD,
|
455 455 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_MODEL_NAME,
|
456 456 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_IDENTIFY_LANGUAGE,
|
457 457 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_OPTIONS,
|
458 458 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PREFERRED_LANGUAGE,
|
459 459 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAMES,
|
460 460 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAMES,
|
461 461 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION,
|
462 462 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PARTIAL_RESULTS_STABILITY,
|
463 463 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE,
|
464 464 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_REDACTION_TYPE,
|
465 465 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PII_ENTITY_TYPES,
|
466 466 | ],
|
467 - | );
|
467 + | )
|
468 + | .with_http(aws_smithy_schema::traits::HttpTrait::new(
|
469 + | "POST",
|
470 + | "/call-analytics-stream-transcription",
|
471 + | None,
|
472 + | ));
|
468 473 | impl StartCallAnalyticsStreamTranscriptionInput {
|
469 474 | /// The schema for this shape.
|
470 475 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA;
|
471 476 | }
|
472 477 | impl ::aws_smithy_schema::serde::SerializableStruct for StartCallAnalyticsStreamTranscriptionInput {
|
473 478 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
474 479 | fn serialize_members(
|
475 480 | &self,
|
476 481 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
477 482 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
478 483 | if let Some(ref val) = self.language_code {
|
479 484 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_CODE, val.as_str())?;
|
480 485 | }
|
481 486 | if let Some(ref val) = self.media_sample_rate_hertz {
|
482 487 | ser.write_integer(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_SAMPLE_RATE_HERTZ, *val)?;
|
483 488 | }
|
484 489 | if let Some(ref val) = self.media_encoding {
|
485 490 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_MEDIA_ENCODING, val.as_str())?;
|
486 491 | }
|
487 492 | if let Some(ref val) = self.vocabulary_name {
|
488 493 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAME, val)?;
|
489 494 | }
|
490 495 | if let Some(ref val) = self.session_id {
|
491 496 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_SESSION_ID, val)?;
|
492 497 | }
|
493 - | {
|
494 - | let val = &self.audio_stream;
|
495 - | ser.write_null(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_AUDIO_STREAM)?;
|
496 - | }
|
497 498 | if let Some(ref val) = self.vocabulary_filter_name {
|
498 499 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAME, val)?;
|
499 500 | }
|
500 501 | if let Some(ref val) = self.vocabulary_filter_method {
|
501 502 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_METHOD, val.as_str())?;
|
502 503 | }
|
503 504 | if let Some(ref val) = self.language_model_name {
|
504 505 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_MODEL_NAME, val)?;
|
505 506 | }
|
506 507 | if let Some(ref val) = self.identify_language {
|
507 508 | ser.write_boolean(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_IDENTIFY_LANGUAGE, *val)?;
|
508 509 | }
|
509 510 | if let Some(ref val) = self.language_options {
|
510 511 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_LANGUAGE_OPTIONS, val)?;
|
511 512 | }
|
512 513 | if let Some(ref val) = self.preferred_language {
|
513 514 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PREFERRED_LANGUAGE, val.as_str())?;
|
514 515 | }
|
515 516 | if let Some(ref val) = self.vocabulary_names {
|
516 517 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_NAMES, val)?;
|
517 518 | }
|
518 519 | if let Some(ref val) = self.vocabulary_filter_names {
|
519 520 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_VOCABULARY_FILTER_NAMES, val)?;
|
520 521 | }
|
521 522 | if let Some(ref val) = self.enable_partial_results_stabilization {
|
522 523 | ser.write_boolean(
|
523 524 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_ENABLE_PARTIAL_RESULTS_STABILIZATION,
|
524 525 | *val,
|
525 526 | )?;
|
526 527 | }
|
527 528 | if let Some(ref val) = self.partial_results_stability {
|
528 529 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PARTIAL_RESULTS_STABILITY, val.as_str())?;
|
529 530 | }
|
530 531 | if let Some(ref val) = self.content_identification_type {
|
531 532 | ser.write_string(
|
532 533 | &STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_IDENTIFICATION_TYPE,
|
533 534 | val.as_str(),
|
534 535 | )?;
|
535 536 | }
|
536 537 | if let Some(ref val) = self.content_redaction_type {
|
537 538 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_CONTENT_REDACTION_TYPE, val.as_str())?;
|
538 539 | }
|
539 540 | if let Some(ref val) = self.pii_entity_types {
|
540 541 | ser.write_string(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_MEMBER_PII_ENTITY_TYPES, val)?;
|
541 542 | }
|
542 543 | Ok(())
|
543 544 | }
|
544 545 | }
|
545 546 | impl StartCallAnalyticsStreamTranscriptionInput {
|
546 547 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
547 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
548 - | deserializer: &mut D,
|
548 + | pub fn deserialize(
|
549 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
549 550 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
550 551 | #[allow(unused_variables, unused_mut)]
|
551 552 | let mut builder = Self::builder();
|
552 553 | #[allow(
|
553 554 | unused_variables,
|
554 555 | unreachable_code,
|
555 556 | clippy::single_match,
|
556 557 | clippy::match_single_binding,
|
557 558 | clippy::diverging_sub_expression
|
558 559 | )]
|
559 - | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA, (), |_, member, deser| {
|
560 + | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA, &mut |member, deser| {
|
560 561 | match member.member_index() {
|
561 562 | Some(0) => {
|
562 563 | builder.language_code = Some(crate::types::CallAnalyticsLanguageCode::from(deser.read_string(member)?.as_str()));
|
563 564 | }
|
564 565 | Some(1) => {
|
565 566 | builder.media_sample_rate_hertz = Some(deser.read_integer(member)?);
|
566 567 | }
|
567 568 | Some(2) => {
|
568 569 | builder.media_encoding = Some(crate::types::MediaEncoding::from(deser.read_string(member)?.as_str()));
|
569 570 | }
|
570 571 | Some(3) => {
|
571 572 | builder.vocabulary_name = Some(deser.read_string(member)?);
|
572 573 | }
|
573 574 | Some(4) => {
|
574 575 | builder.session_id = Some(deser.read_string(member)?);
|
575 576 | }
|
576 577 | Some(5) => {
|
577 578 | builder.audio_stream = Some({
|
578 579 | let _ = member;
|
579 - | todo!("deserialize aggregate")
|
580 + | todo!("deserialize streaming union")
|
580 581 | });
|
581 582 | }
|
582 583 | Some(6) => {
|
583 584 | builder.vocabulary_filter_name = Some(deser.read_string(member)?);
|
584 585 | }
|
585 586 | Some(7) => {
|
586 587 | builder.vocabulary_filter_method = Some(crate::types::VocabularyFilterMethod::from(deser.read_string(member)?.as_str()));
|
587 588 | }
|
588 589 | Some(8) => {
|
589 590 | builder.language_model_name = Some(deser.read_string(member)?);
|
590 591 | }
|
591 592 | Some(9) => {
|
592 593 | builder.identify_language = Some(deser.read_boolean(member)?);
|
593 594 | }
|
594 595 | Some(10) => {
|
595 596 | builder.language_options = Some(deser.read_string(member)?);
|
596 597 | }
|
597 598 | Some(11) => {
|
598 599 | builder.preferred_language = Some(crate::types::CallAnalyticsLanguageCode::from(deser.read_string(member)?.as_str()));
|
599 600 | }
|
600 601 | Some(12) => {
|
601 602 | builder.vocabulary_names = Some(deser.read_string(member)?);
|
602 603 | }
|
603 604 | Some(13) => {
|
604 605 | builder.vocabulary_filter_names = Some(deser.read_string(member)?);
|
605 606 | }
|
606 607 | Some(14) => {
|
607 608 | builder.enable_partial_results_stabilization = Some(deser.read_boolean(member)?);
|
608 609 | }
|
609 610 | Some(15) => {
|
610 611 | builder.partial_results_stability = Some(crate::types::PartialResultsStability::from(deser.read_string(member)?.as_str()));
|
611 612 | }
|
612 613 | Some(16) => {
|
613 614 | builder.content_identification_type = Some(crate::types::ContentIdentificationType::from(deser.read_string(member)?.as_str()));
|
614 615 | }
|
615 616 | Some(17) => {
|
616 617 | builder.content_redaction_type = Some(crate::types::ContentRedactionType::from(deser.read_string(member)?.as_str()));
|
617 618 | }
|
618 619 | Some(18) => {
|
619 620 | builder.pii_entity_types = Some(deser.read_string(member)?);
|
620 621 | }
|
621 622 | _ => {}
|
622 623 | }
|
623 624 | Ok(())
|
624 625 | })?;
|
626 + | builder.media_sample_rate_hertz = builder.media_sample_rate_hertz.or(Some(0i32));
|
627 + | builder
|
628 + | .build()
|
629 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
630 + | }
|
631 + | }
|
632 + | impl StartCallAnalyticsStreamTranscriptionInput {
|
633 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
634 + | /// Header-bound members are read directly from headers, avoiding runtime
|
635 + | /// member iteration overhead. Body members are read via the deserializer.
|
636 + | pub fn deserialize_with_response(
|
637 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
638 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
639 + | _status: u16,
|
640 + | _body: &[u8],
|
641 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
642 + | #[allow(unused_variables, unused_mut)]
|
643 + | let mut builder = Self::builder();
|
644 + | if let Some(val) = headers.get("x-amzn-transcribe-language-code") {
|
645 + | builder.language_code = Some(crate::types::CallAnalyticsLanguageCode::from(val));
|
646 + | }
|
647 + | if let Some(val) = headers.get("x-amzn-transcribe-sample-rate") {
|
648 + | builder.media_sample_rate_hertz = val.parse::<i32>().ok();
|
649 + | }
|
650 + | if let Some(val) = headers.get("x-amzn-transcribe-media-encoding") {
|
651 + | builder.media_encoding = Some(crate::types::MediaEncoding::from(val));
|
652 + | }
|
653 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-name") {
|
654 + | builder.vocabulary_name = Some(val.to_string());
|
655 + | }
|
656 + | if let Some(val) = headers.get("x-amzn-transcribe-session-id") {
|
657 + | builder.session_id = Some(val.to_string());
|
658 + | }
|
659 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-name") {
|
660 + | builder.vocabulary_filter_name = Some(val.to_string());
|
661 + | }
|
662 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-method") {
|
663 + | builder.vocabulary_filter_method = Some(crate::types::VocabularyFilterMethod::from(val));
|
664 + | }
|
665 + | if let Some(val) = headers.get("x-amzn-transcribe-language-model-name") {
|
666 + | builder.language_model_name = Some(val.to_string());
|
667 + | }
|
668 + | if let Some(val) = headers.get("x-amzn-transcribe-identify-language") {
|
669 + | builder.identify_language = val.parse::<bool>().ok();
|
670 + | }
|
671 + | if let Some(val) = headers.get("x-amzn-transcribe-language-options") {
|
672 + | builder.language_options = Some(val.to_string());
|
673 + | }
|
674 + | if let Some(val) = headers.get("x-amzn-transcribe-preferred-language") {
|
675 + | builder.preferred_language = Some(crate::types::CallAnalyticsLanguageCode::from(val));
|
676 + | }
|
677 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-names") {
|
678 + | builder.vocabulary_names = Some(val.to_string());
|
679 + | }
|
680 + | if let Some(val) = headers.get("x-amzn-transcribe-vocabulary-filter-names") {
|
681 + | builder.vocabulary_filter_names = Some(val.to_string());
|
682 + | }
|
683 + | if let Some(val) = headers.get("x-amzn-transcribe-enable-partial-results-stabilization") {
|
684 + | builder.enable_partial_results_stabilization = val.parse::<bool>().ok();
|
685 + | }
|
686 + | if let Some(val) = headers.get("x-amzn-transcribe-partial-results-stability") {
|
687 + | builder.partial_results_stability = Some(crate::types::PartialResultsStability::from(val));
|
688 + | }
|
689 + | if let Some(val) = headers.get("x-amzn-transcribe-content-identification-type") {
|
690 + | builder.content_identification_type = Some(crate::types::ContentIdentificationType::from(val));
|
691 + | }
|
692 + | if let Some(val) = headers.get("x-amzn-transcribe-content-redaction-type") {
|
693 + | builder.content_redaction_type = Some(crate::types::ContentRedactionType::from(val));
|
694 + | }
|
695 + | if let Some(val) = headers.get("x-amzn-transcribe-pii-entity-types") {
|
696 + | builder.pii_entity_types = Some(val.to_string());
|
697 + | }
|
698 + | #[allow(
|
699 + | unused_variables,
|
700 + | unreachable_code,
|
701 + | clippy::single_match,
|
702 + | clippy::match_single_binding,
|
703 + | clippy::diverging_sub_expression
|
704 + | )]
|
705 + | deserializer.read_struct(&STARTCALLANALYTICSSTREAMTRANSCRIPTIONINPUT_SCHEMA, &mut |member, deser| {
|
706 + | match member.member_index() {
|
707 + | Some(0) => { /* read from headers above */ }
|
708 + | Some(1) => { /* read from headers above */ }
|
709 + | Some(2) => { /* read from headers above */ }
|
710 + | Some(3) => { /* read from headers above */ }
|
711 + | Some(4) => { /* read from headers above */ }
|
712 + | Some(5) => {
|
713 + | builder.audio_stream = Some({
|
714 + | let _ = member;
|
715 + | todo!("deserialize streaming union")
|
716 + | });
|
717 + | }
|
718 + | Some(6) => { /* read from headers above */ }
|
719 + | Some(7) => { /* read from headers above */ }
|
720 + | Some(8) => { /* read from headers above */ }
|
721 + | Some(9) => { /* read from headers above */ }
|
722 + | Some(10) => { /* read from headers above */ }
|
723 + | Some(11) => { /* read from headers above */ }
|
724 + | Some(12) => { /* read from headers above */ }
|
725 + | Some(13) => { /* read from headers above */ }
|
726 + | Some(14) => { /* read from headers above */ }
|
727 + | Some(15) => { /* read from headers above */ }
|
728 + | Some(16) => { /* read from headers above */ }
|
729 + | Some(17) => { /* read from headers above */ }
|
730 + | Some(18) => { /* read from headers above */ }
|
731 + | _ => {}
|
732 + | }
|
733 + | Ok(())
|
734 + | })?;
|
625 735 | builder
|
626 736 | .build()
|
627 737 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
628 738 | }
|
629 739 | }
|
630 740 | impl StartCallAnalyticsStreamTranscriptionInput {
|
631 741 | /// Creates a new builder-style object to manufacture [`StartCallAnalyticsStreamTranscriptionInput`](crate::operation::start_call_analytics_stream_transcription::StartCallAnalyticsStreamTranscriptionInput).
|
632 742 | pub fn builder() -> crate::operation::start_call_analytics_stream_transcription::builders::StartCallAnalyticsStreamTranscriptionInputBuilder {
|
633 743 | crate::operation::start_call_analytics_stream_transcription::builders::StartCallAnalyticsStreamTranscriptionInputBuilder::default()
|
634 744 | }
|