Solved

Text to speech in Ubuntu and C/C++ to read text strings with voice

Posted on 2012-03-10
4
1,390 Views
Last Modified: 2016-05-20
I'm developing a mobile robot application and i'd like to add a text to speech function which let the robot "talk" with the humans by reading some text strings which i'll pass to it.

For example, since my robot has a sonar network, i'd like to let it signal an obstacle presence by diretcly speacking with the human operator.

Something like:

if(sonar_front_detect == ok){

speak_to_human("I found an object in front of me);

}

Open in new window


Is there any simple open-source library which i can use to accomplish this task?
I'm looking for something which is very easy to use because i am not an expert programmer; it would be fine to use a library which has a function which takes as parameter the string which the robot has to read.

I hope to find a solution to my problem.

Thanks to all!
0
Comment
Question by:ichigokurosaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 37706328
have you checked espeak?

https://help.ubuntu.com/community/TextToSpeech ?
http://www.thegeekstuff.com/2010/03/espeak-speech-synthesizer-for-ubuntu/

I didn't use it personally, but from the look of it it serves your needs.

Besides, there is Festival (http://www.cstr.ed.ac.uk/projects/festival/)
0
 

Author Comment

by:ichigokurosaki
ID: 37706604
I tried espeak and Festival and they work very well from the terminal.

Now, i'd like to include this functionality in my C program but i'd like to avoid to use system() to call an external program; i think i can't include espeak library in my C program, so i think i have to use Festival but i found no example on how to use it in C/C++ application.

Can you help me, please?
0
 

Author Comment

by:ichigokurosaki
ID: 37706630
Ok, i was able to solve my problem: i've found the API reference for festival :)

Thanks a lot!
0
 

Author Closing Comment

by:ichigokurosaki
ID: 37706631
Thanks for the tip!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
voicemail transcription google voice or alternative 1 66
Autosar OS Multicore Share Resources confusion ? 2 110
C++ Code Issue 4 38
Need some help with design 17 23
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilationā€¦
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifiā€¦
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question