ArduinoGeneral

TEL0089 GPRS Shield TTS Functionality

userHead Account cancelled 2016-02-02 20:44:53 2148 Views1 Replies
I am in the beginning stages of working on a project that will speak a voice synthesis of SMS.

Currently I am having issues with the TTS functionality of the TEL0089 GPRS shield. I ran the demo and heard the TTS of the included UCS2 text but when I supplanted my own it simply read out the individual characters. Hi being spelled out h, i. After going through all of the AT commands it doesn't look like there is an option to choose language or other synthesis options. Is the module limited to speaking characters or is there a true voice synthesis that I need to initialize? Would I be better served with a dedicated TTS shield?

I'm getting this error:
Code: Select all
/Users/Parker/Documents/Arduino/Test Programs/SIM800/MakeTTSSpeak/MakeTTSSpeak.ino:36:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
sim800demo.sendTTSUCS2Speak("00680069",UCS2);


from this sketch:
Code: Select all
// libraries
#include <sim800cmd.h>

//initialize the library instance
//fundebug is an application callback function,when someon is calling.
Sim800Cmd sim800demo;

//the setup routine runs once when you press reset:
void setup()
{
//initialize the digital pin as an output.
pinMode(13,OUTPUT);
//initialize SIM800H,return 1 when initialize success.
while((sim800demo.sim800init()) == 0);
delay(1000);
}

void loop()
{
//set TTS parameters
sim800demo.setTTSParameter(50,0,50,50,0);
digitalWrite(13,HIGH);//turn the LED on by making the voltage HIGH
//send data to speaker buffer use UCS2 and default speaker channel
sim800demo.sendTTSUCS2Speak("00680069",UCS2);
digitalWrite(13,LOW);//turn the LED off by making the voltage LOW
delay(3000);

digitalWrite(13,HIGH);//turn the LED on by making the voltage HIGH
//send data to speaker buffer use UCS2 and speaker channel 1
sim800demo.sendTTSUCS2Compulsory("00680069",UCS2,1);
digitalWrite(13,LOW);//turn the LED off by making the voltage LOW
delay(3000);
}


Also, and correct me if I am wrong, a few libraries had inttypes spelled inttypeds. It threw an error that went away after I edited.
Code: Select all
/*
www.dfrobot.com
sim800cmd

created Dec 2014
by zcl
*/

#ifndef atparameter_h
#define atparameter_h

#include <stdio.h>
#include "Arduino.h"
#include <inttypeds.h>


Thank you for any help!
2016-02-03 23:09:03 Thanks for the post!
This sounds like an interesting project! I've passed it on to tech support and will post answers in this thread
userHeadPic Maht