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.
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.
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.
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.).
After you have started the Talon application, look for the Talon icon in the menubar.
Talon's icon should show up in the menu bar in the upper right corner of your screen:
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:
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
.
You can check that Talon is using the correct microphone by clicking the Talon icon in the menu bar.
Talon's icon should show up in the menu bar in the upper right corner of your screen:
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.
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.
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:
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.
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.
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 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.
If commands are intermittently working, check out these tips for improving accuracy.
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 should recover from most errors itself, but if it crashes please report it in the Talon Slack with the output log.