Text to speech
Working with the API
Generate an audio buffer for playback from a text input.
import { Predictions } from '@aws-amplify/predictions';
const result = await Predictions.convert({  textToSpeech: {    source: {      text: textToGenerateSpeech    },    voiceId: "Amy"   }})To view the complete list of voiceId options refer to Voices in Amazon Polly.