W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2005

Is there a Way to know if an audio element used alternate text?

From: Dan Evans <devans@invores.com>
Date: Tue, 20 Dec 2005 15:27:11 -0500
To: www-voice@w3.org
Message-id: <43A8691F.5030804@invores.com>

In a simple audio element with alternate TTS text, can one determine 
whether the alternate text was spoken?  It seems the spec is silent on 
this, and I have found the question of whether the alternate content is 
evaluated to be interpreter-dependent.  For example:

<block>
<var name="ttsfail" expr="false"/>
<prompt>
<audio expr = "vox_file('greeting.wav')">
<value expr="ttsfail = true, ''"/>
Thank you for calling ... Your call is very important to us and may be 
monitored or recorded for training and quality control.
</audio>
</prompt>
<!--  execute following prompt only if the greeting.wav fetch failed and
       text inside the above audio element was spoken.  greeting.wav
       has a dual language recording, so this provides dual language TTS
       backup.  However, interpreter appears to evaluate inside the audio
       element even if the content is not used -->
<prompt cond="ttsfail" xml:lang="es-MX">
Gracias por llamar ... Su llamada es muy importante para nosotros y 
podrá ser monitoreada o grabada para capacitación y control de calidad.
</prompt>
</block>

The question is under what circumstances is the variable ttsfail set to 
true?

Dan
Received on Tuesday, 20 December 2005 20:27:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:49:01 GMT