Chapter 2. Configuring Mr. Voice

This section will take you through configuring the Mr. Voice software. Mr. Voice is configured via an external configuration file - this provides the most flexibility in keeping your configuration sane from one version to the next. On Unix, the default config file is named .mrvoicerc, and lives in your home directory. On Windows, the default filename is C:\mrvoice.cfg.

To provide an alternate configuration file (for example, if you would like to run two separate databases off of the same computer), you can pass the Mr. Voice program the "--config" flag. So on Windows, if you wanted to use an alternate config file, you would run "MRVOICE.EXE --config C:\MRVOICE-ALTERNATE.CFG", or on Unix "./mrvoice.pl --config /path/to/new/configfile".

If you start Mr. Voice without a configuration file, or if there is an error in your configuration, Mr. Voice will pop up a window asking if you want to create a default or manual configuration. If you choose default, it will set up a fairly standard installation for you. If you choose manual, you will be taken to the preferences window, allowing you to enter and edit the configuration information. Changes are then written out to the appropriate configuration file. The configuration options are detailed below.

Figure 2-1. The Preferences window

2.1. Configuration Options and Variables

The options that you can set in the File->Preferences menu are listed below. After the name of each option, the actual variable name is given in parenthesis, in case you need to edit the configuration files manually (Manual configuration is detailed in section 2.1.1).

2.1.1. Database Options

  • Database Filename (db_file) - The file on your hard drive that contains the Mr. Voice SQLite database (C:\mrvoice.db by default on Windows, ~/mrvoice.db by default on Unix)

2.1.2. File Paths

  • MP3 Directory (filepath) - The path information that will be prepended to the filename retrieved from the database or, in other words, the directory where you store your MP3 files. Used to find the actual MP3 files on the local system. The user who is running Mr. Voice must have read/write permission into this directory.

  • Hotkey Directory (savepath) - This will be the default directory that hotkey save files will go into. The user running the program as must have read/write permission into that directory. Recommended to be different than the Mr. Voice install directory.

2.1.3. Search Options

  • Search ASCAP songs (search_ascap) - Enables searches of songs that have ASCAP set as the publisher field. Only needed if you are using song publishers in your database.

  • Search BMI songs (search_bmi) - Enables searches of songs that have BMI set as the publisher field. Only needed if you are using song publishers in your database.

  • Show Song Publisher (show_publisher) - Enables the display of the song publisher in the search results. Only needed if you are using song publishers in your database.

  • Search Other songs (search_other) - Enables searches of songs that have "Other" set as the publisher field. Only needed if you are using song publishers in your database.

2.1.4. Online Options

  • Enable Online Functionality (enable_online) - Enable this option if you want to use any of the online functionality (such as version checks or Mr. Voice Online). If this is not enabled, you will not get the menu items that offer online functionality. Obviously, enabling this without an internet connection on your Mr. Voice computer is a bit silly.

  • Check For New Versions (check_version) - If enabled, will check the Mr. Voice website once a week and alert you if a new version of Mr. Voice is available.

  • Mr. Voice Online key (online_key) - When you register for Mr. Voice online, you will be given a key password. Enter that here, or your Mr. Voice online functionality will fail. For information on how to get a key, see the Mr. Voice Online section in this manual.

2.1.5. Other

  • MP3 Player (mp3player) - The path to your MP3 player. Likely options are /usr/bin/xmms for Unix systems, and C:\Program Files\WinAmp\WinAmp.exe for Windows systems. This option is not used on Mac OS X, as it uses AppleScript to launch the Audion MP3 player.

  • Number of Dynamic Documents To Show (savefile_max) - The number of "most recently accessed hotkey files" to keep available under the File menu. Defaults to 4.

  • httpQ Password (httpq_pw) - The password used to connect to the httpQ plugin for WinAmp. Only useful under Windows if you're using the httpQ plugin. Otherwise it's ignored.

  • Write Access Password (write_password) - If this option is set, any attempt to perform an action that will modify the Mr. Voice system (adding a song, deleting a song, renaming a category, etc) will prompt for the password (once per session).

    No password, no changes. Useful if you have people running Mr. Voice that you don't trust not to break things.

2.1.6. Manual Configuration

To troubleshoot, fine-tune changes, or skip the GUI alltogether, you can manually set up the configuration file. The configuration file consists of lines in the following format:

variable_name::value

Where variable_name is the name in parenthesis in the configuration listing above, followed by two colons, followed by the value you want to set the variable to. A sample file on Unix would look like this:

db_file::/home/mrvoice/mrvoice.db
filepath::/mp3/
savedir::/tmp/
mp3player::/usr/bin/xmms
savefile_max::4
httpq_pw::mypass
search_ascap::1
search_bmi::1
search_other::1
show_publisher::0
        

The Windows C:\MRVOICE.CFG file will look similar, but with Windows pathnames instead of Unix ones. The Mac config file (named mrvoice.cfg in your home folder) will look similar to the Unix one.