Games-Axmud
view release on metacpan or search on metacpan
share/docs/guide/ch16.html view on Meta::CPAN
<p>When using the eSpeak engine, Axmud can change the voice, speed and pitch. When using espeak-ng, everything can be changed. When using Flite, only the voice can be changed. When using Festival, the voice, word rate (not speed) and volume can be ...
<p>We mentioned already that Axmud can use different engines and voices in different situations.</p>
<p>Axmud has a number of text-to-speech configurations, one for each situation. If you modify a configuration, your changes are stored and will still apply the next time you use Axmud.</p>
<h3>16.6.1 Configuring the 'receive' configuration</h3>
<p>The text-to-speech configuration called <strong>receive</strong> is used for text received from the world.</p>
<p>The configuration stores your choice of speech engine, as well as your choice of voice, word speed (or word rate), word pitch and volume.</p>
<p>To change any of these things, we use the client command <strong>;modifyconfig</strong> (a semicolon, followed by a single word without spaces).</p>
<p>Actually, nearly all client commands have abbreviations, so this case you can type <strong>;config</strong> instead (a semicolon, followed by the word <strong>config</strong>).</p>
<p>The <strong>;config</strong> command is always followed by the name of the configuration we want to modify, and then by the modifications we want to make.</p>
<p>For example, text received from the world is read out using the eSpeak engine by default. eSpeak is rather primitive, so if Festival, Flite or Swift are installed on your system, you might prefer to use one of them instead.</p>
<p>The command to type is <strong>;config receive engine festival</strong>.</p>
<p>To use the Flite engine, the command is <strong>;config receive engine flite</strong>. To use the Swift engine, if you've purchased it, the command is <strong>;config receive engine swift</strong>.</p>
<p>You can use the same command to change the voice. The list of available voices varies from engine to engine and from system to system, so it's up to you to work out which voices are available on your system.</p>
<p>To change the voice, first switch the engine back to eSpeak by typing <strong>;config receive engine espeak</strong>.</p>
<p>Then, type <strong>;config receive voice en-scottish</strong>. The last word is the letter E and N, followed by a hyphen, followed by the word <strong>scottish</strong>, all in lower-case letters and with no spaces.</p>
<p>If you specify a voice that isn't available on your system (or if you misspell the voice), you won't hear anything. In that case, you can use the <strong>;config</strong> command to return the configuration to its default settings, by using the s...
<p>You can use the <strong>;speak</strong> command to test this configuration's new voice. The command to use is <strong>;speak receive</strong>.</p>
<h3>16.6.2 Configuring the speed, rate, pitch and volume</h3>
<p>Now we'll customise the rest of the configuration. Make sure you're using the eSpeak engine by typing the command <strong>;config receive engine espeak</strong>.</p>
<p>Axmud uses a set range of values for the word speed, word rate, pitch and volume. Regardless of the engine, the range is zero to a hundred.</p>
<p>To change the voice speed, type the command <strong>;config receive speed 50</strong>. This will slow down the voice. To speed it up, type <strong>;config receive speed 90</strong>.</p>
<p>The Festival and Swift engines use a word rate, rather than a word speed. To change the rate, type <strong>;config receive rate 50</strong> or <strong>;config receive rate 90</strong>.</p>
<p>To make the word pitch higher, type <strong>;config receive pitch 80</strong>. To make it lower, type <strong>;config receive pitch 20</strong>.</p>
<p>The eSpeak engine doesn't allow us to change the volume, but if you've modified the configuration to use the Festival or Swift engines, you can can reduce the volume by typing <strong>;config receive volume 50</strong>.</p>
<p>Again, to reset the voice, speed, rate, pitch and volume to default values for this engine, type <strong>;config receive engine espeak</strong>.</p>
<h3>16.6.3 Using different configurations</h3>
<p>The text-to-speech configuration called <strong>receive</strong> is used for text received from the world, but there are a number of other configurations ready for your use.</p>
<p>The <strong>system</strong> configuration changes the sound of the speech used to read system messages. You might change this configuration's word speed by typing <strong>;config system speed 200</strong>.</p>
<p>The <strong>error</strong> configuration is used to read system error messages. The <strong>command</strong> configuration is used to read out commands sent to the world. The <strong>dialogue</strong> configuration is used to read out text from d...
<h3>16.6.4 Updating all configurations</h3>
<p>There's an easy way to change the speech engine used by all configurations. This is really useful if, for example, you find that eSpeak is not working on your system, and you want to use espeak-ng instead.</p>
<p>Just type <strong>;config all engine esng</strong>. This will change all the configurations that you're allowed to modify. (By the way, you can only use the word <strong>all</strong> in this situation.)</p>
<h2>16.7 Configuring text-to-speech for tasks</h2>
<p>Axmud comes with a number of built-in tasks, some of which have text-to-speech capabilities. The configuration called <strong>attack</strong>, <strong>chat</strong>, <strong>divert</strong>, <strong>locator</strong>, <strong>status</strong> and <...
<p>Tasks often have their own task windows. When using optimised settings, these windows don't open (but the tasks are still running in the background).</p>
<p>We'll discuss each task in turn. This is the last part of this Section, so if you aren't interested in the tasks, you can stop reading here.</p>
<h3>16.7.1 The Locator task</h3>
<p>The Locator task captures information about the character's current room, including the room's title, description, list of exits and sometimes even its contents.</p>
<p>The Locator task doesn't magically know how to interpret all possible worlds, so it's useful only when connected to one of Axmud's pre-configured worlds, or when connected to a world you've configured yourself (or which someone has configured for ...
<p>The client command <strong>;read</strong> will instruct the Locator to read out some of the information it has gathered.</p>
<p>For example, type <strong>;read title</strong> to hear the current room's title (if known).</p>
<p>Type <strong>;read description</strong> to hear the current room's description. If it's a very long description, type <strong>;read description 100</strong> to hear the first 100 characters.</p>
<p>Type <strong>;read exit</strong> to hear the exit list, and type <strong>;read content</strong> to hear the contents list.</p>
<h3>16.7.2 Auto-reading the room title</h3>
<p>The Locator task is able to read out information about the current room automatically, every time the world sends that information.</p>
<p>This is probably not very useful, since all text received from the world is already read out by default. However, perhaps you want to limit the amount of text that gets read out, in which case you can stop Axmud reading out all received text by t...
<p>You can then use the client command <strong>;switch</strong>.</p>
<p>If you type <strong>;switch title</strong>, the Locator will start reading out the room title, every time it is received. If you type <strong>;switch title</strong> again, the Locator will stop reading out the room title.</p>
<p>To read out room descriptions automatically, type <strong>;switch description</strong>.</p>
<p>To read out exit lists automatically, type <strong>;switch exit</strong>.</p>
<p>To read out content lists automatically, type <strong>;switch content</strong>.</p>
<h3>16.7.3 Auto-read the room title permanently</h3>
<p>The command <strong>;switch title</strong> will make the Locator task automatically read out room titles for the rest of the session. However, the next time you start Axmud, a brand new Locator task will start, and it won't know that it's suppose...
<p>The client command <strong>;permswitch</strong> is the solution to this problem. (It's spelled with a semicolon, followed by perm and switch as a single word, without spaces.)</p>
<p>To read out room titles in this session, and in all future sessions, type <strong>;permswitch title</strong>.</p>
<h3>16.7.4 The Status task</h3>
<p>The Status task gathers information about your character, such as the their health points and experience points.</p>
<p>Like the Locator task, the Status task doesn't magically know how to gather this information. Both tasks work best when connected to a pre-configured world.</p>
<p>The client command <strong>;read</strong> can be used to read out some of this information, as long as the world provides the information and Axmud knows how to collect it.</p>
<p>Type <strong>;read health</strong> to read out the character's health points. You can also type <strong>;read energy</strong>, <strong>;read magic</strong>, <strong>;read guild</strong>, <strong>;read social</strong>, <strong>;read experience</st...
<p><strong>;read status</strong> will read the character's life status - alive, dead, passed out or asleep.</p>
<p><strong>;read alignment</strong> will read the character's alignment (good or evil).</p>
<p><strong>;read age</strong> will read the character's age.</p>
<p><strong>;read time</strong> will read the game time.</p>
<p><strong>;read bank</strong> and <strong>;read purse</strong> will reveal information about your character's finances. Money is tracked by the Inventory task, so you will need to start that task before you can use it.</p>
<p>The client commands <strong>;starttask</strong> and <strong>;addinitialtask</strong> are both typed as a semicolon followed by a single word with no spaces.</p>
<p>To start the Inventory task, type <strong>;starttask inventory</strong>. To make the inventory task start in every session, type <strong>;addinitialtask inventory</strong>.</p>
<h3>16.7.5 Status task alerts</h3>
<p>It would be very useful for the Status task to issue an audible warning when your character's health points fall to a certain level, and again when they recover.</p>
<p>You can do this with the client command <strong>;alert</strong>.</p>
<p>To get an audible warning when your character's health points fall to 20%, type <strong>;alert health down 20</strong>.</p>
<p>To get a warning when they recover to 90%, type <strong>;alert health up 90</strong>.</p>
<p>You can also use the <strong>;alert</strong> command to get audible warnings for your character's energy, magic, guild and social points, where available.</p>
<p>The <strong>;alert</strong> command only affects the current session. If you want these audible warnings every time you run Axmud, use the <strong>;permalert</strong> command. (It's spelled with a semicolon, followed by perm and alert as a single...
<p>For example, to warn about low health points every time you play, type <strong>;permalert health down 20</strong>.</p>
<p>By the way, you can use the <strong>;switch</strong> command to make the Status task read a notification when your character dies, falls asleep, passes out or recovers. Type <strong>;switch life</strong> to turn on these notifications, or to turn ...
<h3>16.7.6 The Attack task</h3>
<p>The Attack task keeps track of your fights.</p>
<p>You can use <strong>;switch</strong> or <strong>;permswitch</strong> to get an audible notification of fights that have just finished (and, for some worlds, when they start).</p>
<p>Type <strong>;switch fight</strong> to hear the results of fights, and the same command to stop hearing them. Type <strong>;switch interaction</strong> to hear the results of interactions. (Interactions - encounters that aren't a fight, but still ...
<h3>16.7.7 The Channels and Divert tasks</h3>
<p>The Channels and Diverts task are commonly used to divert certain lines of text from the main window into a separate task window. It's handy for making sure you don't miss an important messages in the heat of battle.</p>
<p>Visually-impaired users can use either task to make sure that important messages are read out in a different voice, but the Divert task is probably more convenient.</p>
<p>To turn on the reading of all diverted lines of text, type <strong>;switch divert</strong>. Use the same command to turn them off. Use the <strong>;permswitch</strong> command to make this change in this and all future sessions.</p>
<p>You can also turn on or off specific lines of text. The Divert task distinguishes between tells (private communications between players), social messages (public communication channels), custom messages (any other line of text that should be diver...
<p>If you're using optimised settings then there is probably no task window open. To turn on the reading out of all tells, type <strong>;switch tell</strong>. You can also type <strong>;switch social</strong>, <strong>;switch custom</strong>, <strong...
<h3>16.7.8 The Chat task</h3>
<p>The Chat task allows players to communicate with each other directly, independent of the world in which they are playing. It uses a standard protocol, so users of different MUD clients can talk to each other.</p>
<p>This form of peer-to-peer communication isn't much used any more, but it's available if you need it.</p>
<p>To read out all Chat task communications, type <strong>;switch chat</strong>. Use the same command again to turn it off.</p>
<p>You might prefer to hear only incoming communications or only outgoing communications. For that, type <strong>;switch chat in</strong> or <strong>;switch chat out</strong>. To read out group communications, type <strong>;switch chat echo</strong>....
<p>To read out Chat system messages, type <strong>;switch chat system</strong> or <strong>;switch chat remote</strong>.</p>
<p>So-called 'snooping' - the ability for your chat partner to see what's happening in your session - is turned off by default. If you've turned it on, you can make Axmud read out so-called <em>snooping</em> text by typing <strong>;switch chat snoop<...
<h3>16.7.9 The Compass task</h3>
<p>The Compass task converts your keyboard's keypad - the collection of number keys usually found on the right-hand-side of the keyboard - into a device that can execute a whole command with a single key-press.</p>
<p>Optimised settings start this task automatically, so if you press the keypad's 8 key, Axmud will send a <strong>north</strong> command to the world. The 2 key sends <strong>south</strong>, the 4 key sends <strong>west</strong> and the 6 key sends ...
<p>Don't forget that they keypad's keys can be turned on and off with the <strong>Num lock</strong> button found on most keyboards.</p>
<p>The remaining keypad keys can be customised. Each key can either send a world command or execute a client command. For example, the 5 key sends the world command <strong>look</strong>. The 0 key executes the client command <strong>;kill</strong>, ...
<p>If you want to customise the 0 key, you can use the <strong>;compass</strong> command.</p>
<p>To make the 0 key do something nicer, type <strong>;compass 0 say hello</strong>.</p>
<p>To make the keypad ENTER key save Axmud's files, type <strong>;compass enter ;save</strong>. In this command, both the words <strong>compass</strong> and <strong>save</strong> are preceded by a semicolon, with no space between a word and the semi...
<p>The keys that can be customised are the keypad 0, 5, multiply, divide, full stop or period and ENTER keys. The remaining keypad keys are used for standard movement commands and can't be customised directly.</p>
<p>To disable the keypad, so that its keys behave normally, type <strong>;compass off</strong>. To reenable it, typing <strong>;compass on</strong>.</p>
<p>Of course, the <strong>;compass</strong> command will only make changes for this session. If you want a Compass task to start every session, you have two choices.</p>
<p>Firstly, you can create a task that starts in every session by typing the command <strong>;addinitialtask compass</strong>. Then you can customise the keypad for this and all future sessions using the <strong>;permcompass</strong> command.</p>
<p>Secondly, you can create a task that starts whenever you connect to a particular world. For example, to create a task that starts every time you connect to <em>Discworld MUD</em>, type the command <strong>;addinitialtask compass discworld</strong>...
<p>The commands - <strong>;worldcompass</strong> and <strong>;permcompass</strong> behave in the same way as <strong>;compass</strong> does, so you use all three of them to disable or reenable they keypad and to set the commands for each key.</p>
<p>That's the end of this Section for visually-impaired users.</p>
<hr>
<p><a href="ch15.html">Previous</a> <a href="index.html">Index</a> <a href="ch17.html">Next</a></p>
</body>
</html>
( run in 1.223 second using v1.01-cache-2.11-cpan-39bf76dae61 )