Need to configure your backend?See Build a Backend →
テキスト音声変換
APIの使用
テキスト入力から再生用のオーディオバッファを生成します。
import { Predictions } from '@aws-amplify/predictions';
const result = await Predictions.convert({ textToSpeech: { source: { text: textToGenerateSpeech }, voiceId: "Amy" }})voiceIdオプションの完全なリストについては、Amazon Pollyの音声を参照してください。