Speech text import from S3

0

Is it possible to import speech text from S3?
I understand I can write speech text by sumerian console, or upload from local text file.
But, I'd like to let sumerian speak dynamic ssml text.

Seiji
已提問 5 年前檢視次數 217 次
1 個回答
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  
	});
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南