The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Text to Speech with wav File Introduction



--Apple-Mail-9-810801333
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

Hi,

Actually this functionality is included in the latest xAPSpeech.  It
can play a wav file before speech which can be selected from the xAP
message as well as a default for all messages.  Looks like I
completely missed updating the schema doc, sorry!  I have added the
extra item to the doc on mi4 and xAP wiki  which is just a Sound=
item in the tts.speak message.  Only thing to note is the sound name
should refer to the sound without the file extension
As you say this kind of this is best handled in a single message and
not two.   A xAP message can contain multiple blocks/sections  but
will only ever be about 1 class.

hth

James

On 30 Apr 2009, at 13:57, mstovenour wrote:

>
>
> I have an alerting application where I need a TTS application to
> play a wav file prior to speaking the text. There are multiple wav
> files, from a simple chime to a siren, that accompany the text; this
> rules out hard coding the wav file into the TTS application. Clearly
> I'll need to build both a new client and TTS application. My
> question is regarding the schema to use.
>
> Is there a single schema that can communicate both speech and wav
> files? If not, do you think I should extend the tts.speak to include
> attributes for intro audio files or should I create a totally new
> schema for the combination (e.g. tts.alert)? I think it is a bad
> idea to try sending separate messages because UDP does not guarantee
> sequenced delivery and it would require a complicated client that
> knows to wait for multiple messages from different schemas. As an
> alternative, is it possible to encapsulate two different schemas in
> the same message (e.g. tts.speak and Playlist.Track)?
>
>
>


--Apple-Mail-9-810801333
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html><body style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; ">


<!-- **begin egp html banner** -->

<br><br>

<!-- **end egp html banner** -->


Hi,<div><br></div><div>Actually this functionality
is included in the latest xAPSpeech. &nbsp;It can play a wav file
before speech which can be selected from the xAP message as well as a
default for all messages. &nbsp;Looks like I completely missed updating
the schema doc, sorry! &nbsp;I have added the extra item to the doc on
mi4 and xAP wiki &nbsp;which is just a Sound= &nbsp;item in the
tts.speak message. &nbsp;Only thing to note is the sound name should
refer to the sound without the file extension</div><div>As you
say this kind of this is best handled in a single message and not two.
&nbsp; A xAP message can contain multiple blocks/sections &nbsp;but
will only ever be about 1
class.</div><div><br></div><div>hth</div><div><br></div><div>James</div><div><br></div><div><div><div>On
30 Apr 2009, at 13:57, mstovenour wrote:</div><b
r class="Apple-interchange-newline"><blockquote
type="cite"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-size: 12px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing:
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust:
auto; -webkit-text-stroke-width: 0; "><div
style="background-color: rgb(255, 255, 255); "><div
id="ygrp-mlmsg" style="width: 655px; position: relative;
font-size: 13px; font-family: arial, helvetica, clean, sans-serif;
"><div id="ygrp-msg" style="width: 470px;
margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;
padding-top: 0px; padding-right: 25px; padding-bottom: 0px; padding-left:
0px; float: left; z-index: 1; line-height: 1.22em; "><div
id="ygrp-text" style="line-height: 1.22em; fo
nt-family: Georgia; "><br style="line-height: 1.22em;
"><br s
tyle="line-height: 1.22em; "><p style="line-height:
1.22em; margin-top: 0px; margin-right: 0px; margin-bottom: 1em;
margin-left: 0px; ">I have an alerting application where I need a
TTS application to play a wav file prior to speaking the text. There are
multiple wav files, from a simple chime to a siren, that accompany the
text; this rules out hard coding the wav file into the TTS application.
Clearly I'll need to build both a new client and TTS application. My
question is regarding the schema to use.<br style="line-height:
1.22em; "><br style="line-height: 1.22em; ">Is
there a single schema that can communicate both speech and wav files? If
not, do you think I should extend the tts.speak to include attributes for
intro audio files or should I create a totally new schema for the
combination (e.g. tts.alert)? I think it is a bad idea to try sending
separate messages because UDP does not guarantee sequenced delivery and it
would require a complicat
ed client that knows to wait
for multiple messages from different schemas. As an alternative, is it
possible to encapsulate two different schemas in the same message (e.g.
tts.speak and Playlist.Track)<wbr style="line-height: 1.22em;
">?<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; "></p></div><div
width="1" style="color: white; clear: both; line-height:
1.22em;
"></div></div></span></blockquote></div><br></div>



<!-- **begin egp html banner** -->

<br>



<br>

<!-- **end egp html banner** -->


<div width="1" style="color: white; clear:
both;"/>__._,_.___</div>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9629476/grpspId=1705007709/msgId=1965/stime=1241111074";
width="1" height="1"> <br>

<!-- **end egp html banner** -->


<!-- **begin egp html banner** -->

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xAP_developer/join;_ylc=X3oDMTJmOTNmc2lkBF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyNDExMTEwNzQ-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xAP_developer-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xAP_developer-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xAP_developer;_ylc=X3oDMTJkcHJrZWdjBF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjQxMTExMDc0";>
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xAP_developer-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

<!-- **end egp html banner** -->


<div style="color: white; clear:
both;"/>__,_._,___</div>
</body></html>
--Apple-Mail-9-810801333--


xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.