GroupBrowser  




Go Back   GroupBrowser > Macromedia Newsgroups > Macromedia Director > Director Lingo
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

Re: Script parser
Old 08-28-2008, 10:45 PM #11
alchemist
Guest
 
Status:
Posts: n/a
Default Re: Script parser

I doubt there are things that can be done ONLY with vb.net, but if you say
so...

"wgb14" <webforumsuser@macromedia.com> wrote in message
news:g97fdl$5rd$1@forums.macromedia.com...
> Yes, this is what I was looking for. However, there is still too much work
> to do in the TTS part that can be done only VB.NET.




  Reply With Quote

Re: Script parser
Old 08-28-2008, 11:19 PM #12
wgb14
Guest
 
Status:
Posts: n/a
Default Re: Script parser

Alchemist it is clear that you are not in a good mood today, but nevertheless I thank you for your answer!!!!
  Reply With Quote

Re: Script parser
Old 08-28-2008, 11:33 PM #13
Dave C
Guest
 
Status:
Posts: n/a
Default Re: Script parser

Doesn't Director support TTS, at least to some degree? And a script that
parses some text and creates a text file can also be somewhat easily
written. Are you saying it can not be done? Am I missing something?
  Reply With Quote

Re: Script parser
Old 08-29-2008, 12:00 AM #14
wgb14
Guest
 
Status:
Posts: n/a
Default Re: Script parser

The way I think it is possible (not 100% sure yet), to solve the TTS part (the
rest can be done in director easier than VB), is by tagging my text with a tag
called bookmark mark (e.g., <Bookmark Mark=anim1 test1 />). Every TTS engine
can process such tagged text and return the values of bookmark name (i.e.,
anim1) and bookmarkid (i.e., test1) into the application itself. This bookmark
event fires every time the TTS encounters these tags. If I will hook up a timer
to return the time that these bookmarks are encountered, then problem solved.
Is this possible in Director? VB is one of the many languages that you can use
to accomplish this!

  Reply With Quote

Re: Script parser
Old 08-29-2008, 12:43 AM #15
Dave C
Guest
 
Status:
Posts: n/a
Default Re: Script parser

It seems possible, if I understand correctly what you are trying to do.

A script could parse through a string and find the position of each tag.
For example your original sample was

Hi <anim1=test1> my name is giannis. How are you today <anim2=test2>

A search script could figure out that words 2 and 11 were tags because
they start and end with <>.

Next you would pass the string to the voiceSpeak( ) function (after
replacing the tags with a real word that the TTS engine can translate).

Checking voiceState( ) in an exitFrame handler (or using timer objects)
you continuously check if the voice is speaking. If it is still
speaking, use voiceWordPos( ) to figure out which word is currently
being spoken. The first time you find that it is at (or beyond) word 2,
grab the time and store it. Continue until all tags are encountered
and/or the speech is done.

How accurate the time stamps are will depend on how well you design the
code. If your design is right, I would guess that the time stamps would
be 'accurate enough', but you really haven't completely described what
you are trying to achieve.



wgb14 wrote:
> The way I think it is possible (not 100% sure yet), to solve the TTS part (the
> rest can be done in director easier than VB), is by tagging my text with a tag
> called bookmark mark (e.g., <Bookmark Mark=anim1 test1 />). Every TTS engine
> can process such tagged text and return the values of bookmark name (i.e.,
> anim1) and bookmarkid (i.e., test1) into the application itself. This bookmark
> event fires every time the TTS encounters these tags. If I will hook up a timer
> to return the time that these bookmarks are encountered, then problem solved.
> Is this possible in Director? VB is one of the many languages that you can use
> to accomplish this!
>

  Reply With Quote

Re: Script parser
Old 08-29-2008, 03:28 AM #16
alchemist
Guest
 
Status:
Posts: n/a
Default Re: Script parser

Nothing particularly wrong with my mood.
What I have been trying to do from my first post was to give you some
guidelines that would help you in both getting answers, and not annoying
members with far shorter a fuse than mine.
As for the vb.net thing, the alternative answer: anything that can be done
with vb, since it can be done with c++ can be done with director. But such a
statement needs proof. And the proof is not ready to be announced yet. Hence
the off-list contact prompt in the previous post. Covered?


"wgb14" <webforumsuser@macromedia.com> wrote in message
news:g97mbt$cj8$1@forums.macromedia.com...
> Alchemist it is clear that you are not in a good mood today, but
> nevertheless I thank you for your answer!!!!



  Reply With Quote

Re: Script parser
Old 08-29-2008, 09:52 PM #17
wgb14
Guest
 
Status:
Posts: n/a
Default Re: Script parser

My apologies, I didn't intend to annoy anyone in this forum. All I wanted was
indeed some general guidlines on how to solve the problem. The posting was
indeed too long with too much info in it, but when I started the thread it was
extremely difficult to break it into smaller pieces. However my goal was
accomplished. Thanks to your suggestions, I am now well on the way to solve it.

Again my apologies if i annoyed anyone, this was certainly not my intention.

  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Adobe Newsgroups | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.