1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
It is possible to get text from an S3 bucket. The customer needs to write a script code with AWS SDK to get data from S3, and use the Engine API to convert the text to speech.
The customer might need to use these APIs:
• Get text from S3: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property
• Speech API: https://content.sumerian.amazonaws.com/engine/latest/docs/SpeechComponent.html#addSpeech
and here is some example code:
this._speechCaption.innerHTML = this._fillOutCaption(body);
this._hostSpeechComponent.addSpeech(this._speech);
this._speech.updateConfig({
entity: this._host,
body: '<speak>' _ body _ '</speak>',
type: 'ssml',
voice: this._voice
});
répondu il y a 5 ans
Contenus pertinents
- demandé il y a un mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 9 mois