Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15265

A project for learning braille using FSR pt.3

$
0
0

Im learning more and more from this community, thank you so much. Im on the TTS part im currently being assisted by my friend in fixing the prior code. I want to use talkie in translating the letters into speech (Is this the correct way of using talkie?) I've also asked chatgpt in creating a template code for making talkie speak out of the speaker and this is what they've given to me:

#include <Talkie.h>

Talkie voice;

void setup() {
  // Initialize Talkie
  voice.say(" ");

  // Say a greeting
  speak("Hello, I am Arduino!");
}

void loop() {
  // Nothing here for this simple example
}

void speak(const char* sentence) {
  // Say the sentence
  voice.say(sentence);
  // Delay for a fixed time to ensure speech completes
  delay(2000); // Adjust as needed based on the length of the spoken sentence
}

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 15265

Trending Articles