# Lab 03: Speech AI # AWS services: Transcribe (speech-to-text), Polly (text-to-speech) import: - labs/_defaults - catalog/shared/s3-bucket - catalog/shared/iam-role - catalog/speech/transcribe - catalog/speech/polly vars: lab: "03-speech" components: terraform: # S3 bucket for audio files s3-bucket: vars: name: "speech-data" folder_names: - "input/audio" - "output/transcripts" - "output/speech" tags: Lab: "03-speech" # IAM role with Transcribe and Polly permissions iam-role: vars: name: "speech-services" transcribe_enabled: true polly_enabled: true # Grant the role access to this lab's bucket (apply s3-bucket first) s3_bucket_arns: - !terraform.output s3-bucket bucket_arn tags: Lab: "03-speech" # Transcribe resources transcribe: vars: create_custom_vocabulary: true vocabulary_phrases: - "AWS" - "Amazon-Web-Services" - "Rekognition" - "Textract" - "Comprehend" - "Transcribe" - "Polly" - "SageMaker" - "Bedrock" - "artificial-intelligence" - "machine-learning" create_vocabulary_filter: false create_language_model: false tags: Lab: "03-speech" # Polly resources. We deliberately do NOT create a separate output bucket # here - async speech-synthesis tasks should write to output/speech/ in # the shared speech-data bucket (referenced from the lab docs). polly: vars: create_lexicon: true create_output_bucket: false create_sns_topic: false tags: Lab: "03-speech"