errors with talkie make me go crazy

hi ive almost pulled all of my remaining hair out.
I cannot get the examples for talkie to compile.
I have tried searching for answers before posting her.

I went thru the cpp file and h file and thought I made the correct changes adding const where I thought it should go.

I am left with this error msg

talkie.cpp:147:233: warning: narrowing conversion of '250' from 'int' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]

what does it mean and how do I fix.
or
does someone have a straight forward walkthrough to get the talkie library to run successfully.
I appreciate some insight.

Post your code.
Use code tags.

The fix is not to try to squeeze a quart into a pint pot.

jmaderer:
I am left with this error msg

Doing a short googling about what "talkie" is, I find:
talkie.cpp ==> last updated 2 years ago

Most likely the easiest solution would be: Do NOT use the latest Arduino-IDE, but use an Arduino-IDE that has a release date which is older than 2 years!

To me it looks as if your 'talkie' library was written for an older version of the Arduino-IDE.

thanks for the response.
im gonna try that now
ill let u know how it goes

This fork of the Talkie library has the compile errors in the current version of the Arduino IDE fixed: https://github.com/bertrik/Talkie/archive/master.zip The compiler warnings are still there but you can probably ignore them, I haven't used it.

It wont just go away by changing the IDE.

It's just a warning, the best thing to do with C/C++ is just turn off the warnings!

Mark

holmes4:
It wont just go away by changing the IDE.

Actually the compile error with the original version of the Talkie library will go away by using an older version of the IDE. It's the PROMEM const issue that changed in 1.5. It's just buried in a ton of other warnings so that's why OP didn't see the actual cause of the error.

holmes4:
the best thing to do with C/C++ is just turn off the warnings!

I really hope you're joking because that's some terrible advice. The best thing to do is turn on warnings and pay attention to them and try to fix them in your code whenever possible. Unfortunately some library authors including the Arduino developers don't take this approach so sometimes you do have to ignore some warnings.

First - the op's error is not an error it is a warning, if that's all he had he has runable code

I really hope you're joking because that's some terrible advice.

C/C++ can overload you with warnings - the vast majority of which are just dross. The early IDE defaults to having warnings turned off for just this reason!

When I say ignore warnings I do mean just that, ignore them. It's far from bad advice!

Mark

ok sooooo.

Whats the plan guys lol.

Should I use newest version of arduino then?

jmaderer:
Should I use newest version of arduino then?

I'd use a recent version of the Arduino IDE(I am using 1.6.6 with no problem but 1.6.5r5 is good too) with the link I shared. If that doesn't work for you then try the original library https://github.com/going-digital/Talkie/archive/master.zip with Arduino IDE 1.0.6.

ok so here we go.
I installed new arduino 1.6.6
installed the mastertalkie zip.

installed in libaries now when i click sketch include library
talkie can be seen. thats a improvement.

then i open the getting started sketch.

i get error
variable spdanger must be const in order to be put into read only section by means of attribute progmem.

so am i right to assume i need to add const in front of the spdanger and the rest.

so am i right to assume i need to add const in front of the spdanger and the rest.

Yes, if they go into PROGMEM. I believe that was changed a while ago; the Release Notes on the download page may show when that was changed.

ok so added const
new error
invalid conversion from const uint8_t (aka const unsigned char) to uint8_t*(aka unsigned char*( - perrmissive

now what lol. thanks again for taking time to help I realize it may be an inconvience I just really want to get it running

hey guys just wanted to say thanks. problem seemed to be new arduino. i switched back to version 1.05 and didnt even have to adjist anything.
next on the list is i would like to attach a distance sensor.

any idea on how to write this?

like when distance is less then 30cm then say 'stop'?

if (distance < 30)
{
  say ("stop");
}

jmaderer:
ok so here we go.
I installed new arduino 1.6.6
installed the mastertalkie zip.

i get error
variable spdanger must be const in order to be put into read only section by means of attribute progmem.

Obviously you didn't install the version of the Talkie library I posted that was fixed to work with Arduino IDE 1.5+: https://github.com/bertrik/Talkie/archive/master.zip because it already has all that stuff changed to const. But if you're happy using the old IDE version then whatever.

i did and it didnt work

jmaderer:
i did and it didnt work

Then you didn't correctly install it or something because if you look at both the examples that have spDANGER: Talkie/Talkie/examples/_1_Getting_Started/_1_Getting_Started.ino at master · bertrik/Talkie · GitHub and Talkie/Talkie/examples/Vocab_US_Male/Vocab_US_Male.ino at master · bertrik/Talkie · GitHub you'll see that spDANGER is indeed const. Both of these examples compile fine for me(except for all the warnings) using Arduino IDE 1.6.6.

i dont disagree with u sayingni muat have not installed it right. maybe i just got confused. I will retry it again. Anyways what are the advanrages of the updated aruino

jmaderer:
Anyways what are the advanrages of the updated aruino

Just off the top of my head: Boards Manager, Library Manager, Serial Plotter, support for other architectures than AVR, custom Board menus, many bugs fixed, many other bugs introduced. For a more comprehensive list see https://www.arduino.cc/en/Main/ReleaseNotes. Some of the experienced users here on the forum refuse to use the new versions and are still on 1.0.5, it works pretty well but there are some serious issues with 1.0.x that make me much prefer to use the latest version. There were some big changes made in 1.6.6 that cause some compatibility issues so 1.6.5r5 may be the most stable recent version right now but the latest versions of the
Arduino AVR and SAM boards packages are not compatible with 1.6.5r5. The community development of libraries and hardware cores has become predominantly focused on Arduino IDE 1.6.x support so you will probably find that you will need to have a recent version installed to do certain things even if you chose to also use an older version to support old code like the original Talkie library version.