How to Add text to speech in a C++ program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to Add text to speech in a C++ program

I wanna create virtual assistant that speaks, Is there any way to add any text to speech to my program.

29th Jan 2019, 4:38 PM
Deep Patel
Deep Patel - avatar
4 Answers
+ 2
You need a graphics library for c++ that suports audio setup, more used in games but very good for your project. You can try OpenGL with GLUT, SFML, SDL or Vulkan. There will audio functions where you'll put the file directory of your speech, and in addition you'll be able to create a graphic interface.
29th Jan 2019, 6:47 PM
Charlie S
Charlie S - avatar
0
I wouls strongly recommend SFML in particulur
30th Jan 2019, 2:11 AM
NipIsTrue
0
Привет
31st Jan 2019, 4:38 AM
Kvb 0451
0
Hello
31st Jan 2019, 4:39 AM
Kvb 0451