Quantcast
Channel: Learn with BlocklyProp — Parallax Forums
Viewing all articles
Browse latest Browse all 293

Text to Speech Block on Activity WX board

$
0
0
Should the Text to Speech block work with the Activity WX Board? The block shows up and appears to set code up properly. The docs say it will not work with it.
Here is the C code generated.
// ------ Libraries and Definitions ------
#include "simpletools.h"
#include "text2speech.h"

// ------ Global Variables and Objects ------
talk * tts_talk;



// ------ Main Program ------
int main() {
  tts_talk = talk_run(26, 27);
  talk_set_speaker(tts_talk, 1, 100);
  while (1) {
    talk_say(tts_talk, "heloa");
  }

}

It looks like it should work, it sets the audio output pins to 26 and 27 which go to the audio jack on the activity wx board.
When I run the program the led's for pin 26 and 27 glow slightly.

Viewing all articles
Browse latest Browse all 293

Trending Articles