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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠