[solved] Problem with dynamic text playback

Moderator: Moderators

[solved] Problem with dynamic text playback

Postby antarjcor » 08.05.2017, 19:09

Hi
Problem with dynamic text playback

External program action
The follow works:
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe -t "Esto es una prueba de texto"

The follow also works:
-Command
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe

Parameter, Quotes enabled
-t "Esto es una prueba de texto"

The follow does not work:
-Command
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe

Parameter, Quotes enabled
-t @Textosonidos

It is a text object whose name is "Textosonidos"

Is it @Textosonidos a system variable that represents the text value of the Text object?

Balcon is the console version of Balabolka

Sens_10 for megaphone
Sens_021 to update text

Regards
Thank you

Antarjcor
Valencia
Spain
You do not have the required permissions to view the files attached to this post.
Last edited by antarjcor on 14.05.2017, 11:40, edited 1 time in total.
antarjcor
 

Re: Problem with dynamic text playback

Postby rjversluis » 09.05.2017, 07:01

Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Problem with dynamic text playback

Postby antarjcor » 09.05.2017, 16:54

Hi,
Yes.
But my English is the translator of Google, and although I read quite well, something may have happened to me.
The problem is the conversion of the text into a parameter that does not work well, and I do not know what it should be.
When it gets fixed, Balcon correctly pronounces, when using the syntax of Rocrail, it reads only the system variable, not its meaning .


Wiki Rocrail
Text
$txtID The text of a text object
@txtID The text value of a text object.
@Textosonidos ?????

It does not work
-Command
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe

Parameter, Quotes enabled
-t @Textosonidos

And I do not know what I'm doing wrong.
Thank you

PD. Translated from Spanish into English by google
antarjcor
 

Re: Problem with dynamic text playback

Postby antarjcor » 14.05.2017, 11:42

Hi,
Thank you. Yes, I have read it and I have tried it and it does not work for me.However, my English comes from the Google translator, and although I read quite well, I may have misunderstood something.
The problem is that the conversion of the parameter text into a sound does not work for me, and I do not know how it should be done to make it work.
Balcon program works correctly in the console mode (example: balcon -t "this is a sound test"), however when I use the same command in Rocrail it does not work.

Command
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe

Parameter, Quotes enabled
-t @Textosonidos

Balcon should pronounce the value of the text object, however it pronounces the name of the variable corresponding to the text parameter "@textosonidos", instead of the actual value of the object text "this is a sound test"

Wiki Rocrail says:
Text
$txtID The text of a text object
@txtID The text value of a text object.
if my object is named "textosonidos", does "@textosonidos" represent the text value?

It does not work
-Command
C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe

Parameter, Quotes enabled
-t @Textosonidos

And I do not know what I'm doing wrong. I really appreciate if you could kindly help me out.
Thank you very much in advance.
Regards,
Antonio

TextID:Textosonidos
Text Value: this is a sound test
@textosonidos = "this is a sound test"
antarjcor
 

Re: Problem with dynamic text playback

Postby rjversluis » 14.05.2017, 12:09

IMHO you do not understand whats written in the Wiki about dynamic text.
The dynamic text must be redirected to a text object as you can read in the Wiki.
Your method tries to use System variables.
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Problem with dynamic text playback

Postby antarjcor » 14.05.2017, 18:07

Dear rjversluis

Thank you very much for your response.

Please, kindly note that my question is not about how dynamic text is working, but about the spoken reproduction of the text object (@txtID).

This is what Rocrail is generating:
20170514.182533.331 r9999I tid0x023 OSystem 0330 system = ""C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe" -t @Textosonidos"

However, I would expect that RocRail would generate the following:
20170514.182533.331 r9999I tid0x023 OSystem 0330 system = ""C:\Users\user\Dropbox\Maqueta\Rocrail\Sonidos\balcon.exe" -t Proxima llegada tren"

Thank you very much in advance.
Regards,
Antonio
You do not have the required permissions to view the files attached to this post.
antarjcor
 

Re: Problem with dynamic text playback

Postby rjversluis » 15.05.2017, 07:03

Hi Antonio,

variables are not solved at the command line.
http://wiki.rocrail.net/doku.php?id=text-en#speak_to_me
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Problem with dynamic text playback

Postby rjversluis » 15.05.2017, 09:03

Here an example.

Text action:
text-action.png


Speak action:
speak-action.png


Action control:
speak-ctrl.png


Server trace:
Code: Select all
20170515.101116.652 r9999v tid0x509 OMVTrack 0246 average velocity on MVTrack was 226.1 KM/H
20170515.101116.653 r9999I tid0x509 OAction  1023 setting text [txtMVSpeed] to [update] lcid=[]
20170515.101116.653 r9999I tid0x509 OText    0398 text event [-][Speed is %mvspeed% km/h %hour% %sec%]
20170515.101116.653 r9999I tid0x509 OText    0537 new text [Speed is 226.1 km/h 10 16]
20170515.101116.654 r9999I tid0x509 OAction  1152 executing ["say" Speed is 226.1 km/h 10 16]
20170515.101116.654 r9999I tid0x509 OText    0555 send text [Speed is 226.1 km/h 10 16]
20170515.101116.654 r9999I tid0x509 OText    0566 broadcast text [Speed is 226.1 km/h 10 16]
You do not have the required permissions to view the files attached to this post.
Best Regards, Rob.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: Problem with dynamic text playback

Postby antarjcor » 19.05.2017, 16:27

Dear rjversluis

Thank you very much for your response.
Rectified
Now it works perfect.

Regards,
Antonio
antarjcor
 


Return to Automatic mode