Quelltext /~heha/basteln/Haus/Telefon/Sprachausgabe.zip/VS2008/Speak.cpp

#include "ESP8266SAM.h"
#include "AudioOutputPWM.h"
#include <shlwapi.h>

int main() {
 ESP8266SAM sam;
 const char*onepiece=PathGetArgs(GetCommandLine());
 if (onepiece && *onepiece) {
  AudioOutputPWM out(22050);
  sam.Say(onepiece);
 }else{
  {
   AudioOutputPWM out(22050);
   sam.Say("Can you hear me now?");	// "KAEN YUW /HIY5R MIY NAW4?›"
  }	// Destruktor wird hier gerufen: Macht Soundausgabe!
  {
   AudioOutputPWM out(22050);
//  sam.Say(out,"I cannot hear you!");
   sam.SetPhonetic();
   sam.Say("AYNS TSWAY DRAY›");
  }	// Destruktor wird hier gerufen: Macht Soundausgabe!
 }
}
Vorgefundene Kodierung: UTF-80