* Jon S. Berndt -- Saturday 28 July 2007:
> [...] or to output to socket

To be fair: this is also something that the one from the German forum
asked for, and what the Nasal version doesn't do. Well, except if
don't mind abusing the system:

  $ fgfs \
      --prop:sim/sound/voices/enabled=1 \
      --prop:sim/sound/voices/voice/festival=0 \
      --prop:sim/screen/nomap=1

That is: enable the voice subsystem, set the first channel's mode to
plain (non-festival) mode, and make sure the voice channels aren't
used by the system. You can set host/port in $FG_ROOT/preferences.xml
under /sim/sound/voices/{host,port}, where this is by default set to
localhost:1314 and write protected (to make it harder for evil aircraft
to hijack the system and to send local data to remote machines, though
this can at the moment be circumvented via Nasal's setAttribute() function).

You can then write log data to the voice channel's input property,
and have it sent to the configured host/port:

  setprop("/sim/sound/voices/voice/text", "hello computer!");

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to