text-to-speech through DAC to audio amp/speaker

Dependencies:   mbed

text-to-speech TTS

main.cpp

Committer:
manitou
Date:
2017-06-24
Revision:
3:d12c34704b6d
Parent:
0:bcd16e4a0207

File content as of revision 3:d12c34704b6d:

// TTS text to speech from AVR
// https://github.com/manitou48/TTS
//  connect DAC pin to audio amp/speaker
#include "mbed.h"
#include "TTS.h"

TTS text2speech;


int main()
{
    printf("hello\n");
    wait(2);

    while (true) {
        text2speech.setPitch(6);
        text2speech.sayText("Hello  master! How are you doin?");
        wait(.5);
        text2speech.setPitch(1);
        text2speech.sayText("I am fine, thankyou.");
        wait(.5);
        text2speech.sayText("a a  a");;

        wait(5);
    }
}