daisy / pipeline

Super-project that aggregates all Pipeline related code, provides a common tracker for Pipeline related issues and holds the Pipeline website
http://daisy.github.io/pipeline
20 stars 20 forks source link

DTBook text-to-speech : pronounce abbreviation title when it exists #689

Open NPavie opened 1 year ago

NPavie commented 1 year ago

Expected Behavior

For a given abbreviation in a dtbook XML, the expected corresponding audio sample should tell the content of the title attribute.

For example, an abbreviation structured as <abbr title="number">n°</abbr> should be pronunced "number".

Actual Behavior

The text to speech engine receives and tells the original text instead of the content of the title attribute.

Steps to Reproduce

Create a dtbook with a simple abbreviation tag. Requests its conversion as daisy3 or epub3 with audio in the daisy pipeline 2.

Details

It was tested with SAPI / Onecore text to speech adapter.

In debug, the ssml received by the adapter before the "transform-ssml" tts specific phase was not keeping the abbreviation title content.

Environment

bertfrees commented 1 year ago

Should be fixed in the px:dtbook-to-ssml step, and more specifically in dtbook-semantic-transform.xsl.