Skip to content

Commit 85e5563

Browse files
committed
pasting changes for voice-balance (more to come)
1 parent c3ed33a commit 85e5563

2 files changed

Lines changed: 110 additions & 49 deletions

File tree

css3-speech/Overview.html

Lines changed: 66 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
<style type="text/css">
1414
p
1515
{
16-
padding-bottom : 1em;
16+
padding-bottom : 1em;
1717
}
1818

1919
p + p
2020
{
21-
text-indent : 0;
21+
text-indent : 0;
2222
}
2323

2424
*:target
2525
{
26-
border : 1px dashed #66CC66;
26+
border : 1px dashed #66CC66;
2727
}</style>
2828
<!--
2929
.prod
@@ -90,13 +90,13 @@
9090

9191
<h1 id=top>CSS Speech Module</h1>
9292

93-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 08 July 2011</h2>
93+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 July 2011</h2>
9494

9595
<dl>
9696
<dt>This version:
9797

9898
<dd>
99-
<!--<a href="http://www.w3.org/TR/2011/WD-css3-speech-20110708">http://www.w3.org/TR/2011/ED-css3-speech-20110708/</a>-->
99+
<!--<a href="http://www.w3.org/TR/2011/WD-css3-speech-20110713">http://www.w3.org/TR/2011/ED-css3-speech-20110713/</a>-->
100100
<a
101101
href="http://dev.w3.org/csswg/css3-speech">http://dev.w3.org/csswg/css3-speech</a>
102102

@@ -694,15 +694,55 @@ <h3 id=mixing-props-voice-balance><span class=secno>5.2. </span>The
694694
<td>specified value
695695
</table>
696696

697-
<p>The &lsquo;<a href="#voice-balance"><code
698-
class=property>voice-balance</code></a>&rsquo; property manipulates the
699-
distribution of audio output between left and right channels in
700-
stereo-capable sound devices.
697+
<p> The &lsquo;<a href="#voice-balance"><code
698+
class=property>voice-balance</code></a>&rsquo; property controls the
699+
spatial distribution of audio output across a lateral sound stage: one
700+
extremity is on the left, the other extremity is on the right hand side,
701+
relative to the listener's position. Authors can specify intermediary
702+
steps between left and right extremities, to represent the audio
703+
separation along the resulting left-right axis.
701704

702705
<p class=note> Note that the functionality provided by this property has no
703706
match in the SSML markup language <a href="#SSML"
704707
rel=biblioentry>[SSML]<!--{{!SSML}}--></a>.
705708

709+
<ul>
710+
<li> When user-agents produce audio via a mono-aural sound system (i.e.
711+
single-speaker setup), the &lsquo;<a href="#voice-balance"><code
712+
class=property>voice-balance</code></a>&rsquo; property has no effect.
713+
714+
<li> When user-agents produce audio through a stereo sound system (e.g.
715+
two speakers, a pair of headphones), the left-right distribution of audio
716+
signals precisely match the authored values for the &lsquo;<a
717+
href="#voice-balance"><code
718+
class=property>voice-balance</code></a>&rsquo; property.
719+
720+
<li> When user-agents are capable of mixing audio signals through more
721+
than 2 channels (e.g. 5-speakers surround sound system, including a
722+
dedicated center channel), the physical distribution of audio signals
723+
resulting from the application of the &lsquo;<a
724+
href="#voice-balance"><code
725+
class=property>voice-balance</code></a>&rsquo; property must be performed
726+
so that the listener perceives sound as if it was coming from a basic
727+
stereo layout. For example, the center channel as well as the left/right
728+
speakers may be used altogether in order to emulate the behavior of the
729+
&lsquo;<code class=property>center</code>&rsquo; value (zero, on the
730+
[-100,100] scale of the &lsquo;<a href="#voice-balance"><code
731+
class=property>voice-balance</code></a>&rsquo; property).
732+
</ul>
733+
734+
<p class=note> Note that sound systems may be configured by users in such a
735+
way that it would interfere with the left-right audio distribution
736+
specified by document authors. Typically, the various "surround" modes
737+
available in modern sound systems (including systems based on basic stereo
738+
speakers) tend to greatly alter the perceived spatial arrangement of audio
739+
signals. Some users may even configure their system to "downgrade" any
740+
rendered sound to a single mono channel, in which case the effect of the
741+
&lsquo;<a href="#voice-balance"><code
742+
class=property>voice-balance</code></a>&rsquo; property would obviously
743+
not be perceivable at all. The rendering fidelity of authored content is
744+
therefore dependent on such user customizations.
745+
706746
<dl>
707747
<dt> <strong>&lt;number&gt;</strong>
708748

@@ -713,12 +753,13 @@ <h3 id=mixing-props-voice-balance><span class=secno>5.2. </span>The
713753
&lsquo;<code class=css>-100</code>&rsquo; are clamped to &lsquo;<code
714754
class=css>-100</code>&rsquo;. Values greater than &lsquo;<code
715755
class=css>100</code>&rsquo; are clamped to &lsquo;<code
716-
class=css>100</code>&rsquo;. When the value is &lsquo;<code
717-
class=css>-100</code>&rsquo;, only the left channel is audible.
718-
Conversely, when the value is &lsquo;<code class=css>100</code>&rsquo;
719-
only the right channel is audible. When the value is &lsquo;<code
720-
class=css>0</code>&rsquo;, left and right channels both have the same
721-
sound level, so that the speech appears to be coming from the center.</p>
756+
class=css>100</code>&rsquo;. The value &lsquo;<code
757+
class=css>-100</code>&rsquo; represents the left side, and the value
758+
&lsquo;<code class=css>100</code>&rsquo; represents the right side. The
759+
value &lsquo;<code class=css>0</code>&rsquo; represents the center point
760+
whereby there is no discernible audio separation between left and right
761+
sides (in a stereo sound system, this corresponds to equal distribution
762+
of audio signals between left and right speakers).</p>
722763

723764
<dt> <strong>left</strong>
724765

@@ -738,31 +779,26 @@ <h3 id=mixing-props-voice-balance><span class=secno>5.2. </span>The
738779
<dt> <strong>leftwards</strong>
739780

740781
<dd>
741-
<p>Moves the sound to the left, relative to the inherited &lsquo;<a
742-
href="#voice-balance"><code
743-
class=property>voice-balance</code></a>&rsquo;. More precisely, subtract
744-
20 from the inherited value and clip the resulting value to the range
745-
&lsquo;<code class=css>-100</code>&rsquo; and &lsquo;<code
746-
class=css>100</code>&rsquo;.</p>
782+
<p>Moves the sound to the left, by subtracting 20 from the inherited
783+
&lsquo;<a href="#voice-balance"><code
784+
class=property>voice-balance</code></a>&rsquo; value, and by clamping
785+
the resulting number to &lsquo;<code class=css>-100</code>&rsquo;.</p>
747786

748787
<dt> <strong>rightwards</strong>
749788

750789
<dd>
751-
<p>Moves the sound to the right, relative to the inherited &lsquo;<a
790+
<p>Moves the sound to the right, by adding 20 to the inherited &lsquo;<a
752791
href="#voice-balance"><code
753-
class=property>voice-balance</code></a>&rsquo;. More precisely, add 20
754-
to the inherited value and clip the resulting value to the range
755-
&lsquo;<code class=css>-100</code>&rsquo; and &lsquo;<code
756-
class=css>100</code>&rsquo;.</p>
792+
class=property>voice-balance</code></a>&rsquo; value, and by clamping
793+
the resulting number to &lsquo;<code class=css>100</code>&rsquo;.</p>
757794
</dl>
758795

759796
<p class=note> Note that many speech synthesizers only generate mono sound,
760797
and therefore do not intrinsically support the &lsquo;<a
761798
href="#voice-balance"><code class=property>voice-balance</code></a>&rsquo;
762-
property. The distribution of audio signals between left and right
763-
channels would consequently occur at post-synthesis stage, for example
764-
when a speech-enabled user-agent mixes the various audio sources that may
765-
be authored within the document.
799+
property. The sound distribution along the left-right axis consequently
800+
occurs at post-synthesis stage (when the speech-enabled user-agent mixes
801+
the various audio sources authored within the document)
766802

767803
<h2 id=speaking-props><span class=secno>6. </span>Speaking properties</h2>
768804

css3-speech/Overview.src.html

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
<style type="text/css">
1010
p
1111
{
12-
padding-bottom : 1em;
12+
padding-bottom : 1em;
1313
}
1414

1515
p + p
1616
{
17-
text-indent : 0;
17+
text-indent : 0;
1818
}
1919

2020
*:target
2121
{
22-
border : 1px dashed #66CC66;
22+
border : 1px dashed #66CC66;
2323
}</style>
2424
<!--
2525
.prod
@@ -412,20 +412,48 @@ <h3 id="mixing-props-voice-balance">The 'voice-balance' property</h3>
412412
</tr>
413413
</tbody>
414414
</table>
415-
<p>The 'voice-balance' property manipulates the distribution of audio output between left and
416-
right channels in stereo-capable sound devices.</p>
415+
<p> The 'voice-balance' property controls the spatial distribution of audio output across a
416+
lateral sound stage: one extremity is on the left, the other extremity is on the right hand
417+
side, relative to the listener's position. Authors can specify intermediary steps between left
418+
and right extremities, to represent the audio separation along the resulting left-right axis. </p>
419+
417420
<p class="note"> Note that the functionality provided by this property has no match in the SSML
418421
markup language [[!SSML]]. </p>
422+
423+
<ul>
424+
<li> When user-agents produce audio via a mono-aural sound system (i.e. single-speaker setup),
425+
the 'voice-balance' property has no effect. </li>
426+
<li> When user-agents produce audio through a stereo sound system (e.g. two speakers, a pair
427+
of headphones), the left-right distribution of audio signals precisely match the authored
428+
values for the 'voice-balance' property. </li>
429+
<li> When user-agents are capable of mixing audio signals through more than 2 channels (e.g.
430+
5-speakers surround sound system, including a dedicated center channel), the physical
431+
distribution of audio signals resulting from the application of the 'voice-balance' property
432+
must be performed so that the listener perceives sound as if it was coming from a basic
433+
stereo layout. For example, the center channel as well as the left/right speakers may be
434+
used altogether in order to emulate the behavior of the 'center' value (zero, on the
435+
[-100,100] scale of the 'voice-balance' property). </li>
436+
</ul>
437+
438+
<p class="note"> Note that sound systems may be configured by users in such a way that it would
439+
interfere with the left-right audio distribution specified by document authors. Typically, the
440+
various "surround" modes available in modern sound systems (including systems based on basic
441+
stereo speakers) tend to greatly alter the perceived spatial arrangement of audio signals.
442+
Some users may even configure their system to "downgrade" any rendered sound to a single mono
443+
channel, in which case the effect of the 'voice-balance' property would obviously not be
444+
perceivable at all. The rendering fidelity of authored content is therefore dependent on such
445+
user customizations. </p>
419446
<dl>
420447
<dt>
421448
<strong>&lt;number&gt;</strong>
422449
</dt>
423450
<dd>
424451
<p>A <a href="#number-def">number</a> between '-100' and '100' (inclusive). Values smaller
425-
than '-100' are clamped to '-100'. Values greater than '100' are clamped to '100'. When
426-
the value is '-100', only the left channel is audible. Conversely, when the value is '100'
427-
only the right channel is audible. When the value is '0', left and right channels both
428-
have the same sound level, so that the speech appears to be coming from the center.</p>
452+
than '-100' are clamped to '-100'. Values greater than '100' are clamped to '100'. The
453+
value '-100' represents the left side, and the value '100' represents the right side. The
454+
value '0' represents the center point whereby there is no discernible audio separation
455+
between left and right sides (in a stereo sound system, this corresponds to equal
456+
distribution of audio signals between left and right speakers). </p>
429457
</dd>
430458
<dt>
431459
<strong>left</strong>
@@ -449,24 +477,21 @@ <h3 id="mixing-props-voice-balance">The 'voice-balance' property</h3>
449477
<strong>leftwards</strong>
450478
</dt>
451479
<dd>
452-
<p>Moves the sound to the left, relative to the inherited 'voice-balance'. More precisely,
453-
subtract 20 from the inherited value and clip the resulting value to the range '-100' and
454-
'100'.</p>
480+
<p>Moves the sound to the left, by subtracting 20 from the inherited 'voice-balance' value,
481+
and by clamping the resulting number to '-100'.</p>
455482
</dd>
456483
<dt>
457484
<strong>rightwards</strong>
458485
</dt>
459486
<dd>
460-
<p>Moves the sound to the right, relative to the inherited 'voice-balance'. More precisely,
461-
add 20 to the inherited value and clip the resulting value to the range '-100' and
462-
'100'.</p>
487+
<p>Moves the sound to the right, by adding 20 to the inherited 'voice-balance' value, and by
488+
clamping the resulting number to '100'.</p>
463489
</dd>
464490
</dl>
465491
<p class="note"> Note that many speech synthesizers only generate mono sound, and therefore do
466-
not intrinsically support the 'voice-balance' property. The distribution of audio signals
467-
between left and right channels would consequently occur at post-synthesis stage, for example
468-
when a speech-enabled user-agent mixes the various audio sources that may be authored within
469-
the document. </p>
492+
not intrinsically support the 'voice-balance' property. The sound distribution along the
493+
left-right axis consequently occurs at post-synthesis stage (when the speech-enabled
494+
user-agent mixes the various audio sources authored within the document) </p>
470495
<h2 id="speaking-props">Speaking properties</h2>
471496
<h3 id="speaking-props-speak">The 'speak' property</h3>
472497
<table class="propdef" summary="name: syntax">

0 commit comments

Comments
 (0)