# Amazon Polly code examples for the SDK for Ruby ## Overview Shows how to use the AWS SDK for Ruby to work with Amazon Polly. _Amazon Polly is a Text-to-Speech (TTS) cloud service that converts text into lifelike speech._ ## ⚠ Important * Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/). * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). ## Code examples ### Prerequisites For prerequisites, see the [README](../../README.md#Prerequisites) in the `ruby` folder. ### Single actions Code excerpts that show you how to call individual service functions. - [DescribeVoices](polly_describe_voices.rb#L8) - [ListLexicons](polly_list_lexicons.rb#L8) - [SynthesizeSpeech](polly_synthesize_speech.rb#L8) ## Run the examples ### Instructions The quickest way to interact with this example code is to invoke a [Single Action](#single-actions) from your command line. For example, `ruby some_example.rb` will invoke `some_example.rb`. ### Tests ⚠ Running tests might result in charges to your AWS account. To find instructions for running these tests, see the [README](../../README.md#Tests) in the `ruby` folder. ## Contribute Code examples thrive on community contribution. To learn more about the contributing process, see [CONTRIBUTING.md](../../../CONTRIBUTING.md). ## Additional resources - [Amazon Polly Developer Guide](https://docs.aws.amazon.com/polly/latest/dg/what-is.html) - [Amazon Polly API Reference](https://docs.aws.amazon.com/polly/latest/dg/API_Reference.html) - [SDK for Ruby Amazon Polly reference](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Polly.html) --- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0