TTS Library

Hello

I have the download and add zip file of TTS.h library Text to Speech on arduino - Steps2Make from the above link and also make some arrangement shown in the link. but I have got error "Error compiling for board Arduino/Genuino Uno.
". I think it errors in the TTS library. I search for the new TTS library and also try to resolve this error. But i facing a problem.
So how can I resolve this error?

Invalid library found in C:\Program Files (x86)\Arduino\libraries\TTS: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\TTS

I suspect you created an extra folder level when you attempted to manually install the library. The folder structure must look like this:

C:\Program Files (x86)\Arduino
|_ libraries
|_ TTS
|_ TTS.h
|_ etc...

This structure won't work:

C:\Program Files (x86)\Arduino
|_ libraries
|_ TTS
|TTS
|
TTS.h
|_ etc...

It's a really bad idea to install anything to the Arduino IDE installation folder (C:\Program Files (x86)\Arduino). The reason is that every time you update to a new version of the Arduino IDE, everything will be lost. The correct place to install libraries is {Arduino sketchbook folder}/libraries, where {Arduino sketchbook folder} is the path shown by File > Preferences > Sketchbook location in the Arduino IDE.

Better yet, don't manually install libraries. If you use the Arduino IDE's Sketch > Include Library > Add .ZIP Library to install libraries, they will automatically be installed correctly to the right location, which would have saved you from this error.

Information on the correct way to install Arduino libraries here:
https://www.arduino.cc/en/guide/libraries

pert:
Better yet, don’t manually install libraries. If you use the Arduino IDE’s Sketch > Include Library > Add .ZIP Library to install libraries, they will automatically be installed correctly to the right location, which would have saved you from this error.

Sir, I follow the same processor but this time got the error <C:\Users\SImtest Dynamics\Documents\Arduino\libraries\TTS/TTS.h:28: error: ‘byte’ has not been declared>

That’s odd, I get a different error. Maybe you did something you’re not mentioning?

Anyway, I’ll tell you the steps to fix the library:

Open C:\Users\SImtest Dynamics\Documents\Arduino\libraries\TTS/TTS.h in a text editor.

Change line 16 from:

#include <WProgram.h>

to:

#include <Arduino.h>

Save the file.

Open C:\Users\SImtest Dynamics\Documents\Arduino\libraries\TTS/TTS.cpp in a text editor.

Delete line 13:

#include <WProgram.h>

Save the file.

Open C:\Users\SImtest Dynamics\Documents\Arduino\libraries\TTS/english.h in a text editor.

Change line 1027 from:

static uint8_t SoundData[] PROGMEM= {

to:

static const uint8_t SoundData[] PROGMEM= {

Save the file.

pert:
That's odd, I get a different error. Maybe you did something you're not mentioning?

Anyway, I'll tell you the steps to fix the library:

Thank You so much for your help.

Now the TTS library working. but sir I facing some other issue.

I am measuring laser sensor data on the analog pin and convert this data into char value Similarly below link

https://1sheeld.com/shields/text-to-speech-shield/?cf_chl_jschl_tk

In this link, they use 1sheeld and temperature sensor and got audio signal on mobile.

But I want laser sensor data on my Bluetooth headphone or Bluetooth speaker. For this, I have Arduino Uno, Bluetooth headphones, and one laser sensor and I purchase the Sparkfun RN-52 Bluetooth module.

So Sir, how can I get audio data on my Bluetooth headphone?

Please guide me
Thank You.