Skip to content

Add Text-to-Speech to your program with a single line of code.

Notifications You must be signed in to change notification settings

adishavit/SpeakStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeakStream

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

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).

About

Add Text-to-Speech to your program with a single line of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages