This is a mirror of the code accompanying my 2007 CodeProject Article - "audio_ostream
- A Text-to-Speech ostream".
In the article, I show you how to add Text-to-Speech (TTS) to your program with a single line of code using the familiar standard std::ostream
syntax.
The header-only code depends on 3 libraries:
However, the general concepts presented should be easily ported to using other TTS SDKs.
Using the code cannot be easier:
#include "audiostream.hpp"
using namespace std;
using namespace audiostream;
int main()
{
audio_ostream aout;
aout << "Hello World!" << endl;
// some more code...
return 0;
}
This little program will, obviously, say "Hello World!".
The original CodeProject article can be read here.
The license is The Code Project Open License (CPOL).