earlephilhower / ESP8266SAM

Speech synthesis for ESP8266 using S.A.M. port
315 stars 41 forks source link

Can it produce on a per-sample basis? #29

Open copych opened 2 months ago

copych commented 2 months ago

Thank you for making a library of SAM and for sharing your code! Can you advise, please, if the code (with slight modifications) could produce sound in real-time sample by sample on request, say calling

sam.setText("hello");
// then
while(!sam.finished()){
  if (Audio.waiting())
    Audio.feedSample(sam.getSample());
}

?