Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Text to Speech in Processing

$
0
0

Hello guys,

We are developing a virtual keyboard, we have combined all the features of these two models, and put the "Click" Automatic as moving the cursor on the button ...

Links: www.openprocessing.org/sketch/9701 www.openprocessing.org/sketch/111851

Now we intend to use a voice library to use the sound ...

I tried with this model found at this link:

http://www.local-guru.net/blog/pages/ttslib

import guru.ttslib.*;

TTS tts;

void setup() {
  size(100,100);
  smooth();
  tts = new TTS();
}

void draw() {
  background(255);
  fill(255);
  ellipse( 35, 30, 25, 35 );
  ellipse( 65, 30, 25, 35 );
  fill(0);
  ellipse( 40, 35, 10, 10 );
  ellipse( 60, 35, 10, 10 );
  noFill();
  arc(50,50,50,50,0,PI);

}

void mousePressed() {
  tts.speak("Hi! I am a speaking Processing sketch");
  //tts.speak("Oi! Eu sou um esboço Processing falando");
}

Worked normal, the next step now is to change the language, it would be possible with this library to change the language to Portuguese, for example?

Someone could indicate some tutorial work as multiple languages?

Thank you

Style keyboard that we are adapting ... Teclado


Viewing all articles
Browse latest Browse all 2896

Trending Articles