Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSML using Chrome TTS

I'm trying to give a little more clarity to TTS sentences by indicating emphasis, etc. I'm using the Chrome TTS API, which indicates that it accepts SSML-formatted documents in addition to raw text.

After many attempts, and a reading a few comments on the web, it doesn't look like this is actually supported, or possibly that this is up to individual voices for implementation.

Does anyone know:

  • Has SSML been abandoned under Chrome?
  • If not, is there any indication whether they expect to support it via native voice, or they're hoping that someone else will implement?
  • Do any Chrome voices currently exist that support this?

Thanks!

like image 699
idunno Avatar asked May 19 '13 14:05

idunno


People also ask

Is Google Text-to-Speech API free?

Text-to-Speech is priced based on the number of characters sent to the service to be synthesized into audio each month. You must enable billing to use Text-to-Speech, and will be automatically charged if your usage exceeds the number of free characters allowed per month.

Is SSML based on JSON?

SSML Tool. SSMLTool is a demonstrator for examining JSON-based approach to SSML support using the W3C Web Speech Synthesis API. The tool demonstrates the basic process of consuming JSON encoded SSML contained as the attribute value of data-ssml .


2 Answers

If anyone's looking at this later, you can control prosody on Mac Chrome using Apple's native command syntax, at least for the default voices:

the square root of [[pbas +4]] 2 [[char LTRL]]a[[char NORM]] to the [[pbas +4]] 14 [[char LTRL]]x[[char NORM]]

Documented here.

like image 72
citelao Avatar answered Sep 30 '22 01:09

citelao


I'm a Chrome engineer. SSML support has not been implemented yet, but it's planned. Obviously not all engines would support it, but when we implement SSML support we'll also implement support for stripping SSML from engines that don't support it.

Sorry the documentation is misleading here.

Star this bug to express interest and get notified when it's fixed: https://code.google.com/p/chromium/issues/detail?id=88072

like image 29
dmazzoni Avatar answered Sep 30 '22 00:09

dmazzoni