Upgrade to Version 2

If you are using Version 1.x of the TKTalkie software, upgrading to Version 2 is simple!


STEP 1: BACKUP your current Version 1 software sketch!


STEP 2: Download the new sketch and config file.


STEP 3: Copy the settings from your Version 1 sketch. We'll mark the settings to transfer in YELLOW.

const int MIN_SILENCE_TIME        = 350;    // The minimum time to wait before playing a sound effect after talking
const float VOL_THRESHOLD_TRIGGER = 0.07;   // The amplitude needed to trigger the sound effects process
const float VOL_THRESHOLD_MIN     = 0.02;   // The minimum amplitude to use when determining if you've stopped talking.
const int BUTTON_PIN = 2;                   // The pin to which a PTT button is connected (not required.)
    

Also take the values in the setup function:

// tell the audio shield to use the MIC pins
audioShield.inputSelect(AUDIO_INPUT_MIC);

// Turn on the 5-band graphic equalizer (there is also a 7-band parametric...see the Teensy docs)
audioShield.eqSelect(3);

audioShield.eqBands(-1.0, 0, 1, 0, -1.0);

audioShield.micGain(15);

bitcrusher1.bits(12);
bitcrusher1.sampleRate(16384);

bitcrusher2.bits(10);
bitcrusher2.sampleRate(10240);

// Bitcrusher 1 input (fed by mic/line-in)
mixer1.gain(0, 0.2);
// Bitcrusher 2 input (fed by mic/line-in)
mixer1.gain(1, 0.2);
// White noise generator (used while talking)
mixer1.gain(2, 0.1);
// Feed from mixer 2
mixer1.gain(3, 0.2);

// stereo channels for SD card...adjust gain as
// necessary to match voice level
mixer2.gain(0, 5);
mixer2.gain(1, 5);
// Beep channel
mixer2.gain(2, 0.9);
    

STEP 4: Open the TKCONFIG.TXT file and transfer settings.

# TKTALKIE v2.0
# These are the default settings!  Please visit TkTalkie.com
# to see how to modify for your setup.

# sound to play when TKTalkie is started
[startup=STARTUP.WAV]

# chatter loop settings
[loop=CHATTER.WAV]     <-- NEW SETTING!
# 0 to 32767, 1 is pass-thru, below 1 attenuates signal
[loop_gain=7]          <-- NEW SETTING!

# VOICE ACTIVATION SETTINGS
[silence_time=350]     <-- Enter "MIN_SILENCE_TIME" value here
[voice_start=0.35]     <-- Enter "VOL_THRESHOLD_TRIGGER" value here
[voice_stop=0.02]      <-- Enter "VOL_THRESHOLD_MIN" value here

# PTT (Push-To-Talk) SETTINGS
[button_pin=2]
[button_click=BUTTON.WAV]
# 0 to 32767, 1 is pass-thru, below 1 attenuates signal
[button_gain=1]

# MICROPHONE/LINE-IN SETTINGS
# input settings (0 = microphone, 1 = line-in)
[input=0]              <-- 0 = AUDIO_INPUT_MIC, 1 = AUDIO_INPUT_LINEIN
# 0 to 63
[mic_gain=15]          <-- Enter "audioShield.micGain(??)" value here

# SOUND EFFECTS (STATIC BURSTS, ETC.)
# 0 to 32767, 1 is pass-thru, below 1 attenuates signal
[effects_gain=5]       <-- Enter "mixer2.gain(0, ??)" value here

# EQUALIZER SETTINGS
# 0 = flat (none, 1 = parametric, 2 = bass/treble, 3 = graphic
[eq=3]                 <-- Enter "audioShield.eqSelect(??)" value here

# for parametric/graphic = 5 bands, for bass/treble = 3 bands
# bands are low to high: -1 (-11.75dB to 1 +12dB)
[eq_bands=-1,0,1,0,-1] <-- Enter "audioShield.eqBands" values here

# VOICE SETTINGS
# 0 to 32767, 1 is pass-thru, below 1 attenuates signal
[voice_gain=1]         <-- Enter "mixer1.gain(0, ??)" value here

# BITCRUSHER SETTINGS - VOCAL EFFECTS
# Format = bits1,rate1,bits2,rate2
# Set to 16,41000,16,41000 to just pass-thru (disable)
[bitcrushers=12,16384,10,10240]  <-- Enter bitcrusher values here

# PINK NOISE GENERATOR
# 0 to 32767, 1 is pass-thru, below 1 attenuates signal
[noise_gain=1]          <-- Enter "mixer1.gain(2, ??)" value here

# Turn debug messages on/off (1/0)
[debug=0]               <-- NEW SETTING!
    

STEP 5: Copy TKCONFIG.TXT to your SD Card and insert into Teensy.


STEP 6: Copy new version 2 sketch to Teensy. (View the tutorial to see how to load the software sketch to your Teensy board.)


Once you have copied your settings and updated your Teensy board, you can follow the README for Version 2 to learn how to easily tweak settings on-the-fly via serial interface!.