Can someone help me fix TTSReader? SAPI5 voices don't work.

Questions about Wine on Linux
Locked
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Can someone help me fix TTSReader? SAPI5 voices don't work.

Post by VIVI »

When I try to run TTSReader: http://www.sphenet.com/TTSReader/

Two things won't work.

1. SAPI5 Voices.

2. Watch Clipboard

When I try running the program in terminal and use a SAPI5 voice, I get this:

err:ole:marshal_object couldn't get IPSFactory buffer for interface {2baeef81-2ca3-4331-98f3-26ec5abefb03} err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040155 err:ole:CoMarshalInterface Failed to marshal the interface {2baeef81-2ca3-4331-98f3-26ec5abefb03}, 80040155 fixme:ole:NdrClearOutParameters (0x251e6f0,0x7e3e88a0,0x251e91c): stub fixme:ole:CoCreateInstance no instance created for interface {2baeef81-2ca3-4331-98f3-26ec5abefb03} of class {96749373-3391-11d2-9ee3-00c04f797396}, hres is 0x80040155

I showed this to someone, who said: "IIRC, it is because the 32-bit package is not multi-arch and can't be installed along with a 64-bit version." ... "Since the app is freeware, you should ask for help at the winehq forums where somebody knowledgeable can run a debug trace on it and see where the problem is."

And here I am! :)

Let me know if there's anything else you need from me. I'll be here!
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by dimesio »

According to the app's download page, it only includes the SAPI4 engine and SAPI4 voices. It does work with SAPI5 voices if you install the SAPI5 engine.
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by VIVI »

> It does work with SAPI5 voices if you install the SAPI5 engine.

How do I do that in Wine?

Also, how should I try to resolve the "Watch Clipboard" issue?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by dimesio »

VIVI wrote:> It does work with SAPI5 voices if you install the SAPI5 engine.

How do I do that in Wine?

Code: Select all

winetricks speechsdk
Also, how should I try to resolve the "Watch Clipboard" issue?
File a bug.
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by VIVI »

computron@computron:~$ winetricks speechsdk
------------------------------------------------------
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing w_do_call speechsdk
speechsdk already installed, skipping
computron@computron:~$
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by dimesio »

I tested in a 32 bit wineprefix, so try that. http://wiki.winehq.org/FAQ#32_bit_wineprefix
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by VIVI »

I'm back, it has taken me some time to figure out how to set up the 32 bit wineprefix, but I finally set one up with playonlinux.

There is a problem though. The program runs, but now it doesn't even display the desired SAPI5 voices.

http://imgur.com/a/0V6ix#0

I dunno what to do next. :(
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by dimesio »

The image you posted says "left=Wine", and the image on the left does show the SAPI5 voices. The image from the right, which you identify as being from PlayOnLinux, is the one that doesn't show the voices. PlayOnLinux is not supported here, so unless you mislabeled the image, ask for help on their forum.
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by VIVI »

The image on the left only SHOWS the SAPI5 voices, but they don't work.

Instead, they produce the error message mentioned in the OP.

Fine, I will uninstall PlayOnLinux. But I don't understand how to create a 32 bit wineprefix on a 64 bit system, the directions don't make sense to me. In particular, determining the actual path to the wineprefix and installing the application to that prefix.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by dimesio »

The actual path to the wineprefix is whatever you want it to be (avoid special characters and spaces in the name). So, for example, if you want the wineprefix to be in your home directory, and named ttsreader, then the command to create it as a 32 bit wineprefix would be (substitute your actual username for "user" in the commands below):

Code: Select all

WINEARCH=win32 WINEPREFIX=/home/user/ttsreader winecfg
Once the wineprefix is created, install winetricks speechsdk to it with:

Code: Select all

WINEPREFIX=/home/user/ttsreader sh winetricks speechsdk
(you may not need the "sh" before winetricks if you are using a distro package of it)

Then install TTSReader to that wineprefix with:

Code: Select all

WINEPREFIX=/home/user/ttsreader wine /path/to/TTSReader.exe
Any menu items/desktop links created by winemenubuilder should contain the correct WINEPREFIX, so you should be able to run the installed app that way. However, if you need to run it from the command line, you will need to specify the wineprefix:

Code: Select all

cd '/home/user/ttsreader/drive_c/Program Files/TTSReader'
WINEPREFIX=/home/user/ttsreader wine TTSReader.exe
Also, looking back I just realized you did not mention what Wine version you're using. I tested in 1.7.17, so if you're using anything older, upgrade.
VIVI
Level 2
Level 2
Posts: 11
Joined: Sun Apr 27, 2014 1:13 pm

Re: Can someone help me fix TTSReader? SAPI5 voices don't wo

Post by VIVI »

Success! =)

Thanks to you, I learned how create a wineprefix and how to install something to a location.

Also, now the SAPI5 voices work!

There's one tiny problem though, I got my girls mixed up. I really wanted Microsoft Anna and I confused her for Microsoft Mary. I know this totally isn't Wine related anymore, but if you happened to know how to install Anna... I would be in your debt. If not, that's totally fine. You've helped me a lot!

Oh, right. This is Wine version 1.7.15 , just FYI.
Locked