Re: TTS Application in 5.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Erwin Zwart (Erwin.zwart_at_-NOSPAM-ptsDOTnl)
Date: 11/05/04


Date: Fri, 5 Nov 2004 09:40:23 +0100

avkumar,

Function speak fails... with what? what error code is returned?

Because you say you don't see the HKLM\SOFTWARE\Microsoft\Speech\Voices
registry key,
i think that you did not install / include an TTS engine? There is no
standard engine included in platform builder.

Hope this helps,

Erwin

"avkumar" <a_vijayakumar_2000@yahoo.com> wrote in message
news:3a7cbf0c.0411042330.dcfb836@posting.google.com...
> Dear Greats,
>
> I am developing a Windows CE TTS application. I have created a
> Emulator image and running my application.
>
> The code is given below.
> --------------------------------------------------------------------------------
> // TODO: Place code here.
> HRESULT hr = CoInitializeEx(NULL,COINIT_MULTITHREADED);
> if(hr != S_OK)
> {
> printf("\n Initialization of COM library is failed \n");
> return 0;
> }
> // Create one IspVoice COM Object
> CComPtr<ISpVoice> m_Ispvoice;
> hr = m_Ispvoice.CoCreateInstance(CLSID_SpVoice);
> if(hr != S_OK)
> {
> printf("\n Creation of ISpVoice COM object failed, Quit\n");
> CoUninitialize( );
> return 0;
> }
> char *strConsoleInput;
> strConsoleInput = new char[255];
> for(;;)
> {
> strConsoleInput[0] = '\0';
> strConsoleInput = gets(strConsoleInput);
> wchar_t *strVoiceOut;
> strVoiceOut = new WCHAR[255];
> swprintf(strVoiceOut,L"%hs",strConsoleInput);
> ULONG longptr;
> hr = m_Ispvoice->Speak(strVoiceOut,0, &longptr);
> switch(hr)
> {
> case E_INVALIDARG:
> printf("\n One or more arguments are invalid. \n");
> break;
> case E_POINTER:
> printf("\n Invalid pointer. . \n");
> break;
> case E_OUTOFMEMORY:
> printf("\n Exceeded available memory. . \n");
> break;
> /* case SPERR_INVALID_FLAGS:
> printf("\n Invalid flags specified for this operation . \n");
> break;
> case SPERR_DEVICE_BUSY:
> printf("\n Timeout occurred on synchronous call. . \n");
> break;
> */
> case S_OK:
> printf("\n Passed . \n");
> break;
> default:
> printf("\n Default fail. \n");
> break;
> }
> delete strVoiceOut;
> if(strConsoleInput[0] == 'Q')
> break;
> }
> delete strConsoleInput;
> printf("\n Initialization of COM library is completed properly \n");
> CoUninitialize();
> --------------------------------------------------------------------------------
>
> Function speak fails. And i noticed that the registry key
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices is empty their is
> no voices listed in this key.
>
> Can any help me to solve this problem. The same program is working in
> Windows XP with SAPI.
>
> Thanks in advance.
> avkumar



Relevant Pages

  • RE: Error Installing SP1
    ... import that registry key back in. ... Error code 0XC0070424: ... exist as an installed service. ... Error code 0X80070057: Invalid Argument. ...
    (microsoft.public.exchange.admin)
  • Re: WMP 11 and Windows Vista Error Message
    ... You have a registry key that needs to be changed. ... If you go here http://www.zachd.com/pss/pss.html and search for your error code, ... Reset that to 0x0 and Urge files should work again. ... Mike Poz [MSFT] ...
    (microsoft.public.windowsmedia.player)
  • Re: Really persistent BITS belly up
    ... Windows updates hangs and fails with Error Code 0x80246008. ... Tried to reset the security settings on the BITS service by using 'sc sdset bits' (but my OS didn't recognize the sc command) ... Added BITS and WUAUSERV to the ntsrvc registry key ... torgeir, Microsoft MVP Scripting, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
    (microsoft.public.windowsupdate)
  • RegistryKey.DeleteValue fails with UnauthorizedAccessException
    ... Why can I not delete a registry key value? ... I have a WinForms app that needs to delete a registrykey value but fails with a UnauthorizedAccessException. ... This happens when using my restricted developer account and also if I run under an administrator account. ...
    (microsoft.public.dotnet.security)
  • Unable to start BITS: error 2147942403 (0x80070005)
    ... I just get aware that the reason I cannot update Windows is because of the ... Unfortunately, it fails. ... The System Event Log ... checked all registry key MS people suggested in previous posts about similar ...
    (microsoft.public.windowsupdate)