how to make c++ talk

Its hard to explain but for example i input "hello" and it actually says that aloud. similar to the say command in osx terminal.
I dont think thats possible. I only know about the tune making codes like the piano which uses beeps to generate tunes.
Yes, there is possible. I only know how to do it for windows platform using Microsoft Speech API. Not sure if there is a library for *nix platforms.
Last edited on
Thanks i will look into it. I hate the Microsofts website to many adjoining links. grr. Also i am on windows i just thought that the osx thing was a good example. :)
There are also open source alternatives (see below)

A problem I encountered with the Microsoft speech engine were the limited voices, inc. (spoken) languages, available for free. For example, I could not find a (free) French voice for my prototyping. So I defected (to Festival.)

(code in C, "cross-platform")

eSpeak text to speech
(coded in C, for Linux, Windows, Mac OS X, ...)

Because of its small size and many languages, it is included as the default speech synthesizer in the NVDA open source screen reader for Windows, and on the Ubuntu and other Linux installation discs.

The Festival Speech Synthesis System
(code in C++, "cross-platform")

Festival Text-to-Speech Online Demo

(coded in Java)


PS As OS X is your target:

From Speech Synthesis in OS X

OS X includes an advanced speech synthesizer that provides high-quality synthesized speech and comprehensive speech synthesis APIs that allow developers to create and customize spoken output.

Check out:

Carbon Speech Synthesis API
Cocoa Speech Synthesis API
Last edited on
Topic archived. No new replies allowed.