Home > How-To, Software > How to easily switch audio languages in XBMC

How to easily switch audio languages in XBMC

Japanese anime with English subtitleIf you use XBMC for watching media content from your PC on your TV, you may have noticed that there is no hotkey for switching audio languages. This is particularly annoying if you’re trying to watch anime, as it will typically default to the English audio track instead of the Japanese (which usually has better voice acting.) It’s also a problem if your native language isn’t English.

Here’s how to fix it. Create a new Keyboard.xml file. It should be located at C:\Users\[yourusername]\AppData\Roaming\XBMC\userdata\keymaps\Keyboard.xml (on Windows) or at /Users/[yourusername]/Library/Application Support/XBMC/userdata/keymaps/Keyboard.xml (on MacOSX).

Add the following lines:

<keymap>
  <global>
    <keyboard>
      <k>audionextlanguage</k>
    </keyboard>
  </global>
</keymap>

(If you already have a Keyboard.xml file, you’ll probably just need to add the <k>audionextlanguage</k> line to the <keyboard> section.)

This will map the ‘K’ key (not used for anything by default) to ‘Switch audio languages.’ I picked ‘K’ since it’s next to ‘L’, which is the default hotkey to enable subtitles. (No, I don’t speak Japanese.)

Additional information about XBMC keymaps is available here: http://wiki.xbmc.org/index.php?title=Keymap.xml

 
Categories: How-To, Software Tags: , , , ,
  • Edgar

    you forgot   opening brace! :)

    • http://www.maiman.net/ Andrew Maiman

      Oops, you’re right.  Fixed.

  • Wumpus_Hunter

    FYI… I am guessing that since the introduction of version 12 “FRODO” the XBMC developers have added PVR functions into XBMC. They have assigned the “K” key to a function for the PVR, which I have no need for. I guess you can delete the PVR lines in the .xml file if you wish. But for those who want this feature preserved you can assign another key like I did. I chose the “N” key arbitrarily because all it does is open the music playlist when you are inside the music menu and has no effect on the global settings. With the remote I use, this works out perfectly for me. Hope this tidbit helps others and thanks to the original poster for helping me get pointed in the right direction.