
To test your application, go to "To Alexa," available in the menu bar, and select "Cortana." On your PC, click the microphone icon in the menu bar, type "TTSSpeechService" into the search box, and press ENTER.
On the AWS Webhook side, ensure you have linked the server URL that is available in the example "TTSSpeechService" lambda function. Select the new lambda from the list of functions and choose "Use webhook as the event source.". Click "Lambda Function" and choose the new lambda from the list of available functions. Navigate to your newly created lambda project and choose "Create a new lambda.". It renders it into a textual record, which you can publish to Amazon Polly Connect in your application.Ĭonnect to the Lambda function using the Webhook URL to run your TTS service. The Lambda function takes a sample text document (from the Amazon Polly Web API). Create a Lambda function named "TTSSpeechService" and select AWS Lambda in the AWS Marketplace. Note: You can use the top "Generate Speech" button to see the generated text.įrom the Lambda dashboard, you can find the Lambda function. The reader will highlight the word or role of the word and specify a list of words and phrases, such as "tears," which should be translated to "tears." You can click the "See Transcript" button to verify your translations at the top of the screen. To generate the text from a word, you can select the word or part of the word you want to translate to speech. You can also use your application's speech output from Amazon Polly TTS Service. Click the "Generate Speech" button to receive your text-to-speech output, which you can publish to Amazon Polly Connect in your application. If you are only using the text in your system to build your system, you can get started by clicking "View Document" in the Amazon Polly TTS Service web portal and selecting a sample sentence. Still, we recommend providing a sample sentence to avoid potential errors and to ensure that the resulting words and phrases are correct.
You can also provide a sample text to use as input. To begin using the Amazon Polly TTS Service, you can provide the service with a textual document of the desired language. On AWS CodeStar, click "Add a New Service" and select the bootstrap service. To get started, you can install the Amazon Polly TTS Service by running a series of commands with a bootstrap package, which is necessary to make Polly TTS Service work with Amazon Elastic Compute Cloud (EC2):