Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » TTS text2Speech in U++
TTS text2Speech in U++ [message #37359] Thu, 27 September 2012 14:14 Go to next message
malinowskia is currently offline  malinowskia
Messages: 2
Registered: September 2012
Junior Member
I'm new to C & U++. I can use GUI and DB and need speech functionality in my program now.

I serached the forum without success.
Could you advice how to add it ?

I found Win SDK
http://msdn.microsoft.com/en-us/library/ms720163%28v=vs.85%2 9.aspx
or if you are familiar with any other based on BSD license please let me know.

Thanks in advance,
Arek




Re: TTS text2Speech in U++ [message #37362 is a reply to message #37359] Thu, 27 September 2012 15:42 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello Arek

Wellcome to U++.

I do not know BSD text to speech libraries. However the one that you link seems very easy to use:
#include <stdafx.h>
#include <sapi.h>

int main(int argc, char* argv[])
{
    ISpVoice * pVoice = NULL;

    if (FAILED(::CoInitialize(NULL)))
        return FALSE;

    HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice;);
    if( SUCCEEDED( hr ) )
    {
        hr = pVoice->Speak(L"Hello world", 0, NULL);
        pVoice->Release();
        pVoice = NULL;
    }

    ::CoUninitialize();
    return TRUE;
}

I recommend you to run the U++ examples, play with them, look for features you like and begin a very small project with the basic features like this text to speech sample.


Best regards
IƱaki
Re: TTS text2Speech in U++ [message #37397 is a reply to message #37362] Sat, 29 September 2012 20:36 Go to previous message
jheblack is currently offline  jheblack
Messages: 12
Registered: September 2012
Promising Member
@malinowskia
Quote:

or if you are familiar with any other based on BSD license please let me know.


http://www.speech.cs.cmu.edu/flite/download.html

It is a form of BSD style licensing. I tested it to implement 'audio' tool tips in a FOXToolkit/C++ binary that was with TBB: Threading Building Blocks by Intel*.

Big deal

Flite (festival-lite) is a small, fast run-time synthesis engine developed at CMU and primarily designed for small embedded machines and/or large servers. Flite is designed as an alternative synthesis engine to Festival for voices built using the FestVox suite of voice building tools.

<a href="http://www.speech.cs.cmu.edu/flite/index.html" target="_blank"></a>

It worked, but the FOXToolkit license (?) was not BSD style, so I stopped development of FOXToolkit.

[Updated on: Sat, 29 September 2012 20:39]

Report message to a moderator

Previous Topic: Static Binary
Next Topic: HOW TO DETECT TROJANS IN U++ [FEATURE REQUEST]
Goto Forum:
  


Current Time: Sat May 04 14:20:42 CEST 2024

Total time taken to generate the page: 0.02979 seconds