arduinoMEGA and Speakjet Library

hello, trying to interface with the speakjet throug the speakjet library,
Works goo.
but the values of the analog inputs are implemented
after one round, so is there some kind of buffering in this speakjet lib,
Thanks in advance, Dian from the Netherlands,
Here is the used code,
And include softwareSerial after the first include and copy and past in arduino IDE and
rearenge in de editor
Compiles in arduino 21
Sorry for the inconvinience

#include #include SpeakJet speakjet; // Defaults to txPin = 2, resetPin = 3, readyPin = 4, inverseLogic=false void setup() { speakjet.init(); } void loop() { if (speakjet.isReady()) sJet(); } void sJet() { int sensorValue = analogRead(A0); int sensorValue1 = analogRead(A1); int range = map(sensorValue, 0, 1024, 127, 0); int range1 = map(sensorValue1, 0, 1024, 15, 0); speakjet.speakCode(21); speakjet.speakCode(range); speakjet.speakCode(23); speakjet.speakCode(range1); speakjet.speakWord(“afternoon”); }

Hello again, here is a good example of the CODE,

#include <SpeakJet.h>
#include <SoftwareSerial.h>
SpeakJet speakjet; // Defaults to txPin = 2, resetPin = 3, readyPin = 4, inverseLogic=false

void setup()
{
   speakjet.init();
   }

void loop()
{
 if (speakjet.isReady())
  sJet();
   }

void sJet()   {
  int sensorValue = analogRead(A0);
  int sensorValue1 = analogRead(A1);
          int range = map(sensorValue, 0, 1024, 127, 0);
   int range1 = map(sensorValue1, 0, 1024, 15, 0);
    speakjet.speakCode(21); 
  speakjet.speakCode(range);
  speakjet.speakCode(23); 
   speakjet.speakCode(range1);
 speakjet.speakWord("afternoon"); 
}