Pelles C forum

C language => User contributions => Topic started by: Tino on April 10, 2006, 07:12:01 am

Title: SAPI 5.x - Speaking..
Post by: Tino on April 10, 2006, 07:12:01 am
An example howto let your PC speak.
Title: SAPI 5.x - Speaking..
Post by: kobold on April 11, 2006, 09:31:22 pm
It is not working on my PC  :cry: (i turnt my speakers very loud)
Title: SAPI 5.x - Speaking..
Post by: Tino on April 12, 2006, 05:15:36 am
Hello Kobold,

Which OS, which Ver. of SAPI installed ?
(Maybe the Wave-Channel in Mixerpannel ??)

The voices can be configured with some parameters.
(But i didn´t reach to configure them via C, yet)

You can configure these parameters via system-configuration-panel.

Theses parameters implement :
Voice (there are different available for download)
Speed (very fast would maybe result in a non-hearable style)
..

I tested under WinXP-Home, too.
It run without problems.
(Was a XP-Standard-Installation no special features selected)

By the way, running Linux i found MBROLA-Project very suitable.
(maybe a hint of cross-plattform-independance)

Tino
Title: SAPI 5.x - Speaking..
Post by: Tino on April 13, 2006, 04:07:07 am
Maybe this could help:

Code: [Select]

hr = pVoice->lpVtbl->SetVolume( pVoice, 100 );


Tino
Title: SAPI 5.x - Speaking..
Post by: kobold on April 15, 2006, 12:01:10 pm
I am using Windows 2000 Professional. I tried the speech stuff on a website and it worked (it talked to me *g*).

Where can i find out the SAPI version on my PC?
Is the stuff in the "\WINNT\Speech" dir?
There is a dll called "speech.dll", it is v 4.0.4.3405.

Where can i get the current speech package? I found almost everything on msdn/m$. (Speech api, sdk, server...? I am confused)
Title: SAPI 5.x - Speaking..
Post by: Tino on April 16, 2006, 10:05:51 am
Hello Kobold,

Its a DLL called "sapi.dll" (speech api) found (Win98) in a "..Shared/Speech/" Directory.
I think its the one the "sapi.h" in PellesC-Includes is based of.

WindowsXP (NT-Based) and Win98 both run that dll.
(Win98 after installation of TextToSpeech-Voices)

Its a few days ago, but i think you should find the voices on Microsoft
searching for TextToSpeech.
(i found it when i installed Microsoft Reader)

Theres one ore more Items in System-Configuration-Panel called "Speech" ( i have 2 because Sapi 4 and 5 installed ).

Hope this could help.

Tino
Title: SAPI 5.x - Speaking..
Post by: ivanhv on April 20, 2006, 06:39:54 pm
By the way... does anyone know if any voice engine for Spanish language exists?
Title: SAPI 5.x - Speaking..
Post by: Tino on April 20, 2006, 10:07:32 pm
Hello ivanhv,

I don´t know about spanish voices from Microsoft,
but there seem to be some for MBROLA.

http://tcts.fpms.ac.be/synthesis/mbrola/mbrtts.html

As i mentioned above it could be a real alternative,
i installed it running Suse Linux.
The voices seem to sound much better ?!

But i haven´t used it under windows, yet.
(there are windows-projects about it)

Tino