Spoken ATC: Difference between revisions

Jump to navigation Jump to search
526 bytes removed ,  10 July 2017
Line 33: Line 33:
that you can expect from '''Spoken ATC'''.<br />
that you can expect from '''Spoken ATC'''.<br />
= How to install =
= How to install =
{{note |    This is the latest version, v.1.2 }}
{{note |    This is the latest version, v.1.21 (Jul 9, 2017) }}
#- Download the [https://drive.google.com/file/d/0BzzojFuPdeyMTGNDYmZDcEljQkU/view?usp=sharing spoken_atc.zip]. There you will find a "''spoken_atc''" directory with 6 files inside.  
#- Download the [https://drive.google.com/file/d/0BzzojFuPdeyMTGNDYmZDcEljQkU/view?usp=sharing spoken_atc.zip]. There you will find a "''spoken_atc.nas''" file and a "''spoken_atc''" directory with 6 files inside.  
#- Extract that directory (not only the files!)  into the ''[[$FG_HOME]]/Nasal'' directory.
#- Extract all into the ''[[$FG_HOME]]/Nasal'' directory '''(keeping the directory structure !)'''.
#- Create a new file named $FG_HOME/Nasal/spoken_atc.nas, pasting the following into it (untested for now):
#- Edit the ''[[$FG_ROOT]]/keyboard.xml'' file and include the following lines in order to bind
<syntaxhighlight lang="nasal">
var fg_home = getprop("/sim/fg-home");
var user_scripts = fg_home ~ '/Nasal/';
var spokenATC_dir = user_scripts ~= 'spoken_atc/';
 
# loading order may need to be changed, if everything is to be loaded into a certain namespace, io.include may be more appropriate, see galvedro's work
var filenames = ['init.nas', 'atc_tools.nas','voice.nas','phraseology.nas'];
foreach(var f; filenames) {
io.load_nasal( spokenATC_dir ~ f );
}
</syntaxhighlight>
 
4- Edit the ''[[$FG_ROOT]]/keyboard.xml'' file and include the following lines in order to bind
<ref>{{cite web
<ref>{{cite web
   |url    = http://wiki.flightgear.org/Howto:Reassign_keyboard_bindings
   |url    = http://wiki.flightgear.org/Howto:Reassign_keyboard_bindings
Line 62: Line 49:
         <command>nasal</command>
         <command>nasal</command>
         <script><![CDATA[
         <script><![CDATA[
        spoken_atc.speak(15);
              atc.speak(15);
        ]]>
              ]]>
         </script>
         </script>
         </binding>
         </binding>
229

edits

Navigation menu