Rocrail Speaking, Train Announcement

Bug #600576 reported by Buddace
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rocrail
Fix Released
Wishlist
Unassigned

Bug Description

Example in a bloc with IN event can send string (and speak ): Train "%s" incoming ad track "%d" from "%s".
This isn't a run a recorded Wav or MP3

espeak example...I don't know voice quality in only idea
http://espeak.sourceforge.net/commands.html

1) need call espeak.exe "string"
2) string can be created dynamically with action (rob )

My suggestion of string:

constant1 %parameter1 constant2 parameter2 etc....
parameter may be:
-location from location table
-track number, I don't know if is present in rocrail / location property
-destination
-coming from
-train number
-train type

I think need more event for activate action:
-in present in block (...train incoming at track)
-wait (...train is ready to depart to)
-passing (..attention train passing in track keep clear platform)

Rocrail (r.j.versluis)
Changed in rocrail:
importance: Undecided → Wishlist
Revision history for this message
Rocrail (r.j.versluis) wrote :

This feature should be also available for layout text objects to be updated by generated text.

Revision history for this message
Rocrail (r.j.versluis) wrote :

The string should have a simplified printf format:

"Train %s has arrived on platform %s."

This string is the parameter for the External action type.

Revision history for this message
Rocrail (r.j.versluis) wrote :

Revision 1713 can speak:

20100702.112922.714 r9999I BR216 OAction 0613 Action Speak2Me [tx-text1:update]
20100702.112922.714 r9999I BR216 OAction 0289 Action execution Speak2Me [tx-text1:update]
20100702.112922.714 r9999I BR216 OAction 0319 setting text [text1] to [update]
20100702.112922.714 r9999I BR216 OText 0126 text event [BR216-2][Train %lcid% enters %bkid%]
20100702.112922.714 r9999I BR216 OText 0075 try to resolve [lcid]
20100702.112922.714 r9999I BR216 OText 0075 try to resolve [bkid]
20100702.112922.714 r9999I BR216 OText 0137 new text [Train BR216 enters 2]
20100702.112922.714 r9999I BR216 OAction 0613 Action espeak [ext-:espeak]
20100702.112922.714 r9999I BR216 OAction 0289 Action execution espeak [ext-:espeak]
20100702.112922.714 r9999I BR216 OAction 0331 executing [espeak "Train BR216 enters 2"]
20100702.112922.715 r9999I BR216 OLcDrive 0175 Found destination for "BR216": "3" (from 2)
20100702.112922.736 r9999I OSystem OSystem 0341 system = espeak "Train BR216 enters 2"

Changed in rocrail:
status: New → In Progress
Revision history for this message
Rocrail (r.j.versluis) wrote :
Revision history for this message
Rocrail (r.j.versluis) wrote :

Until now there are only 2 variables implemented:

%lcid% = Loco ID
%bkid% = Block ID

More to come.

Revision history for this message
Rocrail (r.j.versluis) wrote :

Dynamic text: %lcid%, %lcdest%, %lcnr%, %frombkid%, %bkloc%, %frombkloc% and %bkid% will be replaced with real values.

Changed in rocrail:
status: In Progress → Fix Committed
Revision history for this message
Rocrail (r.j.versluis) wrote :
Revision history for this message
Rocrail (r.j.versluis) wrote :

The locations are fixed in revno 1716.

Rocrail (r.j.versluis)
Changed in rocrail:
status: Fix Committed → Fix Released
Revision history for this message
Rocrail (r.j.versluis) wrote :

Add new block status: depart.
This should be set after the route is set to the next destination.

The action is called a few line too early for the reserved state: FromBlock is not set.

Changed in rocrail:
status: Fix Released → In Progress
Revision history for this message
Rocrail (r.j.versluis) wrote :

Add a block/location list in Rocview to 'speak' for them.

New needed attributes in the ini file:
speak4block="A,F,..."
speakcall="espeak -vnl+f2"

Rocrail (r.j.versluis)
Changed in rocrail:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.