Skip to main content

Troubleshooting

Nothing Happens When I Speak

If you are testing your setup with one of the basic commands and getting no response at all, first check a few fundamentals to help focus the troubleshooting. There are a number of issues at different layers of the setup that could be causing the problem. Your first few steps should help narrow the focus.

Check Your Microphone

Your microphone is critical to your setup. If your microphone isn't working, then none of your voice commands will either. Testing this piece early may save you some time and help narrow down your troubleshooting to either hardware (microphone, audio interface, cables, etc) or software (talon, talon configuration, speech engine, etc).

Check that your computer is using the correct microphone and receiving sound input.

Mac

Open System Preferences > Sound > Input. Check that the correct input device is selected and speak into the microphone. Watch the Input level as you speak; you should see the level rising and falling.

gif of sound input window in system preferences on a Mac with input level moving
Windows

Select Start > Settings > System > Sound. In Sound settings, go to Input > Test your microphone. Verify that the correct input device is selected and speak into the microphone. Look for a blue bar that should rise and fall as you speak.

If you are not receiving any sound input, check your ancillary microphone equipment (cables, interfaces, preamps, etc.).

  • Check your cables and connections.
  • Check your adapters and/or audio interfaces if you are using them. Examples: Shure X2U XLR-to-USB signal adapter or the DPA d:vice mobile audio interface. Check that they are connected properly and check any settings on the device, e.g., volume, gain, etc.
  • Ensure your microphone is not muted.
  • Ensure that the microphone is pointed at the mouth. This points the axis of maximum sensitivity toward your mouth for best voice isolation (reducing background noise). Some microphones require more careful placement than others.
  • Place the microphone at a consistent distance away from your mouth. For headset microphones, most speech recognition documentation recommends that you place the boom of the microphone approximately one inch from your face, pointed at a side corner of your mouth. For table microphones, somewhere between six and twelve inches works best (unlike a radio moderator, you do not need to eat the mic). A proper placement eliminates wind noises from breathing and loud sounds.

Check that Talon is Running

After you have started the Talon application, look for the Talon icon in the menubar.

Mac

Talon's icon should show up in the menu bar in the upper right corner of your screen:

screenshot of the desktop on a mac showint the talon icon in the top right menubar

Check that Talon is Awake

When Talon is running, it will be in one of a few different modes. One of these modes is a sleep mode, which will put Talon in a dormant state where it is listening but not responding to commands. While asleep, Talon will only respond to a minimal set of commands, such as talon wake, which will put Talon out of sleep and enable Talon to respond to commands.

If you are trying to use Talon commands and Talon is not responding, make sure Talon is not in sleep mode. The Talon icon in the menubar provides some visual cue as to what mode Talon is in:

Mac
screenshot of the desktop on a mac showint the talon icon in the top right menubarscreenshot of the desktop on a mac showint the talon icon in the top right menubar

Note: Depending on your version of Talon, this icon may use color to indicate awake/asleep (green=awake, red=asleep) instead of the slash as pictured above. The slash is used in newer versions.

You can also check the mode by clicking the icon and looking for which mode is set under Speech Recognition.

Check that Talon is using the Correct Microphone

You can check that Talon is using the correct microphone by clicking the Talon icon in the menu bar.

Mac

Talon's icon should show up in the menu bar in the upper right corner of your screen:

screenshot of the desktop on a mac showing the talon microphone menu

You can also check which which microphone is selected by looking in the talon logs, which are located in ~/.talon/talon.log. Look for a log that looks like this:

2020-03-04 15:27:53 INFO Activating Microphone: "Yeti Nano Analogue Stereo"

If it's the wrong one, use the menu in the app tray to change it.

Talon seems to do the wrong thing

Check the Quality of the Sound Input

If your computer is receiving sound input, that doesn't necessarily mean the sound is of good quality. To confirm the sound quality, make a recording of yourself saying Talon commands and play it back. There should be no distortion of the sound and it should be at an optimum volume (not too loud, not too quiet). If you hear any distortion or the volume seems too low or high, check the microphone gain.

Check the Gain

If you are new to using microphone equipment and are not familiar with microphone gain, check out this podcasting blog What is microphone gain?. In simple terms, gain is the input volume of your audio. If the gain is too low, the audio will sound very quiet and Talon may cut you off or hear you at all. If the gain is too high, then sound may get distorted by clipping and Talon may not understand your commands.

One way to test your gain settings is to make an audio recording and listen to how it sounds. The sound should not be overly quiet nor should it sound like you are shouting. Listen for clipping distortions and reduce the gain until there are no distortions.

One tool to make a recording is Audacity, a free and open-source audio editor and recorder that supports Windows, macOS, GNU/Linux. To make a recording with Audacity:

  1. Install and start Audacity,
  2. set the correct microphone, and
  3. press Record, utter an upbeat "Hello there!", and stop the recording.
  4. Listen to the playback: Your voice should sound clear. If it's too low, increase the gain, if it's distorted, reduce it.

Some audio recording software may also provide visual feedback about whether your gain is at the right level. Look for waveforms that react to your voice. The waveforms should be as big as possible without maxing out.

Each microphone and piece of ancillary microphone equipment (audio interface, preamp, audio adapter, etc.) will have a different personality. Because of that, trust your ears more than the dB reading or the graph of Audacity.

Check that Talon is in the correct mode

Talon user file sets can be configured to have multiple modes, which will have a different set of functionality. Most commonly, like in the Talon Community user file set, there will be two modes: command mode and dictation mode. In command mode, your speech will be mapped to the commands you have configured in your user file set. In dictation mode, your speech will be typed out literally, which is useful if you want to dictate text, like in an email or document.

  • Use dictation mode for free-form speech dictation, like writing an email. (Switch by saying "dictation mode".)
  • Use command mode for everything else, including dictating individual letters using the alphabet or writing code. (Switch by saying "command mode".)

Check your Speech Engine

Check that your speech engine has been initialized by looking in the talon log file You should see a line that looks like this:

2020-03-04 15:28:05  INFO (SpeechSystem) Activating speech engine: W2lEngine(en_US)

Check your Talon user file sets

Check you have some valid commands in ~/.talon/user. If it's empty, install the Talon Community user file set and test with some basic commands. Install the entire repository, not just individual files. This user file set can be combined with other Talon user file sets, though it is common that most of the functionality will be provided by Talon Community. Additional file sets are commonly used to customize the default behavior provided by Talon Community or add additional features not already included.

Talon automatically tracks changes to files in ~/.talon/user, so that one can change scripts on the fly. This breaks if ~/.talon (or any other part of the path) is a symlink.

Check out Tips for Improving Accuracy

If commands are intermittently working, check out these tips for improving accuracy.

Check the Talon Logs

Talon emits debug information to a log file in your Talon home directory, Windows: %APPDATA%\Talon Mac: ~/.talon. Look for a file with the .log extension, probably named talon.log. The logs will contain useful debug information, like the Talon version or which microphone Talon is using. Syntax errors will also show up in these logs, which make them useful for debugging your Talon user file sets.

2021-04-10 17:56:28  INFO Activating Microphone: "d:vice MMA-A"
2021-04-10 15:19:58 DEBUG Talon Version: 0.1.5

Talon Crashes During Use

Talon should recover from most errors itself, but if it crashes please report it in the Talon Slack with the output log.